Gah - a solution with more questions. – EntropicLqd

UE2:BehaviorControllerBasic (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
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

CheckBehaviorTimerName

Value: 'CheckBehaviorTimer'


CheckFireShotTimerName

Value: 'CheckFireShotTimer'


CheckMetaStateTimerName

Value: 'CheckMetaStateTimer'


MaxRecursionCount

Value: 5


Properties

bCleaned

Type: bool


bEnabled

Type: bool


Default value: True

BlockedStateName

Type: name


bNPCSetFireShotDelay

Type: bool


GBehaviorList

Type: array<U2PawnBasic.BehaviorT>


LastAttackActiveCantReachIndex

Type: int


Default value: -1

LastAttackActiveEnemyNotVisibleIndex

Type: int


Default value: -1

LastAttackActiveIndex

Type: int


Default value: -1

LastAttackActiveMeleeHitIndex

Type: int


Default value: -1

LastAttackActiveMeleeIndex

Type: int


Default value: -1

LastAttackActiveUseCoverIndex

Type: int


Default value: -1

LastAttackPassiveCantReachIndex

Type: int


Default value: -1

LastAttackPassiveEnemyNotVisibleIndex

Type: int


Default value: -1

LastAttackPassiveIndex

Type: int


Default value: -1

LastAttackPassiveMeleeHitIndex

Type: int


Default value: -1

LastAttackPassiveMeleeIndex

Type: int


Default value: -1

LastAttackPassiveUseCoverIndex

Type: int


Default value: -1

LastSelectedBehaviorIndex

Type: int


Default value: -1

LastTimeSeconds

Type: float

Modifiers: private


MaxSetAmmoDelay

Type: float


Default value: 5.0

MetaState

Type: EMetaState


MinSetAmmoDelay

Type: float


Default value: 1.0

NextFireShotTimerAvailableTime

Type: float


NextSetAmmoTime

Type: float


PreviousMetaState

Type: EMetaState


RecursionCount

Type: int

Modifiers: private


TotalBehaviorOdds

Type: float

sum of odds for all supported behaviors

Enums

EMetaState

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

AddTimerSafe

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


BehaviorEnabled

function bool BehaviorEnabled (int Index)


BlockFiring

function BlockFiring (float SuggestedFireAgainDelay)

Overrides: BehaviorControllerInterf.BlockFiring


CheckBehavior

function CheckBehavior ()


CheckBehaviorTimer

function CheckBehaviorTimer ()


CheckEnemySituation

function CheckEnemySituation ()


CheckFireShot

function CheckFireShot ()


CheckFireShotTimer

function CheckFireShotTimer ()


CheckMetaState

function CheckMetaState ()


CheckMetaStateTimer

function CheckMetaStateTimer ()


CleanupBC

function CleanupBC ()

Overrides: BehaviorControllerInterf.CleanupBC


DisableAllBehaviorsExcept

function DisableAllBehaviorsExcept (name TargetState)

Overrides: BehaviorControllerInterf.DisableAllBehaviorsExcept


DisableBehavior

function DisableBehavior (name TargetState)

Overrides: BehaviorControllerInterf.DisableBehavior


DisableBehaviorInAllLists

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


DisableBehaviorInList

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


DisableBehaviorTemporarily

function DisableBehaviorTemporarily (name TargetState, float Duration)


DisableBehaviorTemporarilyInList

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


DumpGList

function DumpGList ()


DumpList

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


EnableBehavior

function EnableBehavior (name TargetState)

Overrides: BehaviorControllerInterf.EnableBehavior


EvaluateAttackSituation

protected function EvaluateAttackSituation (BehaviorControllerInterf.EBCType BCType)


GetBCEnabled

function bool GetBCEnabled ()

Overrides: BehaviorControllerInterf.GetBCEnabled


GetBehaviorOdds

function float GetBehaviorOdds (int Index, out float MinOdds)


GetCheckBehaviorDelay

function float GetCheckBehaviorDelay ()

Overrides: BehaviorControllerInterf.GetCheckBehaviorDelay


GetCheckMetaStateDelay

function float GetCheckMetaStateDelay ()

Overrides: BehaviorControllerInterf.GetCheckMetaStateDelay


GetCurrentMetaStateName

function string GetCurrentMetaStateName ()

Overrides: BehaviorControllerInterf.GetCurrentMetaStateName


GetCurrentMetaStateNameShort

function string GetCurrentMetaStateNameShort ()

Overrides: BehaviorControllerInterf.GetCurrentMetaStateNameShort


GetExtendedStateInformation

function string GetExtendedStateInformation ()

Overrides: BehaviorControllerInterf.GetExtendedStateInformation


GetMinFiringDelay

function float GetMinFiringDelay ()

Overrides: BehaviorControllerInterf.GetMinFiringDelay


GetNumEnabledBehaviors

function int GetNumEnabledBehaviors (array<U2PawnBasic.BehaviorTBehaviorList)


GetSelectedBehavior

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


GetTimeOutDelays

function GetTimeOutDelays (out float CheckBehaviorDelay, out float CheckMetaStateDelay)

Overrides: BehaviorControllerInterf.GetTimeOutDelays


IsFiringMetaState

function bool IsFiringMetaState (EMetaState MS)


RestoreTimeOutDelays

function RestoreTimeOutDelays (float CheckBehaviorDelay, float CheckMetaStateDelay)

Overrides: BehaviorControllerInterf.RestoreTimeOutDelays


SetBCEnabled

function SetBCEnabled (bool bVal)

Overrides: BehaviorControllerInterf.SetBCEnabled


SetCheckFireShotTimer

function SetCheckFireShotTimer (float TimerTime, bool bCanOverride)


SetLowOddsTimeInAllLists

function SetLowOddsTimeInAllLists (name TargetState, float NewLowOddsTime)


SetLowOddsTimeInList

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


SetMinTimeOutDelay

function SetMinTimeOutDelay (float MinTimeOutDelay)

Overrides: BehaviorControllerInterf.SetMinTimeOutDelay


SetNextCheckFireShotDelay

function SetNextCheckFireShotDelay (float SuggestedFireAgainDelay)

Overrides: BehaviorControllerInterf.SetNextCheckFireShotDelay


ShouldMeleeAttack

function bool ShouldMeleeAttack ()


StartFiring

function StartFiring ()

Overrides: BehaviorControllerInterf.StartFiring


Update

function Update (BehaviorControllerInterf.EBCType BCTypeIn)

Overrides: BehaviorControllerInterf.Update


UpdateAttackActive

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


UpdateAttackCantReach

function UpdateAttackCantReach ()


UpdateAttackEnemyNotVisible

function UpdateAttackEnemyNotVisible ()


UpdateAttackMelee

function UpdateAttackMelee ()


UpdateAttackMeleeHit

function UpdateAttackMeleeHit ()


UpdateAttackUseCover

function UpdateAttackUseCover ()


UpdateMetaState

function UpdateMetaState (EMetaState NewMetaState, float MinBehaviors)