Always snap to grid

UE2:Weapon (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Inventory >> Weapon
Package: 
Engine
Direct subclass:
U2Weapon
Known custom subclass:
ReloadableWeaponBase
This class in other games:
RTNP, U1, UT, UE2Runtime, UT2004, U2, UT2003, UT3, UDK

Parent class of all weapons.

Properties

Property group 'Weapon'

AltFireSound

Type: Sound


CockingSound

Type: Sound


FireSound

Type: Sound


MessageNoAmmo

Type: string

Modifiers: localized


Default value: " has no ammo."

SelectSound

Type: Sound


Internal variables

See Weapon internal variables.

Default values

Property Value
bNoSmooth True
DrawType DT_Mesh
Icon Texture'Engine.S_Weapon'
InventoryGroup 1
ItemName "Weapon"
PlayerViewOffset
Member Value
X 30.0
Z -5.0

Functions

Events

Destroyed

event Destroyed ()

Overrides: Inventory.Destroyed


PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Replication

event Replication ()

Overrides: Inventory.Replication


TravelPreAccept

event TravelPreAccept ()

Overrides: Inventory.TravelPreAccept


Other instance functions

See Weapon instance functions.

States

Active

Ignores: AltFire, Fire

Active.BeginState

simulated event BeginState ()

Overrides: Object.BeginState (global)


Active.EndState

simulated event EndState ()

Overrides: Object.EndState (global)


Active.PutDown

simulated function bool PutDown ()

Overrides: PutDown (global)


DownWeapon

Ignores: AltFire, Fire

DownWeapon.BeginState

simulated event BeginState ()

Overrides: Object.BeginState (global)


DownWeapon.PutDown

simulated function bool PutDown ()

Overrides: PutDown (global)


PendingClientWeaponSet

PendingClientWeaponSet.BeginState

simulated event BeginState ()

Overrides: Object.BeginState (global)


PendingClientWeaponSet.EndState

simulated event EndState ()

Overrides: Object.EndState (global)


PendingClientWeaponSet.Timer

simulated event Timer ()

Overrides: Actor.Timer (global)