/tg/ Station 13 - Modules - TypesVar Details - Proc Details

mounted_gun

Vars

accepted_ammo_typesThings you can load into the gun
anchorable_gunwhether the cannon can be unwrenched from the ground. Anchorable_cannon equivalent.
debrisWhat items to spawn when destroyed
fire_delayDelay in firing the gun after lighting
fire_soundSound of firing for all but last shot
fire_suffixSuffix added to base icon state when firing
firing_shakes_cameraIf the gun shakes the camera when firing
is_firingSo you can't reload it mid-firing
last_fire_soundSound of firing for last shot
load_delayDelay it takes to load the gun. Set to 0 if none.
loading_messageMessage displayed when loading gun
max_shots_per_fireMax shots per firing of the gun.
projectile_typeProjectile to fire
shot_delayDelay between shots
shots_in_gunShots currently loaded. Should never be more than max_shots_per_fire.
shots_per_loadShots added to gun, per piece of ammo loaded.
unanchored_varianceHow many degrees to vary fire angle if the gun is not anchored

Procs

finish_firingCalled when we run out of bullets
fire_gunActually finally shoot the thing
fire_loopPerform the contents of the loop, return the amount of time until the next shot
fire_sequenceLoop firing until we are done
get_fired_projectileWhat kind of ammo are we shooting
item_interactionCovers Reloading and lighting of the gun
time_until_next_shotReturn
try_firingStart 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