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

firealarm

Vars

buildstageBuildstate for contruction steps
my_areaOur home area, set in Init. Due to loading step order, this seems to be null very early in the server setup process, which is why some procs use my_area? for var or list checks.
soundlooplooping sound datum for our fire alarm siren.

Procs

alarmSounds the fire alarm and closes all firelocks in the area. Also tells the area to color the lights red.
check_security_levelSignal handler for checking if we should update fire alarm appearance accordingly to a newly set security level
resetResets all firelocks in the area. Also tells the area to disable alarm lighting, if it was enabled.
set_statusSets the sound state, and then calls update_icon()

Var Details

buildstage

Buildstate for contruction steps

my_area

Our home area, set in Init. Due to loading step order, this seems to be null very early in the server setup process, which is why some procs use my_area? for var or list checks.

soundloop

looping sound datum for our fire alarm siren.

Proc Details

alarm

Sounds the fire alarm and closes all firelocks in the area. Also tells the area to color the lights red.

Arguments:

check_security_level

Signal handler for checking if we should update fire alarm appearance accordingly to a newly set security level

Arguments:

reset

Resets all firelocks in the area. Also tells the area to disable alarm lighting, if it was enabled.

Arguments:

set_status

Sets the sound state, and then calls update_icon()

This proc exists to be called by areas and firelocks so that it may update its icon and start or stop playing the alarm sound based on the state of an area variable.