Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE2:U2PawnBasic internal variables (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Pawn >> LicenseePawn >> U2Pawn >> U2PawnBase >> U2PawnBasic (internal variables)

Contents

Internal variables[edit]

AcquisitionAnimationOdds[edit]

Type: float


AttackCantFireLockoutTime[edit]

Type: float

time to disable a state from which firing isn't possible currently

Default value: 0.5

AttackClosingCanFireOdds[edit]

Type: float

odds NPC will try to fire while closing (if possible)

Default value: 1.0

AttackClosingReachableDistSquared[edit]

Type: float

defaults to 1200*1200 but some NPCs try to close directly from further away (increasing this means reach test will be more expensive)

Default value: 1440000.0

AttackMeleeMaxTime[edit]

Type: float

max

Default value: 5.0

AttackMeleeMinTime[edit]

Type: float

min durarion of melee attack (when one starts)

Default value: 2.0

AttackStationaryCanFireOdds[edit]

Type: float

odds NPC will try to fire while stationary (if possible)

Default value: 1.0

AttackTacticalMoveCanFireOdds[edit]

Type: float

odds NPC will try to fire during tactical moves (if possible)

Default value: 1.0

AttackUseCoverLockoutTime[edit]

Type: float

time to wait before trying to find cover again after not being able to find cover

Default value: 3.0

AttackUseCoverMaxTime[edit]

Type: float

diff-scaled: max

Default value: 20.0

AttackUseCoverMinTime[edit]

Type: float

min duration of using cover behavior (when starting to use cover)

Default value: 20.0

AttackUseCoverTimeOutTime[edit]

Type: float

diff-scaled: time to wait before trying to use cover metastate again after it times out

Default value: 10.0

bAlertedEnemyHunted[edit]

Type: bool


bAlwaysAttackAnnoyingNewEnemy[edit]

Type: bool

NPC will blindly attack each newly detected enemy (via see/hear/bump/damage etc.)

bAlwaysAttackNewEnemy[edit]

Type: bool

npc will blindly attack each newly detected enemy (via see/hear/bump/damage etc.)

BaseAggressiveness[edit]

Type: float


Default value: 0.3

BaseAlertness[edit]

Type: float

not currently set -- established in BotInfo

bCanAdjustStationaryPosition[edit]

Type: bool

if true, NPC can move right/left during stationary attack if shot is blocked (usually needs to be false for full-body animation-based attacks)

bCanStrafeDuringOrders[edit]

Type: bool

if true, NPC can strafe when carrying out orders

bCanStrafeDuringTacticalMoves[edit]

Type: bool

(false) if false and !bCanStrafe, NPC will turn away from enemy when doing tactical moves

bCanStrafeDuringTacticalRetreat[edit]

Type: bool

(true) if false and !bCanStrafe, NPC will turn away from enemy when backing off

Default value: True

bFacePredictedLocation[edit]

Type: bool

if true (default) NPC will face predicted location when moving to it

Default value: True

bFearNPCsMoreThanPlayers[edit]

Type: bool


bFearPlayersMoreThanNPCs[edit]

Type: bool


bHasMaxAttackRanges[edit]

Type: bool


bHasMovingMeleeAttack[edit]

Type: bool

if true, NPC can move while doing melee attacks (has proper animation support)

bHasMovingRangedAttack[edit]

Type: bool

if true, NPC can move while carrying out ranged attacks (has proper animation support)

Default value: True

bHasRangedAttack[edit]

Type: bool

mdf-tbr? might go away if behavior lists control this instead

bInstantHitAttack[edit]

Type: bool

animation-based ranged attack is an instant hit attack

bJumpDodges[edit]

Type: bool


Default value: True

bJumpy[edit]

Type: bool


bKamikazeClosing[edit]

Type: bool

if true, NPC will head straight at enemy without pathing or reachability checks

bLeadTarget[edit]

Type: bool

lead target with non-weapon based projectile attacks

Default value: True

bLeapRequiresLOS[edit]

Type: bool

if true, NPCs only leap at visible enemies

Default value: True

bMonitorStanceRanges[edit]

Type: bool


BounceLifespan[edit]

Type: float


Default value: 2.0

BounceProjectileOdds[edit]

Type: float


Default value: 1.0

bPredictChargeLocation[edit]

Type: bool

when charging head towards wherever target is headed instead of at target

bSplashDamageAttack[edit]

Type: bool

animation-based ranged attack causes splash damage

bTurnToEnemyAfterLeap[edit]

Type: bool

if true turns to enemy after leap completed (landing + delay)

CampingRate[edit]

Type: float


ChargeHeadSize[edit]

Type: float


ChargeMaxChangeSize[edit]

Type: float


ChargeMaxDamage[edit]

Type: float


ChargeMaxMomentumTransfer[edit]

Type: float


ChargeMinDamage[edit]

Type: float


CloseFaceTarget[edit]

Type: int

1: always -1: never 0: default (check time since acquired etc.)

CombatStyle[edit]

Type: float

-1 to 1 = low means tends to stay off and snipe, high means tends to charge and melee

Default value: 0.6

DodgeDestination[edit]

Type: Object.Vector

where the npc will dodge to

DodgeDistance[edit]

Type: float

how far NPC tries to dodge

Default value: 300.0

DodgeInsteadofStrafeOdds[edit]

Type: float

odds of dodging projectiles rather than strafing away from them

DodgeProjectileOdds[edit]

Type: float

odds that an NPC will dodge to avoid projectiles

DodgeTime[edit]

Type: float

duration of dodge animation (updated after first dodge occurs)

Default value: -0.655

FireCheckFailedRate[edit]

Type: float


Default value: 0.5

FireCheckRate[edit]

Type: float

rate at which behavior controller checks for being able to fire

Default value: 1.0

FireFastDuration[edit]

Type: float

duration for "fast" (rapid fire) shots

Default value: 1.0

FireFastPauseTime[edit]

Type: float

time to wait between "fast" (rapid fire) shots

Default value: 1.0

FireSlowPauseTime[edit]

Type: float

time to wait between "slow" (non-rapid fire) shots

Default value: 1.0

ImpaleAttachDamage[edit]

Type: float

damage to victim when impaling starts

ImpaleAttachShakeMag[edit]

Type: float

how much / how long to shake the camera when sticking the victim

ImpaleAttachShakeSecs[edit]

Type: float


ImpaleDetachDamage[edit]

Type: float

damage to victim when impaling ends

ImpaleDetachMomentum[edit]

Type: float

velocity to impart on victim when impaling is done

ImpaleDetachShakeMag[edit]

Type: float

how much / how long to shake the camera when launching the victim

ImpaleDetachShakeSecs[edit]

Type: float


ImpaleMountNode[edit]

Type: string


ImpaleOdds[edit]

Type: float

odds of impaling the enemy

ImpaleToMeleeOdds[edit]

Type: float

odds of using impale behavior instead of melee attacks

JumpyOdds[edit]

Type: float


Default value: 0.33

LeapDelayFailure[edit]

Type: float

seconds - time to wait after a failed leap attempt (e.g. something in the way)

Default value: 2.0

LeapDelayLand[edit]

Type: float

delay after leaping NPC lands

LeapDelayPreJump[edit]

Type: float

delay prior to leaping including time to turn towards destination

Default value: 0.25

LeapDelaySuccess[edit]

Type: float

seconds - time to wait after a successful leap before trying again

Default value: 5.0

LeapHighOdds[edit]

Type: float

odds NPC will use high projectile trajectory (if target inside range)

LeapHighPredictOdds[edit]

Type: float

odds NPC will predict target's location with high trajectory

Default value: 1.0

LeapHighSpeed[edit]

Type: float

speed of high leap

LeapLowPredictOdds[edit]

Type: float

odds NPC will predict target's location with low trajectory

Default value: 1.0

LeapLowSpeed[edit]

Type: float

speed of low leap (determines range) NOTE: Pawns fall faster than other Actors...

LeapMaxDamage[edit]

Type: int

max damage if target hit dead on

LeapMaxMomentumTransfer[edit]

Type: float

max MT if target hit dead on

LeapMaxOdds[edit]

Type: float

odds NPC will leap at 45 degrees (max range) when target out of range

Default value: 1.0

LeapNotifyTime[edit]

Type: float

time between start of leap animation and leap notify (refined with first leap)

Default value: 0.25

LeapToMeleeOdds[edit]

Type: float

odds NPC will go straight to melee attack if enemy bumped during leap

MaxFleeSearchDistance[edit]

Type: float


Default value: 2048.0

MaxHuntFireAtLastSeenTime[edit]

Type: float

controls how long NPC can shoot at last enemy seen position when hunting

Default value: 3.0

MaxStationaryFiringDelay[edit]

Type: float

leave stationary attack state if NPC won't be able to fire for at least this long

Default value: 0.25

MaxTacticalRetreatDistance[edit]

Type: float

distance NPCs back of by when using TacticalRetreats

Default value: 256.0

MaxUseCoverSearchDistance[edit]

Type: float


Default value: 2048.0

Melee01DamageType[edit]

Type: class<DamageType>


Default value: Class'U2.DamageTypePhysical'

Melee01MaxDamage[edit]

Type: int


Default value: 30

Melee01MomentumPerUnitDamage[edit]

Type: int


Default value: 2500

Melee02DamageType[edit]

Type: class<DamageType>


Default value: Class'U2.DamageTypePhysical'

Melee02MaxDamage[edit]

Type: int


Default value: 30

Melee02MomentumPerUnitDamage[edit]

Type: int


Default value: 2500

Melee03DamageType[edit]

Type: class<DamageType>


Default value: Class'U2.DamageTypePhysical'

Melee03MaxDamage[edit]

Type: int


Default value: 30

Melee03MomentumPerUnitDamage[edit]

Type: int


Default value: 2500

MeleeAccelerationChangeLimit[edit]

Type: float


Default value: -1.0

MeleeAccelRate[edit]

Type: float

rate to scale Pawn's acceleration by when matching enemy's velocity during melee attack, 0.0 means use default AccelRate

MeleeDamageRangeMultiplier[edit]

Type: float

amount to scale melee range by when checking for damage to target

Default value: 1.4

MeleeDamageXMPPawnMultiplier[edit]

Type: float

goose up melee damage to force fields & such

MeleeNotifyTime[edit]

Type: float

quick 'n dirty way to fake a melee notify (should use animation ultimately)

MeleeSpeed[edit]

Type: float

speed to scale Pawn's velocity by when matching enemy's velocity during melee attack, 0.0 means use current velocity, 1.0 means use full GroundSpeed

MeleeWeaponType[edit]

Type: LicenseePawn.EWeaponAnimationType


MinAcquisitionDelay[edit]

Type: float

additional delay when an enemy is acquired (after turning towards enemy, playing animation etc.).

Default value: 1.0

MinAlertAcquisitionDelay[edit]

Type: float

delay before firing when re-acquiring an enemy while fairly alert (enemy detected recently, using cover etc.)

Default value: 0.25

MinCrouchDistance[edit]

Type: float

if Enemy within this distance, shouldn't be crouching / prone

Default value: 256.0

MinProneDistance[edit]

Type: float

if Enemy within this distance, shouldn't be prone

Default value: 1024.0

MinReAcquisitionDelay[edit]

Type: float

delay before firing when re-acquiring an enemy that is being hunted

Default value: 0.5

MinReduceStanceAgainDelay[edit]

Type: float

min delay after crouching/prone before going standing -> crouching/prone or crouching -> prone again

Default value: 5.0

MinStationaryDistance[edit]

Type: float

if Enemy within this distance, don't remain stationary (-1 ==> no effect)

Default value: 256.0

MinStationaryHealth[edit]

Type: float


Default value: 30.0

MinStayCrouchingTime[edit]

Type: float

min time NPC will stay crouching if it crouches (e.g. before moving)

Default value: 2.0

MinStayProneTime[edit]

Type: float

min time NPC will stay prone if it goes prone (e.g. before moving)

Default value: 3.0

OnlyLeapLowRange[edit]

Type: float


PostAcquisitionAnimationDelay[edit]

Type: float


PostDodgeDelay[edit]

Type: float

time to wait after dodge animation is complete

Default value: 0.25

PreferHighTrajectoryOdds[edit]

Type: float

odds that tossed projectiles will use high vs low trajectory solution

RandomCloseDodgeOdds[edit]

Type: float

odds of dodging during a closing attack move

RangedNotifyTime[edit]

Type: float


RecoverLockOutUseCoverTime[edit]

Type: float

time to wait before trying to find cover again after recovering enemy (e.g. after hunt)

Default value: 3.0

RefireRate[edit]

Type: float

mdf-tbd: not used much currently (lower=faster -- opposite of UT?)

Default value: 0.2

StationaryCrouchOdds[edit]

Type: float

odds that NPC will crouch when stationary (attacking, holding etc.)

StationaryProneOdds[edit]

Type: float

odds that NPC will go prone when stationary (attacking, holding etc.)

StationaryStandOdds[edit]

Type: float

odds that NPC will stand when stationary (attacking, holding etc.)

Default value: 1.0

StationaryStayCrouchingOdds[edit]

Type: float

odds that NPC will stay crouching (once crouching) when stationary

Default value: 1.0

StationaryStayProneOdds[edit]

Type: float

odds that NPC will stay prone (once prone) when stationary

Default value: 1.0

TacticalJumpOdds[edit]

Type: float

odds of jumping during a tactical move

TacticalMoveCloseOdds[edit]

Type: float

odds NPC will use tactical moves while closing in on an enemy

Default value: 0.75

TacticalMoveFallbackOdds[edit]

Type: float


TauntAnimationOdds[edit]

Type: float