Mostly Harmless

UE2:MonsterController (UT2004)

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

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

Constants

MAXSTAKEOUTDIST

Value: 2000


ENEMYLOCATIONFUZZ

Value: 1200


TACTICALHEIGHTADVANTAGE

Value: 320


MINSTRAFEDIST

Value: 200


MINVIEWDIST

Value: 200


Properties

Accuracy

Type: float

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

AcquireTime

Type: float

time at which current enemy was acquired

bCanFire

Type: bool

used by TacticalMove and Charging states

bChangeDir

Type: bool

tactical move boolean

bEnemyIsVisible

Type: bool


bForcedDirection

Type: bool


bHasFired

Type: bool


bJustLanded

Type: bool


bLeadTarget

Type: bool

lead target with projectile attack

Default value: True

bMustCharge

Type: bool


bRecommendFastMove

Type: bool


bStrafeDir

Type: bool


ChallengeTime

Type: float


ChooseAttackCounter

Type: int


ChooseAttackTime

Type: float


ChoosingAttackLevel

Type: int


CombatStyle

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

Type: float


FailedHuntEnemy

Type: Pawn


FailedHuntTime

Type: float


GoalString

Type: string

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

HidingSpot

Type: Object.Vector


LastRespawnTime

Type: float


LoseEnemyCheckTime

Type: float


NumRandomJumps

Type: int

attempts to free monster from being stuck

OldEnemy

Type: Pawn


ReactionTime

Type: float


SoakString

Type: string


StartTacticalTime

Type: float


StopStartTime

Type: float


StrafingAbility

Type: float

-1 to 1 (higher uses strafing more)

VisibleEnemy

Type: Pawn


Default values

Property Value
FovAngle 85.0

Functions

Events

Desireability

event float Desireability (Pickup P)

Overrides: Controller.Desireability


HearNoise

event HearNoise (float Loudness, Actor NoiseMaker)

Overrides: Controller.HearNoise


NotifyBump

event bool NotifyBump (Actor Other)

Overrides: Controller.NotifyBump


NotifyLanded

event bool NotifyLanded (Object.Vector HitNormal)

Overrides: Controller.NotifyLanded


NotifyMissedJump

event NotifyMissedJump ()

Overrides: Controller.NotifyMissedJump


NotifyPhysicsVolumeChange

event bool NotifyPhysicsVolumeChange (PhysicsVolume NewVolume)

Overrides: Controller.NotifyPhysicsVolumeChange


PostBeginPlay

event PostBeginPlay ()

Overrides: Controller.PostBeginPlay


ReceiveWarning

event ReceiveWarning (Pawn shooter, float projSpeed, Object.Vector FireDir)

Overrides: Controller.ReceiveWarning


SeePlayer

event SeePlayer (Pawn SeenPlayer)

Overrides: Controller.SeePlayer


SoakStop

event SoakStop (string problem)

Overrides: Controller.SoakStop


Trigger

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: AIController.Trigger


Other instance functions

See MonsterController instance functions.

States

See MonsterController states.