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

door

Vars

can_open_with_handsWhether or not the door can crush mobs.

Procs

InitializeWhether or not the door can be opened by hand (used for blast doors and shutters)
check_security_levelSignal handler for checking if we notify our surrounding that access requirements are lifted accordingly to a newly set security level
on_magic_unlockSignal proc for COMSIG_ATOM_MAGICALLY_UNLOCKED. Open up when someone casts knock.
try_remove_sealCalled when attempting to remove the seal from an airlock
try_to_crowbar_secondaryCalled when the user right-clicks on the door with a crowbar.
try_to_weld_secondaryCalled when the user right-clicks on the door with a welding tool.

Var Details

can_open_with_hands

Whether or not the door can crush mobs.

Proc Details

Initialize

Whether or not the door can be opened by hand (used for blast doors and shutters)

check_security_level

Signal handler for checking if we notify our surrounding that access requirements are lifted accordingly to a newly set security level

Arguments:

on_magic_unlock

Signal proc for COMSIG_ATOM_MAGICALLY_UNLOCKED. Open up when someone casts knock.

try_remove_seal

Called when attempting to remove the seal from an airlock

Here because we need to call it and return if there was a seal so we don't try to open the door or try its safety lock while it's sealed Arguments:

try_to_crowbar_secondary

Called when the user right-clicks on the door with a crowbar.

try_to_weld_secondary

Called when the user right-clicks on the door with a welding tool.