gun ![code/modules/projectiles/gun.dm 5](git.png)
Vars | |
burst_shot_delay | The time between shots in burst. |
---|---|
burst_size | Weapon is burst fire if this is above 1 |
busy_action | Used in gun-in-mouth execution/suicide and similar, while TRUE nothing should work on this like firing or modification and so on and so forth. |
can_circuit | can we be put in a circuit |
can_emitter | can we be put in an emitter |
can_turret | can we be put into a turret |
dir_recoil_amp | directional recoil multiplier |
fire_delay | The time between firing actions, this means between bursts if this is burst weapon. The reason this is 0 is because you are still, by default, limited by clickdelay. |
fire_select | Current fire selection, can choose between burst, single, and full auto. |
fire_select_modes | What modes does this weapon have? Put SELECT_FULLY_AUTOMATIC in here to enable fully automatic behaviours. |
firing | Currently firing, whether or not it's a burst or not. |
last_fire | Last world.time this was fired |
projectile_damage_multiplier | Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun. |
selector_switch_icon | if i`1t has an icon for a selector switch indicating current firemode. |
Procs | |
set_gun_light | Swaps the gun's seclight, dropping the old seclight if it has not been qdel'd. |
Var Details
burst_shot_delay ![code/modules/projectiles/gun.dm 48](git.png)
The time between shots in burst.
burst_size ![code/modules/projectiles/gun.dm 46](git.png)
Weapon is burst fire if this is above 1
busy_action ![code/modules/projectiles/gun.dm 56](git.png)
Used in gun-in-mouth execution/suicide and similar, while TRUE nothing should work on this like firing or modification and so on and so forth.
can_circuit ![code/modules/projectiles/gun.dm 41](git.png)
can we be put in a circuit
can_emitter ![code/modules/projectiles/gun.dm 43](git.png)
can we be put in an emitter
can_turret ![code/modules/projectiles/gun.dm 39](git.png)
can we be put into a turret
dir_recoil_amp ![code/modules/projectiles/gun.dm 113](git.png)
directional recoil multiplier
fire_delay ![code/modules/projectiles/gun.dm 50](git.png)
The time between firing actions, this means between bursts if this is burst weapon. The reason this is 0 is because you are still, by default, limited by clickdelay.
fire_select ![code/modules/projectiles/gun.dm 100](git.png)
Current fire selection, can choose between burst, single, and full auto.
fire_select_modes ![code/modules/projectiles/gun.dm 103](git.png)
What modes does this weapon have? Put SELECT_FULLY_AUTOMATIC in here to enable fully automatic behaviours.
firing ![code/modules/projectiles/gun.dm 54](git.png)
Currently firing, whether or not it's a burst or not.
last_fire ![code/modules/projectiles/gun.dm 52](git.png)
Last world.time this was fired
projectile_damage_multiplier ![code/modules/projectiles/gun.dm 110](git.png)
Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.
selector_switch_icon ![code/modules/projectiles/gun.dm 105](git.png)
if i`1t has an icon for a selector switch indicating current firemode.
Proc Details
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.