mounted_gun 
Vars | |
| alt_ammo_type | Alternative ammo types, for extra effects! |
|---|---|
| alt_projectile_type | Projectile from said gun. Doesnt automatically inherit said ammo's projectile in case you wanted to make a gun that shoots floor tiles or something. |
| ammo_type | Accepted "ammo" type |
| anchorable_gun | whether the cannon can be unwrenched from the ground. Anchorable_cannon equivalent. |
| fire_delay | delay in firing the gun after lighting |
| fire_sound | sound of firing for all but last shot |
| firing_shakes_camera | If the gun shakes the camera when firing |
| fully_loaded_gun | If the gun is currently loaded with its maximum capacity. |
| has_alt_ammo | Does it have an alternative ammo type it can uses |
| is_firing | So you can't reload it mid-firing |
| last_fire_sound | sound of firing for last shot |
| load_delay | Delay it takes to load the gun. Set to 0 if none. |
| loaded_gun | If the gun has anything in it. |
| loading_message | Message displayed when loading gun |
| max_shots_per_fire | Max shots per firing of the gun. |
| projectile_type | Projectile from said gun. Doesnt automatically inherit said ammo's projectile in case you wanted to make a gun that shoots floor tiles or something. |
| shot_delay | Delay between shots |
| shots_in_gun | Shots currently loaded. Should never be more than max_shots_per_fire. |
| shots_per_load | shots added to gun, per piece of ammo loaded. |
| uses_ammo | does this thing need ammo at all or does it just make ammo? |
Procs | |
| attackby | Covers Reloading and lighting of the gun |
Var Details
alt_ammo_type 
Alternative ammo types, for extra effects!
alt_projectile_type 
Projectile from said gun. Doesnt automatically inherit said ammo's projectile in case you wanted to make a gun that shoots floor tiles or something.
ammo_type 
Accepted "ammo" type
anchorable_gun 
whether the cannon can be unwrenched from the ground. Anchorable_cannon equivalent.
fire_delay 
delay in firing the gun after lighting
fire_sound 
sound of firing for all but last shot
firing_shakes_camera 
If the gun shakes the camera when firing
fully_loaded_gun 
If the gun is currently loaded with its maximum capacity.
has_alt_ammo 
Does it have an alternative ammo type it can uses
is_firing 
So you can't reload it mid-firing
last_fire_sound 
sound of firing for last shot
load_delay 
Delay it takes to load the gun. Set to 0 if none.
loaded_gun 
If the gun has anything in it.
loading_message 
Message displayed when loading gun
max_shots_per_fire 
Max shots per firing of the gun.
projectile_type 
Projectile from said gun. Doesnt automatically inherit said ammo's projectile in case you wanted to make a gun that shoots floor tiles or something.
shot_delay 
Delay between shots
shots_in_gun 
Shots currently loaded. Should never be more than max_shots_per_fire.
shots_per_load 
shots added to gun, per piece of ammo loaded.
uses_ammo 
does this thing need ammo at all or does it just make ammo?
Proc Details
attackby
Covers Reloading and lighting of the gun