I love the smell of UnrealEd crashing in the morning. – tarquin

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

CheckCurrentWeaponTimerName

Value: 'CheckCurrentWeaponTimer'


SelectBestWeaponTimerName

Value: 'SelectBestWeaponTimer'


ReloadSkillDumb

Value: 0.00

<= never checks if good time to reload

ReloadSkillSmart

Value: 0.75

>= always checks if good time to reload

MaxCheckReloadDelay

Value: 10.0

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

Properties

LastWeaponSwitchTime

Type: float


NextCheckReloadTime

Type: float


RateBestWeaponChecks

Type: float


Default value: 5.0

RateBestWeaponChecksEnemy

Type: float


Default value: 2.0

RateCurrentWeaponChecks

Type: float


Default value: 2.0

Default values

Property Value
DefaultMeleeAttackState AttackStationary

Functions

Exec functions

SwitchToBestWeapon

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

Overrides: AIController.SwitchToBestWeapon


Events

Destroyed

event Destroyed ()

Overrides: U2NPCControllerBaseOld.Destroyed


PostBeginPlay

event PostBeginPlay ()

Overrides: LicenseeController.PostBeginPlay


Other instance functions

AddWeaponTimers

function AddWeaponTimers ()


AllowPickupWeaponSwitch

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

Overrides: AIController.AllowPickupWeaponSwitch


AmmoReadyForAction

function bool AmmoReadyForAction (U2Weapon U2W)


CanFire

function bool CanFire (bool bTest)

Overrides: U2NPCControllerBaseOld.CanFire


CanRespawn

function bool CanRespawn ()

Overrides: U2NPCControllerShared.CanRespawn


CheckCurrentAmmo

function CheckCurrentAmmo ()


CheckCurrentWeapon

function CheckCurrentWeapon ()


CheckCurrentWeaponTimer

final function CheckCurrentWeaponTimer ()


FireAt

function FireAt (Actor A)

Overrides: U2NPCControllerBaseOld.FireAt


FireShot

function FireShot (byte bUseAltMode)

Overrides: U2NPCControllerBaseOld.FireShot


GetAttackStyle

function float GetAttackStyle (Actor TargetActor)

Overrides: U2NPCControllerBaseOld.GetAttackStyle


GetCurrentFireRate

function float GetCurrentFireRate ()

Overrides: U2NPCControllerBaseOld.GetCurrentFireRate


GetSpecifiedFireRate

function float GetSpecifiedFireRate (bool bPrimary)

Overrides: U2NPCControllerBaseOld.GetSpecifiedFireRate


ReadyForAction

function bool ReadyForAction ()

Overrides: U2NPCControllerBaseOld.ReadyForAction


RefreshWeapon

function RefreshWeapon (name WeaponName)

Overrides: U2NPCController.RefreshWeapon


SelectBestWeapon

function SelectBestWeapon ()


SelectBestWeaponTimer

final function SelectBestWeaponTimer ()


SetPeripheralVision

function SetPeripheralVision ()

Overrides: U2NPCControllerShared.SetPeripheralVision


ShouldFireWeapon

function bool ShouldFireWeapon (float Rating, bool bUseAltMode)


ShouldSwitchToBestWeapon

function bool ShouldSwitchToBestWeapon (float Rating, bool bUseAltMode)


StopFiring

function StopFiring (float SuggestedFireAgainDelay, Controller.EStopFiringInfo SFInfo)

Overrides: U2NPCControllerBaseOld.StopFiring


SupportsWeapon

function bool SupportsWeapon (Weapon W, array<nameWeaponsList)


SupportsWeaponAltFire

function bool SupportsWeaponAltFire (Weapon W)

Overrides: U2NPCController.SupportsWeaponAltFire


SupportsWeaponFire

function bool SupportsWeaponFire (Weapon W)

Overrides: U2NPCController.SupportsWeaponFire


UseTacticalJumps

function bool UseTacticalJumps ()

Overrides: U2NPCControllerBaseOld.UseTacticalJumps


States

@FrozenState

@FrozenState.CheckCurrentWeapon

function CheckCurrentWeapon ()

Overrides: CheckCurrentWeapon (global)


@FrozenState.NonRangedFireCheck

function bool NonRangedFireCheck ()

Overrides: U2NPCControllerBaseOld.NonRangedFireCheck (global)


@FrozenState.SelectBestWeapon

function SelectBestWeapon ()

Overrides: SelectBestWeapon (global)


@RoamingState

Inherits from: U2NPCControllerBaseOld.@RoamingState

Ignores: EnemyNotVisible

@RoamingState.BeginState

event BeginState ()

Overrides: U2NPCControllerBaseOld.@RoamingState.BeginState


@RoamingState.HearPickup

function HearPickup (Pawn Other)

Overrides: U2NPCController.HearPickup (global)


@RoamingState.MaybeHandleSpecialDestination

function MaybeHandleSpecialDestination ()


@RoamingState.ModifyPickupMoveTarget

function ModifyPickupMoveTarget ()


@RoamingState.PickFarInventoryDestination

function bool PickFarInventoryDestination ()

Overrides: U2NPCControllerBaseOld.@RoamingState.PickFarInventoryDestination


@RoamingState.ShareWith

function ShareWith (Pawn Other)


@RoamingState.ShouldRecamp

function bool ShouldRecamp ()

Overrides: U2NPCControllerBaseOld.@RoamingState.ShouldRecamp


@WanderingState

Inherits from: U2NPCControllerBaseOld.@WanderingState

Ignores: EnemyNotVisible

@WanderingState.SetOrders

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

Overrides: U2NPCControllerBaseOld.SetOrders (global)