Gah - a solution with more questions. – EntropicLqd
UE2:U2PawnBasic (U2XMP)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Actor >> Pawn >> LicenseePawn >> U2Pawn >> U2PawnBase >> U2PawnBasic |
- Package:
- U2AI
- Direct subclasses:
- U2AraknidBase, U2DrakkBossUpper, U2DrakkBoss, U2DrakkDroid, U2DrakkLight, U2DrakkMedium, U2FlyingSnake, U2KaiBase, U2KillerTadpole, U2Mukhogg, U2Parata, U2PawnAdvanced, U2Rammer, U2SeagoatStowaway, U2Seagoat, U2ShianWarrior, U2ShianWorker, U2SkaarjBase, U2Snipe, U2Tosc, U2Uglyfish
| This is an auto-generated page and may need human attention. Please remove this 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 $
[edit] Properties
[edit] Property group 'AI'
[edit] AttackActiveBehaviors
Modifiers: editconst
Default value:
| Member | Value |
|---|---|
| Odds | 1.0 |
| StateName | 'AttackClose' |
| TimeMax | 4.0 |
| TimeMin | 4.0 |
[edit] 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 |
[edit] AttackActiveEnemyNotVisibleBehaviors
Modifiers: editconst
Default value:
| Member | Value |
|---|---|
| Odds | 1.0 |
| StateName | 'AttackHunt' |
| TimeMax | 20.0 |
| TimeMin | 20.0 |
[edit] AttackActiveMeleeBehaviors
Modifiers: editconst
Default value:
| Member | Value |
|---|---|
| StateName | 'AttackMelee' |
| TimeMax | 3.0 |
| TimeMin | 3.0 |
[edit] AttackActiveMeleeHitBehaviors
Modifiers: editconst
[edit] AttackActiveUseCoverBehaviors
Modifiers: editconst
[edit] 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 |
[edit] 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 |
[edit] AttackPassiveEnemyNotVisibleBehaviors
Modifiers: editconst
Default value:
| Member | Value |
|---|---|
| Odds | 1.0 |
| StateName | 'AttackFallback' |
| TimeMax | 20.0 |
| TimeMin | 20.0 |
[edit] 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 |
[edit] AttackPassiveMeleeHitBehaviors
Modifiers: editconst
[edit] 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 |
[edit] bForceRanges
Type: bool
2002.12.15 hack to *force* NPCs to not fire outside min/max ranges
[edit] bIgnoreRelativeHealth
Type: bool
2002.12.15 (mdf) McMillan hack?
[edit] DefaultLookedAtCos
Type: float
cos of default fov angle to use when checking for LOS for ranged attack range
[edit] FireOffset
Type: Object.Vector
[edit] RangedProjectileClass
Type: class<Projectile>
[edit] RangeIdealAttack
Type: float
ideal attack range to target (NPC will try to maintain this distance)
[edit] RangeMaxAttackMobile
Type: float
max attack range to target if NPC can move
Default value: 65535.0
[edit] RangeMaxAttackMobileNoLOS
Type: float
max attack range to target if NPC can move and enemy can't see NPC (sneak in)
Default value: 65535.0
[edit] RangeMaxAttackStationary
Type: float
max attack range to target if NPC can't move
Default value: 65535.0
[edit] RangeMaxAttackStationaryNoLOS
Type: float
Default value: 65535.0
[edit] RangeMinAttack
Type: float
min attack range to target
[edit] Internal variables
See U2PawnBasic internal variables.
[edit] Default values
| Property | Value |
|---|---|
| bAmbientCreature | False |
| bCanKnockDown | True |
| bSentient | True |
| ControllerClass | Class'U2AI.U2NPCControllerBasic' |
| MinKnockDownMomentumThreshold | 200.0 |
| WanderSpeedMax | 1.5 |
| WanderViewBlockedTurnOdds | 0.5 |
[edit] Structs
[edit] 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
[edit] Functions
[edit] Events
[edit] PostBeginPlay
Overrides: U2PawnBase.PostBeginPlay
[edit] Other instance functions
[edit] FilterMeleeAttack
[edit] FireAtEnemy
[edit] GetFireOffset
[edit] GetMeleeDamageRange
[edit] GetMeleeMomentumNormal
[edit] GetWeaponAnimationTypeW
Overrides: U2Pawn.GetWeaponAnimationTypeW
[edit] HandleAcquireEnemySound
[edit] HandleLeapImpactSound
[edit] HandleLeapLandSound
[edit] HandleMiscSound
[edit] HandleSpawnShot
[edit] MeleeDamagedTarget
[edit] MeleeDamageTarget
[edit] NotifyImpale
[edit] NotifyLeapBegin
[edit] NotifyMelee01
[edit] NotifyMelee02
[edit] NotifyMelee03
[edit] NotifyMeleeBegin
[edit] NotifyMeleeMotionSound
[edit] NotifyStay01
[edit] NotifyUnImpale
[edit] RestoreSightRadius
Overrides: U2Pawn.RestoreSightRadius
[edit] SetSightRadius
Overrides: Pawn.SetSightRadius
