byond - Modules - TypesVar Details - Proc Details

M56D heavy machine gun

Vars

autofire_slow_multA multiplier for how slow this gun should fire in automatic as opposed to burst. 1 is normal, 1.2 is 20% slower, 0.8 is 20% faster, etc.
burst_amountHow many rounds are fired per burst
burst_fire_delayHow much time should pass in between burst fire shots
burst_firingIf the gun is currently burst firing
display_ammoIf the gun should display its ammo count
fire_delayHow much time should pass in between full auto shots, slightly higher than burst due to click delay and similar things that slow firing down
gun_firemodeWhat firemode the gun is currently in
gun_firemodesWhat firemodes this gun has
semiauto_cooldown_timeHow long between semi-auto shots this should wait, to reduce possible spam
semiauto_fire_cooldownSemi auto cooldown
shoot_degreeHow many degrees in each direction the gun should be able to fire
shots_firedHow many rounds have been fired in the current burst/auto

Procs

change_targetUpdate the target if you draged your mouse
clean_targetSet the target to its turf, so we keep shooting even when it was qdeled
display_ammoPrint how much ammo is left to chat
do_toggle_firemodeToggles the gun's firemode one down the list
get_burst_firingGetter for burst_firing
get_fire_delaygetter for fire_delay
reset_fireClean up the target, shots fired, and other things related to when you stop firing
set_burst_amountsetter for burst_amount
set_burst_fire_delaySetter for burst_delay
set_burst_firingSetter for burst_firing
set_fire_delaysetter for fire_delay
set_targetSet the target and take care of hard delete
start_fireCheck if the gun can fire and add it to bucket auto_fire system if needed, or just fire the gun if not

Var Details

autofire_slow_mult

A multiplier for how slow this gun should fire in automatic as opposed to burst. 1 is normal, 1.2 is 20% slower, 0.8 is 20% faster, etc.

burst_amount

How many rounds are fired per burst

burst_fire_delay

How much time should pass in between burst fire shots

burst_firing

If the gun is currently burst firing

display_ammo

If the gun should display its ammo count

fire_delay

How much time should pass in between full auto shots, slightly higher than burst due to click delay and similar things that slow firing down

gun_firemode

What firemode the gun is currently in

gun_firemodes

What firemodes this gun has

semiauto_cooldown_time

How long between semi-auto shots this should wait, to reduce possible spam

semiauto_fire_cooldown

Semi auto cooldown

shoot_degree

How many degrees in each direction the gun should be able to fire

shots_fired

How many rounds have been fired in the current burst/auto

Proc Details

change_target

Update the target if you draged your mouse

clean_target

Set the target to its turf, so we keep shooting even when it was qdeled

display_ammo

Print how much ammo is left to chat

do_toggle_firemode

Toggles the gun's firemode one down the list

get_burst_firing

Getter for burst_firing

get_fire_delay

getter for fire_delay

reset_fire

Clean up the target, shots fired, and other things related to when you stop firing

set_burst_amount

setter for burst_amount

set_burst_fire_delay

Setter for burst_delay

set_burst_firing

Setter for burst_firing

set_fire_delay

setter for fire_delay

set_target

Set the target and take care of hard delete

start_fire

Check if the gun can fire and add it to bucket auto_fire system if needed, or just fire the gun if not