mounted_gun 
Vars | |
| accepted_ammo_types | Things you can load into the gun |
|---|---|
| anchorable_gun | whether the cannon can be unwrenched from the ground. Anchorable_cannon equivalent. |
| debris | What items to spawn when destroyed |
| fire_delay | Delay in firing the gun after lighting |
| fire_sound | Sound of firing for all but last shot |
| fire_suffix | Suffix added to base icon state when firing |
| firing_shakes_camera | If the gun shakes the camera when firing |
| 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. |
| loading_message | Message displayed when loading gun |
| max_shots_per_fire | Max shots per firing of the gun. |
| projectile_type | Projectile to fire |
| 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. |
| unanchored_variance | How many degrees to vary fire angle if the gun is not anchored |
Procs | |
| finish_firing | Called when we run out of bullets |
| fire_gun | Actually finally shoot the thing |
| fire_loop | Perform the contents of the loop, return the amount of time until the next shot |
| fire_sequence | Loop firing until we are done |
| get_fired_projectile | What kind of ammo are we shooting |
| item_interaction | Covers Reloading and lighting of the gun |
| time_until_next_shot | Return |
| try_firing | Start firing the weapon on interaction |
Var Details
accepted_ammo_types 
Things you can load into the gun
anchorable_gun 
whether the cannon can be unwrenched from the ground. Anchorable_cannon equivalent.
debris 
What items to spawn when destroyed
fire_delay 
Delay in firing the gun after lighting
fire_sound 
Sound of firing for all but last shot
fire_suffix 
Suffix added to base icon state when firing
firing_shakes_camera 
If the gun shakes the camera when firing
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.
loading_message 
Message displayed when loading gun
max_shots_per_fire 
Max shots per firing of the gun.
projectile_type 
Projectile to fire
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.
unanchored_variance 
How many degrees to vary fire angle if the gun is not anchored
Proc Details
finish_firing
Called when we run out of bullets
fire_gun
Actually finally shoot the thing
fire_loop
Perform the contents of the loop, return the amount of time until the next shot
fire_sequence
Loop firing until we are done
get_fired_projectile
What kind of ammo are we shooting
item_interaction
Covers Reloading and lighting of the gun
time_until_next_shot
Return
try_firing
Start firing the weapon on interaction