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

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, U2, UE2Runtime, UT2003, UT2004, UDK, UT3

Parent class of all weapons.

Properties[edit]

Property group 'Weapon'[edit]

AltFireSound[edit]

Type: Sound


CockingSound[edit]

Type: Sound


FireSound[edit]

Type: Sound


MessageNoAmmo[edit]

Type: string

Modifiers: localized


Default value: " has no ammo."

SelectSound[edit]

Type: Sound


Internal variables[edit]

See Weapon internal variables.

Default values[edit]

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[edit]

Events[edit]

Destroyed[edit]

event Destroyed ()

Overrides: Inventory.Destroyed


PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Replication[edit]

event Replication ()

Overrides: Inventory.Replication


TravelPreAccept[edit]

event TravelPreAccept ()

Overrides: Inventory.TravelPreAccept


Other instance functions[edit]

See Weapon instance functions.

States[edit]

Active[edit]

Ignores: AltFire, Fire

Active.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


Active.EndState[edit]

simulated event EndState ()

Overrides: Object.EndState (global)


Active.PutDown[edit]

simulated function bool PutDown ()

Overrides: PutDown (global)


DownWeapon[edit]

Ignores: AltFire, Fire

DownWeapon.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


DownWeapon.PutDown[edit]

simulated function bool PutDown ()

Overrides: PutDown (global)


PendingClientWeaponSet[edit]

PendingClientWeaponSet.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


PendingClientWeaponSet.EndState[edit]

simulated event EndState ()

Overrides: Object.EndState (global)


PendingClientWeaponSet.Timer[edit]

simulated event Timer ()

Overrides: Actor.Timer (global)