I don't need to test my programs. I have an error-correcting modem.

UE2:Pawn (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:11, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT2004 Object >> Actor >> Pawn
Package: 
Engine
Direct subclasses:
RedeemerWarhead, Scout, UnrealPawn, Vehicle
This class in other games:
RTNP, U1, UT, UE2Runtime, UT2003, U2XMP, U2, UDK, UT3

Pawn, the base class of all actors that can be controlled by players or AI.

Pawns are the physical representations of players and creatures in a level. Pawns have a mesh, collision, and physics. Pawns can take damage, make sounds, and hold weapons and other inventory. In short, they are responsible for all physical interaction between the player or AI and the world.

This is a built-in Unreal class and it shouldn't be modified.

Properties

Property group 'AI'

AIScriptTag

Type: name

tag of AIScript which should be associated with this pawn

Alertness

Type: float

-1 to 1 ->Used within specific states for varying reaction to stimuli

bAdjacentZoneHearing

Type: bool

can hear any sound in adjacent zone (if close enough to hear)

bAroundCornerHearing

Type: bool

Hear sounds around one corner (slightly more expensive, and bLOSHearing must also be true)

bDontPossess

Type: bool

if true, Pawn won't be possessed at game start

bLOSHearing

Type: bool


Default value: True

bMuffledHearing

Type: bool

can hear sounds through walls (but muffled - sound distance increased to double plus 4x the distance through walls

bSameZoneHearing

Type: bool

can hear any sound in same zone (if close enough to hear)

HearingThreshold

Type: float

max distance at which a makenoise(1.0) loudness sound can be heard

Default value: 2800.0

PeripheralVision

Type: float

Cosine of limits of peripheral vision.

SightRadius

Type: float

Maximum seeing distance.

Default value: 5000.0

Property group 'AnimTweaks'

BlendChangeTime

Type: float

time to blend between movement animations

Default value: 0.25

Property group 'Pawn'

bCanCrouch

Type: bool

if true, this pawn is capable of crouching

DrivingHeight

Type: float

CollisionHeight when driving a vehicle

Default value: 20.0

DrivingRadius

Type: float

CollisionRadius when driving a vehicle

Default value: 22.0

HitFx

Type: HitFXData

Array size: 8


PitchDownLimit

Type: int


Default value: 49153

PitchUpLimit

Type: int


Default value: 18000

SkillModifier

Type: float

skill modifier (same scale as game difficulty)

Property group 'Shield'

ShieldStrength

Type: float

Modifiers: transient

current shielding (having been activated)

Internal variables

See Pawn internal variables.

Default values

Property Value
bBlockActors True
bCanBeDamaged True
bCanTeleport True
bCollideActors True
bCollideWorld True
bDirectional True
bDisturbFluidSurface True
bNoRepMesh True
bOwnerNoSee True
bProjTarget True
bRotateToDesired True
bShouldBaseAtStartup True
bStasis True
bTravel True
bUpdateSimulatedPosition True
bUseDynamicLights True
CollisionHeight 78.0
CollisionRadius 34.0
DrawType DT_Mesh
NetPriority 2.0
RemoteRole ROLE_SimulatedProxy
RotationRate
Member Value
Pitch 4096
Roll 3072
Yaw 20000
SoundRadius 160.0
SoundVolume 255
Texture S_Pawn

Structs

HitFXData

name Bone 
class<DamageType> damtype 
bool bSever 
Object.Rotator rotDir 

Functions

Static functions

StaticPrecache

static function StaticPrecache (LevelInfo L)


Exec functions

NextItem

exec function NextItem ()


SwitchToLastWeapon

exec function SwitchToLastWeapon ()


Native functions

ForceCrouch

native function ForceCrouch ()


Get4WayDirection

simulated native function int Get4WayDirection ()


ReachedDestination

native function bool ReachedDestination (Actor Goal)


SetTwistLook

simulated native function SetTwistLook (int twist, int look)


SetViewPitch

simulated native function SetViewPitch (int NewPitch)


Events

See Pawn events.

Other instance functions

See Pawn instance functions.

States

Dying

Ignores: BreathTimer, Bump, Falling, HeadVolumeChange, HitWall, PhysicsVolumeChange, Trigger

Dying.AnimEnd

event AnimEnd (int Channel)

Overrides: AnimEnd (global)


Dying.BaseChange

singular event BaseChange ()

Overrides: BaseChange (global)


Dying.BeginState

event BeginState ()

Overrides: Object.BeginState (global)


Dying.ChangeAnimation

event ChangeAnimation ()

Overrides: ChangeAnimation (global)


Dying.FellOutOfWorld

event FellOutOfWorld (Actor.eKillZType KillType)

Overrides: FellOutOfWorld (global)


Dying.Landed

event Landed (Object.Vector HitNormal)

Overrides: Landed (global)


Dying.StopPlayFiring

event StopPlayFiring ()

Overrides: StopPlayFiring (global)


Dying.TakeDamage

event TakeDamage (int Damage, Pawn instigatedBy, Object.Vector hitlocation, Object.Vector momentum, class<DamageTypedamageType)

Overrides: TakeDamage (global)


Dying.Timer

event Timer ()

Overrides: Actor.Timer (global)


Dying.Died

function Died (Controller Killer, class<DamageTypedamageType, Object.Vector HitLocation)

Overrides: Died (global)


Dying.LandThump

function LandThump ()


Dying.LieStill

function LieStill ()


Dying.PlayFiring

function PlayFiring (float Rate, name FiringMode)

Overrides: PlayFiring (global)


Dying.PlayNextAnimation

simulated function PlayNextAnimation ()


Dying.PlayTakeHit

function PlayTakeHit (Object.Vector HitLoc, int Damage, class<DamageTypedamageType)

Overrides: PlayTakeHit (global)


Dying.PlayWeaponSwitch

function PlayWeaponSwitch (Weapon NewWeapon)

Overrides: PlayWeaponSwitch (global)


Dying.ReduceCylinder

function ReduceCylinder ()