Goonstation 13 - Modules - TypesProc Details

gun

Procs

canshootCheck if the gun can shoot or not. user will be null if the gun is shot by a non-mob (gun component)
check_lockCHECK_LOCK Call to run a weaponlock check vs the users implant Return 0 for fail
check_valid_shotCHECK_VALID_SHOT Call to check and make sure the shot is ok Not called much atm might remove, is now inside shoot
set_current_projectilesetter for current_projectile so we can have a signal attached. do not set current_projectile on guns without this proc

Proc Details

canshoot

Check if the gun can shoot or not. user will be null if the gun is shot by a non-mob (gun component)

check_lock

CHECK_LOCK Call to run a weaponlock check vs the users implant Return 0 for fail

check_valid_shot

CHECK_VALID_SHOT Call to check and make sure the shot is ok Not called much atm might remove, is now inside shoot

set_current_projectile

setter for current_projectile so we can have a signal attached. do not set current_projectile on guns without this proc