Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE2:U2NPCControllerAdvancedOld (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search

Contents

Package: 
U2AIOld
Direct subclass:
U2NPCControllerBotOld

U2NPCControllerAdvancedOld.uc Created By: Mike Fox Created On: 8/01/00 $Author: Mfox $ $Date: 12/16/02 5:46p $ $Revision: 21 $

Constants[edit]

CheckCurrentWeaponTimerName[edit]

Value: 'CheckCurrentWeaponTimer'


SelectBestWeaponTimerName[edit]

Value: 'SelectBestWeaponTimer'


ReloadSkillDumb[edit]

Value: 0.00

<= never checks if good time to reload

ReloadSkillSmart[edit]

Value: 0.75

>= always checks if good time to reload

MaxCheckReloadDelay[edit]

Value: 10.0

max time between checking reloads for [dumb..smart]

Properties[edit]

LastWeaponSwitchTime[edit]

Type: float


NextCheckReloadTime[edit]

Type: float


RateBestWeaponChecks[edit]

Type: float


Default value: 5.0

RateBestWeaponChecksEnemy[edit]

Type: float


Default value: 2.0

RateCurrentWeaponChecks[edit]

Type: float


Default value: 2.0

Default values[edit]

Property Value
DefaultMeleeAttackState AttackStationary

Functions[edit]

Exec functions[edit]

SwitchToBestWeapon[edit]

exec function bool SwitchToBestWeapon (optional out float Rating, optional out byte bUseAltMode)

Overrides: AIController.SwitchToBestWeapon


Events[edit]

Destroyed[edit]

event Destroyed ()

Overrides: U2NPCControllerBaseOld.Destroyed


PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: LicenseeController.PostBeginPlay


Other instance functions[edit]

AddWeaponTimers[edit]

function AddWeaponTimers ()


AllowPickupWeaponSwitch[edit]

function bool AllowPickupWeaponSwitch (Weapon Self, float CurrentRating, float PendingRating)

Overrides: AIController.AllowPickupWeaponSwitch


AmmoReadyForAction[edit]

function bool AmmoReadyForAction (U2Weapon U2W)


CanFire[edit]

function bool CanFire (bool bTest)

Overrides: U2NPCControllerBaseOld.CanFire


CanRespawn[edit]

function bool CanRespawn ()

Overrides: U2NPCControllerShared.CanRespawn


CheckCurrentAmmo[edit]

function CheckCurrentAmmo ()


CheckCurrentWeapon[edit]

function CheckCurrentWeapon ()


CheckCurrentWeaponTimer[edit]

final function CheckCurrentWeaponTimer ()


FireAt[edit]

function FireAt (Actor A)

Overrides: U2NPCControllerBaseOld.FireAt


FireShot[edit]

function FireShot (byte bUseAltMode)

Overrides: U2NPCControllerBaseOld.FireShot


GetAttackStyle[edit]

function float GetAttackStyle (Actor TargetActor)

Overrides: U2NPCControllerBaseOld.GetAttackStyle


GetCurrentFireRate[edit]

function float GetCurrentFireRate ()

Overrides: U2NPCControllerBaseOld.GetCurrentFireRate


GetSpecifiedFireRate[edit]

function float GetSpecifiedFireRate (bool bPrimary)

Overrides: U2NPCControllerBaseOld.GetSpecifiedFireRate


ReadyForAction[edit]

function bool ReadyForAction ()

Overrides: U2NPCControllerBaseOld.ReadyForAction


RefreshWeapon[edit]

function RefreshWeapon (name WeaponName)

Overrides: U2NPCController.RefreshWeapon


SelectBestWeapon[edit]

function SelectBestWeapon ()


SelectBestWeaponTimer[edit]

final function SelectBestWeaponTimer ()


SetPeripheralVision[edit]

function SetPeripheralVision ()

Overrides: U2NPCControllerShared.SetPeripheralVision


ShouldFireWeapon[edit]

function bool ShouldFireWeapon (float Rating, bool bUseAltMode)


ShouldSwitchToBestWeapon[edit]

function bool ShouldSwitchToBestWeapon (float Rating, bool bUseAltMode)


StopFiring[edit]

function StopFiring (float SuggestedFireAgainDelay, Controller.EStopFiringInfo SFInfo)

Overrides: U2NPCControllerBaseOld.StopFiring


SupportsWeapon[edit]

function bool SupportsWeapon (Weapon W, array<nameWeaponsList)


SupportsWeaponAltFire[edit]

function bool SupportsWeaponAltFire (Weapon W)

Overrides: U2NPCController.SupportsWeaponAltFire


SupportsWeaponFire[edit]

function bool SupportsWeaponFire (Weapon W)

Overrides: U2NPCController.SupportsWeaponFire


UseTacticalJumps[edit]

function bool UseTacticalJumps ()

Overrides: U2NPCControllerBaseOld.UseTacticalJumps


States[edit]

@FrozenState[edit]

@FrozenState.CheckCurrentWeapon[edit]

function CheckCurrentWeapon ()

Overrides: CheckCurrentWeapon (global)


@FrozenState.NonRangedFireCheck[edit]

function bool NonRangedFireCheck ()

Overrides: U2NPCControllerBaseOld.NonRangedFireCheck (global)


@FrozenState.SelectBestWeapon[edit]

function SelectBestWeapon ()

Overrides: SelectBestWeapon (global)


@RoamingState[edit]

Inherits from: U2NPCControllerBaseOld.@RoamingState

Ignores: EnemyNotVisible

@RoamingState.BeginState[edit]

event BeginState ()

Overrides: U2NPCControllerBaseOld.@RoamingState.BeginState


@RoamingState.HearPickup[edit]

function HearPickup (Pawn Other)

Overrides: U2NPCController.HearPickup (global)


@RoamingState.MaybeHandleSpecialDestination[edit]

function MaybeHandleSpecialDestination ()


@RoamingState.ModifyPickupMoveTarget[edit]

function ModifyPickupMoveTarget ()


@RoamingState.PickFarInventoryDestination[edit]

function bool PickFarInventoryDestination ()

Overrides: U2NPCControllerBaseOld.@RoamingState.PickFarInventoryDestination


@RoamingState.ShareWith[edit]

function ShareWith (Pawn Other)


@RoamingState.ShouldRecamp[edit]

function bool ShouldRecamp ()

Overrides: U2NPCControllerBaseOld.@RoamingState.ShouldRecamp


@WanderingState[edit]

Inherits from: U2NPCControllerBaseOld.@WanderingState

Ignores: EnemyNotVisible

@WanderingState.SetOrders[edit]

function bool SetOrders (optional name NewOrders, optional Actor NewOrdersObject, optional float NewOrdersThreshold, optional Object NewOrderGiver, optional bool bAcknowledge)

Overrides: U2NPCControllerBaseOld.SetOrders (global)