Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
UE2:Weapon (U2)
From Unreal Wiki, The Unreal Engine Documentation Site
Contents |
- Package:
- Engine
- Direct subclasses:
- AssaultRifle, DeployableInventory, EnergyRifle, Flamethrower, GrenadeLauncher, Pistol, RocketLauncher, Shotgun, SniperRifle, TurretWeapon
- Known custom subclass:
- ReloadableWeaponBase
- This class in other games:
- RTNP, U1, U2XMP, UDK, UE2Runtime, UT, UT2003, UT2004, UT3
| 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. |
Parent class of all weapons. FIXME - should bReplicateInstigator be true???
[edit] Constants
[edit] NUM_AMMO_TYPES
Value: 2
[edit] Properties
[edit] Property group 'Firing'
[edit] DownTime
Type: float
Default value: 0.533
[edit] DownUnloadedTime
Type: float
Default value: 0.533
[edit] ReloadTime
Type: float
Default value: 0.5
[edit] ReloadUnloadedTime
Type: float
Default value: 0.25
[edit] SelectTime
Type: float
Default value: 0.6
[edit] SelectUnloadedTime
Type: float
Default value: 0.6
[edit] Property group 'Weapon'
[edit] BloodEffect
Array size: 2 (NUM_AMMO_TYPES)
[edit] DirtEffect
Array size: 2 (NUM_AMMO_TYPES)
[edit] FireSkins
The skin to show when we just fired, and want to make the gun appear brighter from the flash
[edit] FireSkinsTP
The skin to show when we just fired, and want to make the gun appear brighter from the flash (thirdperson)
[edit] MessageNoAmmo
Type: string
Modifiers: localized
Default value: " has no ammo."
[edit] ReloadSound
Type: Sound
[edit] ReloadUnloadedSound
Type: Sound
[edit] SelectSound
Type: Sound
[edit] SparkEffect
Array size: 2 (NUM_AMMO_TYPES)
[edit] TargetableTypes
Types of classes we can target (for crosshair glows).
Default value: 'Pawn'
[edit] Internal variables
See Weapon internal variables.
[edit] Default values
| Property | Value | ||||||
|---|---|---|---|---|---|---|---|
| AttachmentClass | Class'Engine.WeaponAttachment' | ||||||
| bReplicateInstigator | True | ||||||
| DrawType | DT_Mesh | ||||||
| Icon | Texture'Engine.S_Weapon' | ||||||
| InventoryGroup | 1 | ||||||
| ItemName | "Weapon" | ||||||
| PlayerViewOffset |
|
||||||
| TransientSoundRadius | 120.0 |
[edit] Structs
[edit] TAmmoFlags
Modifiers: native
- bool bAmbientFireSound
- bool bRecommendSplashDamage
- bool bWarnTarget
- bool bTossed
- bool bTrySplash
- bool bLeadTarget
- bool bInstantHit
- bool bSplashDamage
- bool bRepeatFire
- automatic refire support
- bool bRapidFire
- used by pawn animations in determining firing animation, and for net replication (set for high rate of fire weapons)
[edit] Functions
[edit] Static functions
[edit] IsValidDefaultInventory
[edit] Events
[edit] Destroyed
Overrides: Inventory.Destroyed
[edit] PostNetBeginPlay
Overrides: Actor.PostNetBeginPlay
[edit] PreBeginPlay
Overrides: Actor.PreBeginPlay
[edit] RenderOverlays
Overrides: Inventory.RenderOverlays
[edit] Other instance functions
See Weapon instance functions.
[edit] States
[edit] Active
Modifiers: simulated
[edit] Active.BeginState
Overrides: Object.BeginState (global)
[edit] Active.EndState
Overrides: Object.EndState (global)
[edit] Active.PutDown
Overrides: PutDown (global)
[edit] DownWeapon
Modifiers: simulated
[edit] DownWeapon.BeginState
Overrides: Object.BeginState (global)
[edit] DownWeapon.PutDown
Overrides: PutDown (global)
[edit] Firing
Modifiers: simulated
[edit] Firing.BeginState
Overrides: Object.BeginState (global)
[edit] Firing.EndState
Overrides: Object.EndState (global)
[edit] Firing.Reload
Overrides: Reload (global)
[edit] Idle
Modifiers: simulated
[edit] Idle.PutDown
Overrides: PutDown (global)
[edit] PendingClientWeaponSet
[edit] PendingClientWeaponSet.BeginState
Overrides: Object.BeginState (global)
[edit] PendingClientWeaponSet.EndState
Overrides: Object.EndState (global)
[edit] PendingClientWeaponSet.Timer
Overrides: Actor.Timer (global)
[edit] Reloading
Modifiers: simulated
Ignores: AltFire, Fire, Reload
[edit] Reloading.BeginState
Overrides: Object.BeginState (global)
[edit] Reloading.EndState
Overrides: Object.EndState (global)
[edit] Reloading.CanFire
[edit] Reloading.PutDown
Overrides: PutDown (global)
[edit] Reloading.ServerFire
Overrides: ServerFire (global)
