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

firealarm

Vars

buildstageBuildstate for contruction steps
can_resetIf FALSE, the fire alarm can never be reset().
can_toggle_detectionIf FALSE, a multitool or borg can't disable the sensor.
can_triggerIf FALSE, the fire alarm can never be alarm()ed.
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
disable_fire_detectStops the area from automatically activating firelocks
enable_fire_detectEnables the area to automatically activate firelocks
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()
toggle_fire_detectToggles automatic fire detection on or off

Var Details

buildstage

Buildstate for contruction steps

can_reset

If FALSE, the fire alarm can never be reset().

can_toggle_detection

If FALSE, a multitool or borg can't disable the sensor.

can_trigger

If FALSE, the fire alarm can never be alarm()ed.

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:

disable_fire_detect

Stops the area from automatically activating firelocks

enable_fire_detect

Enables the area to automatically activate firelocks

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.

toggle_fire_detect

Toggles automatic fire detection on or off