gun
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
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.