I love the smell of UnrealEd crashing in the morning. – tarquin
UE2:Weapon (UT2003)
Contents
- 1 Constants
- 2 Properties
- 2.1 Property group 'FirstPerson'
- 2.2 Property group 'Weapon'
- 2.2.1 AimAnim
- 2.2.2 AimAnimRate
- 2.2.3 AIRating
- 2.2.4 Ammo
- 2.2.5 bCanThrow
- 2.2.6 bForceSwitch
- 2.2.7 bMeleeWeapon
- 2.2.8 bNotInPriorityList
- 2.2.9 BotMode
- 2.2.10 bSniping
- 2.2.11 ClientState
- 2.2.12 DefaultPriority
- 2.2.13 DisplayFOV
- 2.2.14 EffectOffset
- 2.2.15 ExchangeFireModes
- 2.2.16 FireMode
- 2.2.17 FireModeClass
- 2.2.18 IdleAnim
- 2.2.19 IdleAnimRate
- 2.2.20 MessageNoAmmo
- 2.2.21 Priority
- 2.2.22 PutDownAnim
- 2.2.23 PutDownAnimRate
- 2.2.24 RestAnim
- 2.2.25 RestAnimRate
- 2.2.26 RunAnim
- 2.2.27 RunAnimRate
- 2.2.28 SelectAnim
- 2.2.29 SelectAnimRate
- 2.2.30 SelectForce
- 2.2.31 SelectSound
- 2.3 Internal variables
- 2.3.1 bDebugging
- 2.3.2 bMatchWeapons
- 2.3.3 bNotInDemo
- 2.3.4 bNoVoluntarySwitch
- 2.3.5 bPendingSwitch
- 2.3.6 bShowChargingBar
- 2.3.7 bSpectated
- 2.3.8 CurrentRating
- 2.3.9 CustomCrosshair
- 2.3.10 CustomCrossHairColor
- 2.3.11 CustomCrossHairScale
- 2.3.12 CustomCrossHairTexture
- 2.3.13 CustomCrossHairTextureName
- 2.3.14 DemoReplacement
- 2.3.15 Hand
- 2.3.16 HudColor
- 2.3.17 OldWeapon
- 2.3.18 RenderedHand
- 2.3.19 SmallEffectOffset
- 2.4 Default values
- 3 Enums
- 4 Functions
- 5 States
- Package:
- Engine
- Direct subclasses:
- AssaultRifle, BallLauncher, BioRifle, FlakCannon, LinkGun, Minigun, Painter, Redeemer, RocketLauncher, ShieldGun, ShockRifle, SniperRifle, TransLauncher
- Known custom subclass:
- ReloadableWeaponBase
- This class in other games:
- RTNP, U1, UT, UE2Runtime, U2XMP, UT2004, U2, UT3, UDK
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. |
null
Constants[edit]
NUM_FIRE_MODES[edit]
Value: 2
Properties[edit]
Property group 'FirstPerson'[edit]
CenteredOffsetY[edit]
Type: float
Default value: -10.0
CenteredRoll[edit]
Type: int
Default value: 2000
CenteredYaw[edit]
Type: int
SmallViewOffset[edit]
Type: Object.Vector
Offset from view center with small weapons option.
Property group 'Weapon'[edit]
AimAnim[edit]
Type: name
Default value: 'Aim'
AimAnimRate[edit]
Type: float
Default value: 1.0
AIRating[edit]
Type: float
Default value: 0.5
Ammo[edit]
Type: Ammunition
Array size: 2 (NUM_FIRE_MODES
)
bCanThrow[edit]
Type: bool
Default value: True
bForceSwitch[edit]
Type: bool
if true, this weapon will prevent any other weapon from delaying the switch to it (bomb launcher)
bMeleeWeapon[edit]
Type: bool
bNotInPriorityList[edit]
Type: bool
Should be displayed in a GUI weapon list
BotMode[edit]
Type: int
the fire Mode currently being used for bots
bSniping[edit]
Type: bool
ClientState[edit]
Type: EWeaponClientState
this will always be None on the server
DefaultPriority[edit]
Type: byte
DisplayFOV[edit]
Type: float
Default value: 90.0
EffectOffset[edit]
Type: Object.Vector
where muzzle flashes and smoke appear. replace by bone reference eventually
ExchangeFireModes[edit]
Type: byte
Modifiers: config
FireMode[edit]
Type: WeaponFire
Array size: 2 (NUM_FIRE_MODES
)
Modifiers: editinline
FireModeClass[edit]
Type: class<WeaponFire>
Array size: 2 (NUM_FIRE_MODES
)
IdleAnim[edit]
Type: name
Default value: 'Idle'
IdleAnimRate[edit]
Type: float
Default value: 1.0
MessageNoAmmo[edit]
Type: string
Modifiers: localized
Default value: " has no ammo"
Priority[edit]
Type: byte
Modifiers: config
PutDownAnim[edit]
Type: name
Default value: 'Down'
PutDownAnimRate[edit]
Type: float
Default value: 1.5
RestAnim[edit]
Type: name
Default value: 'Rest'
RestAnimRate[edit]
Type: float
Default value: 1.0
RunAnim[edit]
Type: name
Default value: 'Run'
RunAnimRate[edit]
Type: float
Default value: 1.0
SelectAnim[edit]
Type: name
Default value: 'Select'
SelectAnimRate[edit]
Type: float
Default value: 1.5
SelectForce[edit]
Type: string
SelectSound[edit]
Type: Sound
Internal variables[edit]
bDebugging[edit]
Type: bool
bMatchWeapons[edit]
Type: bool
for team beacons (lightning gun potential links)
bNotInDemo[edit]
Type: bool
bNoVoluntarySwitch[edit]
Type: bool
bPendingSwitch[edit]
Type: bool
Modifiers: transient
bShowChargingBar[edit]
Type: bool
bSpectated[edit]
Type: bool
CurrentRating[edit]
Type: float
rating result from most recent RateSelf()
Default value: 0.5
CustomCrosshair[edit]
Type: int
Modifiers: config
Default value: -1
CustomCrossHairColor[edit]
Type: Object.Color
Modifiers: config
Default value:
Member | Value |
---|---|
A | 255 |
B | 255 |
G | 255 |
R | 255 |
CustomCrossHairScale[edit]
Type: float
Modifiers: config
Default value: 1.0
CustomCrossHairTexture[edit]
Type: Texture
CustomCrossHairTextureName[edit]
Type: string
Modifiers: config
DemoReplacement[edit]
Type: class<Weapon>
Hand[edit]
Type: float
HudColor[edit]
Type: Object.Color
Default value:
Member | Value |
---|---|
A | 255 |
B | 0 |
G | 255 |
R | 255 |
OldWeapon[edit]
Type: Weapon
RenderedHand[edit]
Type: float
SmallEffectOffset[edit]
Type: Object.Vector
Default values[edit]
Property | Value | ||||||||
---|---|---|---|---|---|---|---|---|---|
AmbientGlow | 20 | ||||||||
AttachmentClass | Class'Engine.WeaponAttachment' | ||||||||
DrawType | DT_Mesh | ||||||||
InventoryGroup | 1 | ||||||||
MaxLights | 6 | ||||||||
NetPriority | 3.0 | ||||||||
PlayerViewOffset |
|
||||||||
ScaleGlow | 1.5 | ||||||||
SoundVolume | 255 |
Enums[edit]
EWeaponClientState[edit]
- WS_None
- WS_Hidden
- WS_BringUp
- WS_PutDown
- WS_ReadyToFire
Functions[edit]
Exec functions[edit]
GetWeaponStats[edit]
Events[edit]
AnimEnd[edit]
Overrides: Actor.AnimEnd
ClientStartFire[edit]
ClientStopFire[edit]
Destroyed[edit]
Overrides: Inventory.Destroyed
PostBeginPlay[edit]
Overrides: Actor.PostBeginPlay
RenderOverlays[edit]
Overrides: Inventory.RenderOverlays
ServerStartFire[edit]
StopFire[edit]
Timer[edit]
Overrides: Actor.Timer
WeaponTick[edit]
Other instance functions[edit]
See Weapon instance functions.
States[edit]
Hidden[edit]
PendingClientWeaponSet[edit]
PendingClientWeaponSet.BeginState[edit]
Overrides: Object.BeginState (global)
PendingClientWeaponSet.EndState[edit]
Overrides: Object.EndState (global)
PendingClientWeaponSet.Timer[edit]
Overrides: Timer (global)