The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:MonsterController (UT2003)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2003 Object >> Actor >> Controller >> AIController >> ScriptedController >> MonsterController
Package: 
SkaarjPack
This class in other games:
UT2004

Monster Controller - simple AI that always has and hunts down player enemy

Constants[edit]

MAXSTAKEOUTDIST[edit]

Value: 2000


ENEMYLOCATIONFUZZ[edit]

Value: 1200


TACTICALHEIGHTADVANTAGE[edit]

Value: 320


MINSTRAFEDIST[edit]

Value: 200


MINVIEWDIST[edit]

Value: 200


Properties[edit]

Accuracy[edit]

Type: float

-1 to 1 (0 is default, higher is more accurate)

AcquireTime[edit]

Type: float

time at which current enemy was acquired

bCanFire[edit]

Type: bool

used by TacticalMove and Charging states

bChangeDir[edit]

Type: bool

tactical move boolean

bEnemyIsVisible[edit]

Type: bool


bForcedDirection[edit]

Type: bool


bHasFired[edit]

Type: bool


bJustLanded[edit]

Type: bool


bLeadTarget[edit]

Type: bool

lead target with projectile attack

Default value: True

bMustCharge[edit]

Type: bool


bRecommendFastMove[edit]

Type: bool


bStrafeDir[edit]

Type: bool


ChallengeTime[edit]

Type: float


ChooseAttackCounter[edit]

Type: int


ChooseAttackTime[edit]

Type: float


ChoosingAttackLevel[edit]

Type: int


CombatStyle[edit]

Type: float

-1 to 1 = low means tends to stay off and snipe, high means tends to charge and melee

Default value: 0.2

EnemyVisibilityTime[edit]

Type: float


FailedHuntEnemy[edit]

Type: Pawn


FailedHuntTime[edit]

Type: float


GoalString[edit]

Type: string

for debugging - used to show what bot is thinking (with 'ShowDebug')

HidingSpot[edit]

Type: Object.Vector


LastRespawnTime[edit]

Type: float


LoseEnemyCheckTime[edit]

Type: float


NumRandomJumps[edit]

Type: int

attempts to free monster from being stuck

OldEnemy[edit]

Type: Pawn


ReactionTime[edit]

Type: float


SoakString[edit]

Type: string


StartTacticalTime[edit]

Type: float


StopStartTime[edit]

Type: float


StrafingAbility[edit]

Type: float

-1 to 1 (higher uses strafing more)

VisibleEnemy[edit]

Type: Pawn


Default values[edit]

Property Value
FovAngle 85.0
RemoteRole ROLE_None

Functions[edit]

Events[edit]

Desireability[edit]

event float Desireability (Pickup P)

Overrides: Controller.Desireability


HearNoise[edit]

event HearNoise (float Loudness, Actor NoiseMaker)

Overrides: Controller.HearNoise


NotifyBump[edit]

event bool NotifyBump (Actor Other)

Overrides: Controller.NotifyBump


NotifyLanded[edit]

event bool NotifyLanded (Object.Vector HitNormal)

Overrides: Controller.NotifyLanded


NotifyMissedJump[edit]

event NotifyMissedJump ()

Overrides: Controller.NotifyMissedJump


NotifyPhysicsVolumeChange[edit]

event bool NotifyPhysicsVolumeChange (PhysicsVolume NewVolume)

Overrides: Controller.NotifyPhysicsVolumeChange


PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Controller.PostBeginPlay


SeePlayer[edit]

event SeePlayer (Pawn SeenPlayer)

Overrides: Controller.SeePlayer


SoakStop[edit]

event SoakStop (string problem)

Overrides: Controller.SoakStop


Trigger[edit]

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: AIController.Trigger


Other instance functions[edit]

See MonsterController instance functions.

States[edit]

See MonsterController states.