I love the smell of UnrealEd crashing in the morning. – tarquin
UE2:U2PawnBasic (U2XMP)
Object >> Actor >> Pawn >> LicenseePawn >> U2Pawn >> U2PawnBase >> U2PawnBasic |
Contents
- 1 Properties
- 1.1 Property group 'AI'
- 1.1.1 AttackActiveBehaviors
- 1.1.2 AttackActiveCantReachBehaviors
- 1.1.3 AttackActiveEnemyNotVisibleBehaviors
- 1.1.4 AttackActiveMeleeBehaviors
- 1.1.5 AttackActiveMeleeHitBehaviors
- 1.1.6 AttackActiveUseCoverBehaviors
- 1.1.7 AttackPassiveBehaviors
- 1.1.8 AttackPassiveCantReachBehaviors
- 1.1.9 AttackPassiveEnemyNotVisibleBehaviors
- 1.1.10 AttackPassiveMeleeBehaviors
- 1.1.11 AttackPassiveMeleeHitBehaviors
- 1.1.12 AttackPassiveUseCoverBehaviors
- 1.1.13 bForceRanges
- 1.1.14 bIgnoreRelativeHealth
- 1.1.15 DefaultLookedAtCos
- 1.1.16 FireOffset
- 1.1.17 RangedProjectileClass
- 1.1.18 RangeIdealAttack
- 1.1.19 RangeMaxAttackMobile
- 1.1.20 RangeMaxAttackMobileNoLOS
- 1.1.21 RangeMaxAttackStationary
- 1.1.22 RangeMaxAttackStationaryNoLOS
- 1.1.23 RangeMinAttack
- 1.2 Internal variables
- 1.3 Default values
- 1.1 Property group 'AI'
- 2 Structs
- 3 Functions
- 3.1 Events
- 3.2 Other instance functions
- 3.2.1 FilterMeleeAttack
- 3.2.2 FireAtEnemy
- 3.2.3 GetFireOffset
- 3.2.4 GetMeleeDamageRange
- 3.2.5 GetMeleeMomentumNormal
- 3.2.6 GetWeaponAnimationTypeW
- 3.2.7 HandleAcquireEnemySound
- 3.2.8 HandleLeapImpactSound
- 3.2.9 HandleLeapLandSound
- 3.2.10 HandleMiscSound
- 3.2.11 HandleSpawnShot
- 3.2.12 MeleeDamagedTarget
- 3.2.13 MeleeDamageTarget
- 3.2.14 NotifyImpale
- 3.2.15 NotifyLeapBegin
- 3.2.16 NotifyMelee01
- 3.2.17 NotifyMelee02
- 3.2.18 NotifyMelee03
- 3.2.19 NotifyMeleeBegin
- 3.2.20 NotifyMeleeMotionSound
- 3.2.21 NotifyStay01
- 3.2.22 NotifyUnImpale
- 3.2.23 RestoreSightRadius
- 3.2.24 SetSightRadius
- 3.2.25 SpawnShot
- 3.2.26 UpdateAttackRanges
- Package:
- U2AI
- Direct subclasses:
- U2SeagoatStowaway, U2Seagoat, U2AraknidBase, U2DrakkBoss, U2DrakkBossUpper, U2DrakkDroid, U2DrakkLight, U2DrakkMedium, U2FlyingSnake, U2KaiBase, U2KillerTadpole, U2Mukhogg, U2Parata, U2PawnAdvanced, U2Rammer, U2ShianWarrior, U2ShianWorker, U2SkaarjBase, U2Snipe, U2Tosc, U2Uglyfish
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
U2PawnBasic.uc Created By: Mike Fox Created On: 8/01/00 $Author: Mfox $ $Date: 12/18/02 4:50p $ $Revision: 95 $
Properties
Property group 'AI'
AttackActiveBehaviors
Modifiers: editconst
Default value:
Member | Value |
---|---|
Odds | 1.0 |
StateName | 'AttackClose' |
TimeMax | 4.0 |
TimeMin | 4.0 |
AttackActiveCantReachBehaviors
Modifiers: editconst
Default value, index 0:
Member | Value |
---|---|
Odds | 1.0 |
StateName | 'AttackStationary' |
TimeMax | 3.0 |
TimeMin | 3.0 |
Default value, index 1:
Member | Value |
---|---|
Odds | 1.0 |
StateLabel | 'DontClose' |
StateName | 'AttackTacticalMove' |
TimeMax | 2.0 |
TimeMin | 2.0 |
AttackActiveEnemyNotVisibleBehaviors
Modifiers: editconst
Default value:
Member | Value |
---|---|
Odds | 1.0 |
StateName | 'AttackHunt' |
TimeMax | 20.0 |
TimeMin | 20.0 |
AttackActiveMeleeBehaviors
Modifiers: editconst
Default value:
Member | Value |
---|---|
StateName | 'AttackMelee' |
TimeMax | 3.0 |
TimeMin | 3.0 |
AttackActiveMeleeHitBehaviors
Modifiers: editconst
AttackActiveUseCoverBehaviors
Modifiers: editconst
AttackPassiveBehaviors
Modifiers: editconst
Default value, index 0:
Member | Value |
---|---|
Odds | 0.4 |
StateName | 'AttackMoveToCoverCombat' |
TimeMax | 7.0 |
TimeMin | 7.0 |
Default value, index 1:
Member | Value |
---|---|
Odds | 0.06 |
StateName | 'AttackStationary' |
TimeMax | 3.0 |
TimeMin | 1.0 |
Default value, index 2:
Member | Value |
---|---|
Odds | 0.24 |
StateName | 'AttackFallback' |
TimeMax | 7.0 |
TimeMin | 2.5 |
AttackPassiveCantReachBehaviors
Modifiers: editconst
Default value, index 0:
Member | Value |
---|---|
Odds | 0.5 |
StateName | 'AttackStationary' |
TimeMin | 1.0 |
Default value, index 1:
Member | Value |
---|---|
Odds | 1.0 |
StateName | 'AttackFallback' |
TimeMax | 7.0 |
TimeMin | 2.0 |
AttackPassiveEnemyNotVisibleBehaviors
Modifiers: editconst
Default value:
Member | Value |
---|---|
Odds | 1.0 |
StateName | 'AttackFallback' |
TimeMax | 20.0 |
TimeMin | 20.0 |
AttackPassiveMeleeBehaviors
Modifiers: editconst
Default value, index 0:
Member | Value |
---|---|
StateName | 'AttackMelee' |
TimeMax | 2.0 |
TimeMin | 1.0 |
Default value, index 1:
Member | Value |
---|---|
StateName | 'AttackFallback' |
TimeMax | 5.0 |
TimeMin | 2.0 |
AttackPassiveMeleeHitBehaviors
Modifiers: editconst
AttackPassiveUseCoverBehaviors
Modifiers: editconst
Default value, index 0:
Member | Value |
---|---|
StateName | 'AttackStakeOutCover' |
TimeMax | 5.0 |
TimeMin | 2.0 |
Default value, index 1:
Member | Value |
---|---|
StateName | 'AttackRecoverEnemy' |
TimeMax | 4.0 |
TimeMin | 2.0 |
Default value, index 2:
Member | Value |
---|---|
StateName | 'AttackStationary' |
TimeMax | 4.0 |
TimeMin | 1.0 |
Default value, index 3:
Member | Value |
---|---|
StateName | 'AttackFallback' |
TimeMax | 20.0 |
TimeMin | 10.0 |
Default value, index 4:
Member | Value |
---|---|
StateName | 'AttackMoveToCoverCombat' |
TimeMax | 7.0 |
TimeMin | 7.0 |
bForceRanges
Type: bool
2002.12.15 hack to *force* NPCs to not fire outside min/max ranges
bIgnoreRelativeHealth
Type: bool
2002.12.15 (mdf) McMillan hack?
DefaultLookedAtCos
Type: float
cos of default fov angle to use when checking for LOS for ranged attack range
FireOffset
Type: Object.Vector
RangedProjectileClass
Type: class<Projectile>
RangeIdealAttack
Type: float
ideal attack range to target (NPC will try to maintain this distance)
RangeMaxAttackMobile
Type: float
max attack range to target if NPC can move
Default value: 65535.0
RangeMaxAttackMobileNoLOS
Type: float
max attack range to target if NPC can move and enemy can't see NPC (sneak in)
Default value: 65535.0
RangeMaxAttackStationary
Type: float
max attack range to target if NPC can't move
Default value: 65535.0
RangeMaxAttackStationaryNoLOS
Type: float
Default value: 65535.0
RangeMinAttack
Type: float
min attack range to target
Internal variables
See U2PawnBasic internal variables.
Default values
Property | Value |
---|---|
bAmbientCreature | False |
bCanKnockDown | True |
bSentient | True |
ControllerClass | Class'U2AI.U2NPCControllerBasic' |
MinKnockDownMomentumThreshold | 200.0 |
WanderSpeedMax | 1.5 |
WanderViewBlockedTurnOdds | 0.5 |
Structs
BehaviorT
- name StateName
- destination state
- name StateLabel
- destination label within destination state (optional)
- float Odds
- odds for state relative to other states in the list (0.0 ==> cycled)
- float EntryOdds
- if set (not 0.0) ==> odds used when entering metastate (from a different state), (< 0.0 ==> don't use)
- float TimeMin
- min time state will be maintained before reevaluating (unless situation changes)
- float TimeMax
- max time state will be maintained before reevaluating (unless situation changes)
- bool bDisabled
- disabled (by default or internally)
- bool bAvoidRepeat
- if true, state won't be re-selected 2x in a row if there is an alternative state
- float EnableTime
- can be set in-game to Level.TimeSeconds + X to disable that behavior temporarily
- float LowOddsTime
- used to temporarily make odds of behavior being used very low for a period of time
Functions
Events
PostBeginPlay
Overrides: U2PawnBase.PostBeginPlay
Other instance functions
FilterMeleeAttack
FireAtEnemy
GetFireOffset
GetMeleeDamageRange
GetMeleeMomentumNormal
GetWeaponAnimationTypeW
Overrides: U2Pawn.GetWeaponAnimationTypeW
HandleAcquireEnemySound
HandleLeapImpactSound
HandleLeapLandSound
HandleMiscSound
HandleSpawnShot
MeleeDamagedTarget
MeleeDamageTarget
NotifyImpale
NotifyLeapBegin
NotifyMelee01
NotifyMelee02
NotifyMelee03
NotifyMeleeBegin
NotifyMeleeMotionSound
NotifyStay01
NotifyUnImpale
RestoreSightRadius
Overrides: U2Pawn.RestoreSightRadius
SetSightRadius
Overrides: Pawn.SetSightRadius