mirror of
https://github.com/Ragora/T2-DXAI.git
synced 2026-02-28 02:53:38 +00:00
Performance fixes
This commit is contained in:
parent
5e53dd91ef
commit
53aece4615
5 changed files with 301 additions and 178 deletions
|
|
@ -34,6 +34,7 @@ function AICommander::setup(%this)
|
|||
for (%iteration = 0; %iteration < ClientGroup.getCount(); %iteration++)
|
||||
{
|
||||
%currentClient = ClientGroup.getObject(%iteration);
|
||||
%currentClient.updateVisualAcuity();
|
||||
|
||||
if (%currentClient.isAIControlled() && %currentClient.team == %this.team)
|
||||
{
|
||||
|
|
@ -138,10 +139,14 @@ function AICommander::assignTasks(%this)
|
|||
%bot = %this.botList.getObject(%iteration);
|
||||
%bot.addTask(AIEnhancedEngageTarget);
|
||||
%bot.addTask(AIEnhancedRearmTask);
|
||||
%bot.addTask(AIEnhancedPathCorrectionTask);
|
||||
|
||||
// We only need this task if we're actually playing CTF.
|
||||
if ($CurrentMissionType $= "CTF")
|
||||
{
|
||||
%bot.addTask(AIEnhancedReturnFlagTask);
|
||||
%bot.addTask(AIEnhancedFlagCaptureTask);
|
||||
}
|
||||
|
||||
%bot.targetLoadout = 0;
|
||||
%bot.shouldRearm = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue