My program doesn't have bugs. It just develops random features.

UE2:BehaviorControllerBasic (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:11, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
U2XMP Object >> BehaviorControllerInterf >> BehaviorControllerBasic

Contents

Package: 
U2AI
Within class: 
U2NPCControllerBasic

BehaviorControllerBasic.uc Created By: Mike Fox Created On: 01/22/02 $Author: Mfox $ $Date: 12/18/02 4:48p $ $Revision: 34 $

Constants[edit]

CheckBehaviorTimerName[edit]

Value: 'CheckBehaviorTimer'


CheckFireShotTimerName[edit]

Value: 'CheckFireShotTimer'


CheckMetaStateTimerName[edit]

Value: 'CheckMetaStateTimer'


MaxRecursionCount[edit]

Value: 5


Properties[edit]

bCleaned[edit]

Type: bool


bEnabled[edit]

Type: bool


Default value: True

BlockedStateName[edit]

Type: name


bNPCSetFireShotDelay[edit]

Type: bool


GBehaviorList[edit]

Type: array<U2PawnBasic.BehaviorT>


LastAttackActiveCantReachIndex[edit]

Type: int


Default value: -1

LastAttackActiveEnemyNotVisibleIndex[edit]

Type: int


Default value: -1

LastAttackActiveIndex[edit]

Type: int


Default value: -1

LastAttackActiveMeleeHitIndex[edit]

Type: int


Default value: -1

LastAttackActiveMeleeIndex[edit]

Type: int


Default value: -1

LastAttackActiveUseCoverIndex[edit]

Type: int


Default value: -1

LastAttackPassiveCantReachIndex[edit]

Type: int


Default value: -1

LastAttackPassiveEnemyNotVisibleIndex[edit]

Type: int


Default value: -1

LastAttackPassiveIndex[edit]

Type: int


Default value: -1

LastAttackPassiveMeleeHitIndex[edit]

Type: int


Default value: -1

LastAttackPassiveMeleeIndex[edit]

Type: int


Default value: -1

LastAttackPassiveUseCoverIndex[edit]

Type: int


Default value: -1

LastSelectedBehaviorIndex[edit]

Type: int


Default value: -1

LastTimeSeconds[edit]

Type: float

Modifiers: private


MaxSetAmmoDelay[edit]

Type: float


Default value: 5.0

MetaState[edit]

Type: EMetaState


MinSetAmmoDelay[edit]

Type: float


Default value: 1.0

NextFireShotTimerAvailableTime[edit]

Type: float


NextSetAmmoTime[edit]

Type: float


PreviousMetaState[edit]

Type: EMetaState


RecursionCount[edit]

Type: int

Modifiers: private


TotalBehaviorOdds[edit]

Type: float

sum of odds for all supported behaviors

Enums[edit]

EMetaState[edit]

MS_AttackInactive 
MS_AttackActive 
enemy set and visible, reachable
MS_AttackActiveCantReach 
enemy set and visible but not reachable
MS_AttackActiveEnemyNotVisible 
enemy set but not visible
MS_AttackActiveMelee 
melee attacking enemy (timed meta state)
MS_AttackActiveMeleeHit 
melee attacking enemy (timed meta state) after hitting enemy
MS_AttackActiveUseCover 
MS_AttackPassive 
enemy set and visible, reachable
MS_AttackPassiveCantReach 
enemy set and visible but not reachable
MS_AttackPassiveEnemyNotVisible 
enemy set but not visible
MS_AttackPassiveMelee 
melee attacking enemy (timed meta state)
MS_AttackPassiveMeleeHit 
melee attacking enemy (timed meta state)
MS_AttackPassiveUseCover 
using cover (timed meta state)

Instance functions[edit]

AddTimerSafe[edit]

function AddTimerSafe (name TimerName, float TimerTime, bool bRepeat, optional float MinTime)


BehaviorEnabled[edit]

function bool BehaviorEnabled (int Index)


BlockFiring[edit]

function BlockFiring (float SuggestedFireAgainDelay)

Overrides: BehaviorControllerInterf.BlockFiring


CheckBehavior[edit]

function CheckBehavior ()


CheckBehaviorTimer[edit]

function CheckBehaviorTimer ()


CheckEnemySituation[edit]

function CheckEnemySituation ()


CheckFireShot[edit]

function CheckFireShot ()


CheckFireShotTimer[edit]

function CheckFireShotTimer ()


CheckMetaState[edit]

function CheckMetaState ()


CheckMetaStateTimer[edit]

function CheckMetaStateTimer ()


CleanupBC[edit]

function CleanupBC ()

Overrides: BehaviorControllerInterf.CleanupBC


DisableAllBehaviorsExcept[edit]

function DisableAllBehaviorsExcept (name TargetState)

Overrides: BehaviorControllerInterf.DisableAllBehaviorsExcept


DisableBehavior[edit]

function DisableBehavior (name TargetState)

Overrides: BehaviorControllerInterf.DisableBehavior


DisableBehaviorInAllLists[edit]

function DisableBehaviorInAllLists (name TargetState, bool bDisabledFlag, bool bDisableAllExcept)


DisableBehaviorInList[edit]

function DisableBehaviorInList (name TargetState, out array<U2PawnBasic.BehaviorTBehaviorList, bool bDisabledFlag, bool bInvertSelection)


DisableBehaviorTemporarily[edit]

function DisableBehaviorTemporarily (name TargetState, float Duration)


DisableBehaviorTemporarilyInList[edit]

function DisableBehaviorTemporarilyInList (name TargetState, float Duration, out array<U2PawnBasic.BehaviorTBehaviorList, name BehaviorListName)


DumpGList[edit]

function DumpGList ()


DumpList[edit]

function DumpList (array<U2PawnBasic.BehaviorTBehaviorList, name BehaviorListName)


EnableBehavior[edit]

function EnableBehavior (name TargetState)

Overrides: BehaviorControllerInterf.EnableBehavior


EvaluateAttackSituation[edit]

protected function EvaluateAttackSituation (BehaviorControllerInterf.EBCType BCType)


GetBCEnabled[edit]

function bool GetBCEnabled ()

Overrides: BehaviorControllerInterf.GetBCEnabled


GetBehaviorOdds[edit]

function float GetBehaviorOdds (int Index, out float MinOdds)


GetCheckBehaviorDelay[edit]

function float GetCheckBehaviorDelay ()

Overrides: BehaviorControllerInterf.GetCheckBehaviorDelay


GetCheckMetaStateDelay[edit]

function float GetCheckMetaStateDelay ()

Overrides: BehaviorControllerInterf.GetCheckMetaStateDelay


GetCurrentMetaStateName[edit]

function string GetCurrentMetaStateName ()

Overrides: BehaviorControllerInterf.GetCurrentMetaStateName


GetCurrentMetaStateNameShort[edit]

function string GetCurrentMetaStateNameShort ()

Overrides: BehaviorControllerInterf.GetCurrentMetaStateNameShort


GetExtendedStateInformation[edit]

function string GetExtendedStateInformation ()

Overrides: BehaviorControllerInterf.GetExtendedStateInformation


GetMinFiringDelay[edit]

function float GetMinFiringDelay ()

Overrides: BehaviorControllerInterf.GetMinFiringDelay


GetNumEnabledBehaviors[edit]

function int GetNumEnabledBehaviors (array<U2PawnBasic.BehaviorTBehaviorList)


GetSelectedBehavior[edit]

function GetSelectedBehavior (out name SelectedBehaviorState, out name SelectedBehaviorLabel, out float SelectedBehaviorDuration)


GetTimeOutDelays[edit]

function GetTimeOutDelays (out float CheckBehaviorDelay, out float CheckMetaStateDelay)

Overrides: BehaviorControllerInterf.GetTimeOutDelays


IsFiringMetaState[edit]

function bool IsFiringMetaState (EMetaState MS)


RestoreTimeOutDelays[edit]

function RestoreTimeOutDelays (float CheckBehaviorDelay, float CheckMetaStateDelay)

Overrides: BehaviorControllerInterf.RestoreTimeOutDelays


SetBCEnabled[edit]

function SetBCEnabled (bool bVal)

Overrides: BehaviorControllerInterf.SetBCEnabled


SetCheckFireShotTimer[edit]

function SetCheckFireShotTimer (float TimerTime, bool bCanOverride)


SetLowOddsTimeInAllLists[edit]

function SetLowOddsTimeInAllLists (name TargetState, float NewLowOddsTime)


SetLowOddsTimeInList[edit]

function SetLowOddsTimeInList (name TargetState, float NewLowOddsTime, out array<U2PawnBasic.BehaviorTBehaviorList)


SetMinTimeOutDelay[edit]

function SetMinTimeOutDelay (float MinTimeOutDelay)

Overrides: BehaviorControllerInterf.SetMinTimeOutDelay


SetNextCheckFireShotDelay[edit]

function SetNextCheckFireShotDelay (float SuggestedFireAgainDelay)

Overrides: BehaviorControllerInterf.SetNextCheckFireShotDelay


ShouldMeleeAttack[edit]

function bool ShouldMeleeAttack ()


StartFiring[edit]

function StartFiring ()

Overrides: BehaviorControllerInterf.StartFiring


Update[edit]

function Update (BehaviorControllerInterf.EBCType BCTypeIn)

Overrides: BehaviorControllerInterf.Update


UpdateAttackActive[edit]

function UpdateAttackActive (BehaviorControllerInterf.EBCType BCType, out name SelectedBehaviorState, out name SelectedBehaviorLabel, out float SelectedBehaviorDuration)


UpdateAttackCantReach[edit]

function UpdateAttackCantReach ()


UpdateAttackEnemyNotVisible[edit]

function UpdateAttackEnemyNotVisible ()


UpdateAttackMelee[edit]

function UpdateAttackMelee ()


UpdateAttackMeleeHit[edit]

function UpdateAttackMeleeHit ()


UpdateAttackUseCover[edit]

function UpdateAttackUseCover ()


UpdateMetaState[edit]

function UpdateMetaState (EMetaState NewMetaState, float MinBehaviors)