gun
Vars | |
has_safety | Does this gun have a saftey and thus can toggle it? |
---|---|
manufacturer | The manufacturer of this weapon. For flavor mostly. If none, this will not show. |
muzzle_flash | Effect for the muzzle flash of the gun. |
muzzle_flash_color | Color of the muzzle flash effect. |
muzzle_flash_lum | Brightness of the muzzle flash effect. |
muzzleflash_iconstate | Icon state of the muzzle flash effect. |
recoil | Screen shake when the weapon is fired while wielded. |
recoil_backtime_multiplier | a multiplier of the duration the recoil takes to go back to normal view, this is (recoil*recoil_backtime_multiplier)+1 |
recoil_deviation | this is how much deviation the gun recoil can have, recoil pushes the screen towards the reverse angle you shot + some deviation which this is the max. |
recoil_unwielded | Screen shake when the weapon is fired while unwielded. |
safety | If the saftey on? If so, we can't fire the weapon |
safety_wording | The wording of safety. Useful for guns that have a non-standard safety system, like a revolver |
spread | How much the bullet scatters when fired while wielded. |
spread_unwielded | How much the bullet scatters when fired while unwielded. |
wield_delay | How long between wielding and firing in tenths of seconds |
wield_slowdown | Slowdown for wielding |
wield_time | Storing value for above |
Procs | |
on_unwield | triggered on unwield of two handed item |
on_wield | triggered on wield of two handed item |
set_gun_light | Swaps the gun's seclight, dropping the old seclight if it has not been qdel'd. |
Var Details
has_safety
Does this gun have a saftey and thus can toggle it?
manufacturer
The manufacturer of this weapon. For flavor mostly. If none, this will not show.
muzzle_flash
Effect for the muzzle flash of the gun.
muzzle_flash_color
Color of the muzzle flash effect.
muzzle_flash_lum
Brightness of the muzzle flash effect.
muzzleflash_iconstate
Icon state of the muzzle flash effect.
recoil
Screen shake when the weapon is fired while wielded.
recoil_backtime_multiplier
a multiplier of the duration the recoil takes to go back to normal view, this is (recoil*recoil_backtime_multiplier)+1
recoil_deviation
this is how much deviation the gun recoil can have, recoil pushes the screen towards the reverse angle you shot + some deviation which this is the max.
recoil_unwielded
Screen shake when the weapon is fired while unwielded.
safety
If the saftey on? If so, we can't fire the weapon
safety_wording
The wording of safety. Useful for guns that have a non-standard safety system, like a revolver
spread
How much the bullet scatters when fired while wielded.
spread_unwielded
How much the bullet scatters when fired while unwielded.
wield_delay
How long between wielding and firing in tenths of seconds
wield_slowdown
Slowdown for wielding
wield_time
Storing value for above
Proc Details
on_unwield
triggered on unwield of two handed item
on_wield
triggered on wield of two handed item
set_gun_light
Swaps the gun's seclight, dropping the old seclight if it has not been qdel'd.
Returns the former gun_light that has now been replaced by this proc. Arguments:
- new_light - The new light to attach to the weapon. Can be null, which will mean the old light is removed with no replacement.