gun ![code/modules/projectiles/gun.dm 42](git.png)
Vars | |
accuracy | Accuracy is measured in tiles. +1 accuracy means that everything is effectively one tile closer for the purpose of miss chance, -1 means the opposite. launchers are not supported, at the moment. |
---|---|
accuracy_power | Increase of to-hit chance per 1 point of accuracy. |
aim_targets | List of who you are targeting. |
bulk | How unwieldy this weapon for its size, affects accuracy when fired without aiming. |
burst_accuracy | Allows for different accuracies for each shot in a burst. Applied on top of accuracy. |
burst_delay | Delay between shots, if firing in bursts. |
can_autofire | Checks if the gun will continue firing if the mouse button is held down. |
combustion | Whether it creates hotspot when fired. |
fire_delay | Delay after shooting before the gun can be used again. Cannot be less than [burst_delay+1]. |
fire_sound | Sound this gun makes when firing. Overridden by projectiles with their own sounds. |
gun_skill | What skill governs safe handling of this gun. Basic skill level and higher will also show the safety overlay to the player. |
keep_aim | 1 for "keep shooting until aim is lowered", 0 for "one bullet after target moves and aim is lowered". |
last_handled | Time when hand gun's in became active, for purposes of aiming bonuses. |
last_moved_mob | Used to fire faster at more than one person. |
multi_aim | Used to determine if you can target multiple people. |
safety_icon | Overlay to apply to gun based on safety state, if any. |
safety_skill | What skill level is needed in the gun's skill to completely negate the chance of an accident. |
scope_zoom | How far this weapon's scope can see. |
scoped_accuracy | Accuracy used when zoomed in a scope. Not additive. |
screen_shake | The amount your screen shakes when firing. Shouldn't be greater than 2 unless zoomed. |
sel_mode | Index of the currently selected mode. |
space_recoil | Whether or not this weapon moves the shooter backwards when fired in space. |
told_cant_shoot | So that it doesn't spam them with the fact they cannot hit them. |
Var Details
accuracy ![code/modules/projectiles/gun.dm 83](git.png)
Accuracy is measured in tiles. +1 accuracy means that everything is effectively one tile closer for the purpose of miss chance, -1 means the opposite. launchers are not supported, at the moment.
accuracy_power ![code/modules/projectiles/gun.dm 85](git.png)
Increase of to-hit chance per 1 point of accuracy.
aim_targets ![code/modules/projectiles/gun.dm 114](git.png)
List of who you are targeting.
bulk ![code/modules/projectiles/gun.dm 87](git.png)
How unwieldy this weapon for its size, affects accuracy when fired without aiming.
burst_accuracy ![code/modules/projectiles/gun.dm 95](git.png)
Allows for different accuracies for each shot in a burst. Applied on top of accuracy.
burst_delay ![code/modules/projectiles/gun.dm 70](git.png)
Delay between shots, if firing in bursts.
can_autofire ![code/modules/projectiles/gun.dm 66](git.png)
Checks if the gun will continue firing if the mouse button is held down.
combustion ![code/modules/projectiles/gun.dm 100](git.png)
Whether it creates hotspot when fired.
fire_delay ![code/modules/projectiles/gun.dm 68](git.png)
Delay after shooting before the gun can be used again. Cannot be less than [burst_delay+1].
fire_sound ![code/modules/projectiles/gun.dm 73](git.png)
Sound this gun makes when firing. Overridden by projectiles with their own sounds.
gun_skill ![code/modules/projectiles/gun.dm 127](git.png)
What skill governs safe handling of this gun. Basic skill level and higher will also show the safety overlay to the player.
keep_aim ![code/modules/projectiles/gun.dm 110](git.png)
1 for "keep shooting until aim is lowered", 0 for "one bullet after target moves and aim is lowered".
last_handled ![code/modules/projectiles/gun.dm 89](git.png)
Time when hand gun's in became active, for purposes of aiming bonuses.
last_moved_mob ![code/modules/projectiles/gun.dm 116](git.png)
Used to fire faster at more than one person.
multi_aim ![code/modules/projectiles/gun.dm 112](git.png)
Used to determine if you can target multiple people.
safety_icon ![code/modules/projectiles/gun.dm 124](git.png)
Overlay to apply to gun based on safety state, if any.
safety_skill ![code/modules/projectiles/gun.dm 129](git.png)
What skill level is needed in the gun's skill to completely negate the chance of an accident.
scope_zoom ![code/modules/projectiles/gun.dm 93](git.png)
How far this weapon's scope can see.
scoped_accuracy ![code/modules/projectiles/gun.dm 91](git.png)
Accuracy used when zoomed in a scope. Not additive.
screen_shake ![code/modules/projectiles/gun.dm 78](git.png)
The amount your screen shakes when firing. Shouldn't be greater than 2 unless zoomed.
sel_mode ![code/modules/projectiles/gun.dm 104](git.png)
Index of the currently selected mode.
space_recoil ![code/modules/projectiles/gun.dm 80](git.png)
Whether or not this weapon moves the shooter backwards when fired in space.
told_cant_shoot ![code/modules/projectiles/gun.dm 118](git.png)
So that it doesn't spam them with the fact they cannot hit them.