Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTDom.DOMTeamAI

strategic team AI control for Domination Writen by Brian 'Snake' Alexander. Copyright(c) 2007-2010 All Rights Reserved.

UTDom.DOMTeamAI

Variables Summary
boolbFoundDomObjectives
DominationObjectiveDomObjective
array<DominationFactory>DOMPoints
floatMaxDistanceFromCP
floatMaxTimeHeldByEnemy

Functions Summary
functionUTGameObjective FindControlPointNotOwned (UTSquadAI InSquad))
functionUTGameObjective GetLeastDefendedObjective (Controller InController))
functionUTGameObjective GetPriorityAttackObjectiveFor (UTSquadAI InAttackSquad, Controller InController))
functionUTGameObjective GetPriorityFreelanceObjectiveFor (UTSquadAI InFreelanceSquad))
functionUTGameObjective IsHeldByEnemyTooLong ()))
functionbool ObjectiveCoveredByAnotherSquad (UTGameObjective O, UTSquadAI IgnoreSquad))
functionbool PutOnDefense (UTBot B))
function ReAssessStrategy ()))
function SetObjectiveLists ()))


Variables Detail

bFoundDomObjectives Source code

var bool bFoundDomObjectives;

DomObjective Source code

var DominationObjective DomObjective;

DOMPoints Source code

var array<DominationFactory> DOMPoints;
cached refference to the DominationFactory's. Need to be the DominationFactory because

MaxDistanceFromCP Source code

var float MaxDistanceFromCP;

MaxTimeHeldByEnemy Source code

var float MaxTimeHeldByEnemy;


Functions Detail

FindControlPointNotOwned Source code

function UTGameObjective FindControlPointNotOwned ( UTSquadAI InSquad) )

GetLeastDefendedObjective Source code

function UTGameObjective GetLeastDefendedObjective ( Controller InController) )
prioritize the farthest ControlPoint because those tend to be the ones that no one goes to

GetPriorityAttackObjectiveFor Source code

function UTGameObjective GetPriorityAttackObjectiveFor ( UTSquadAI InAttackSquad, Controller InController) )

GetPriorityFreelanceObjectiveFor Source code

function UTGameObjective GetPriorityFreelanceObjectiveFor ( UTSquadAI InFreelanceSquad) )

IsHeldByEnemyTooLong Source code

function UTGameObjective IsHeldByEnemyTooLong ( ) )
checks if the DominationObjective's are held by the Enemy for too long

ObjectiveCoveredByAnotherSquad Source code

function bool ObjectiveCoveredByAnotherSquad ( UTGameObjective O, UTSquadAI IgnoreSquad) )
returns true if the given objective is a SquadObjective for some other squad on this team than the passed in squad
@param O the objective to test for
@param IgnoreSquad squad to ignore (because we're calling this while evaluating changing its objective)
@return whether the objective is sufficiently covered by another squad

PutOnDefense Source code

function bool PutOnDefense ( UTBot B) )

ReAssessStrategy Source code

function ReAssessStrategy ( ) )

SetObjectiveLists Source code

function SetObjectiveLists ( ) )


Defaultproperties

defaultproperties
{
   SquadType=Class'UTDom.DOMSquadAI'
   MaxTimeHeldByEnemy=20.0
   MaxDistanceFromCP=2000.0
   OrderList(0)=ATTACK
   OrderList(1)=FREELANCE
   OrderList(2)=ATTACK
   OrderList(3)=ATTACK
   OrderList(4)=FREELANCE
   OrderList(5)=DEFEND
   OrderList(6)=ATTACK
   OrderList(7)=FREELANCE
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Fri 23/12/2011 20:31:25.767 - Created with UnCodeX