byond - Modules - TypesVar Details - Proc Details

mounted

Vars

has_anchored_spriteIf the gun has different sprites for being anchored.
user_old_move_resistStores user old move resist and apply on unset interaction
user_old_xStore user old pixel x
user_old_yStore user old pixel y

Procs

can_fireChecks if you can fire
change_targetHappens when you drag the mouse.
check_eyemakes sure you can see and or use the gun
hud_set_gun_ammoMakes mounted guns ammo visible
interactThis is called when a user tries to operate the gun
on_set_interactionSets the user as manning the internal gun
on_unset_interactionUnsets the user from manning the internal gun
reloadReloads the internal_item
start_fireBegins the Firing Process, does custom checks before calling the guns start_fire()
update_icon_stategenerates the icon based on how much ammo it has.
update_pixelsUpdates the pixel offset of user so it looks like their manning the gun from behind

Var Details

has_anchored_sprite

If the gun has different sprites for being anchored.

user_old_move_resist

Stores user old move resist and apply on unset interaction

user_old_x

Store user old pixel x

user_old_y

Store user old pixel y

Proc Details

can_fire

Checks if you can fire

change_target

Happens when you drag the mouse.

check_eye

makes sure you can see and or use the gun

hud_set_gun_ammo

Makes mounted guns ammo visible

interact

This is called when a user tries to operate the gun

on_set_interaction

Sets the user as manning the internal gun

on_unset_interaction

Unsets the user from manning the internal gun

reload

Reloads the internal_item

start_fire

Begins the Firing Process, does custom checks before calling the guns start_fire()

update_icon_state

generates the icon based on how much ammo it has.

update_pixels

Updates the pixel offset of user so it looks like their manning the gun from behind