mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
17 lines
793 B
Plaintext
17 lines
793 B
Plaintext
/datum/event/door_runtime
|
|
|
|
/datum/event/door_runtime/announce()
|
|
GLOB.minor_announcement.Announce("Hostile runtime detected in door controllers. Isolation lockdown protocols are now in effect. Please remain calm.", "Network Alert", 'sound/AI/door_runtimes.ogg')
|
|
|
|
/datum/event/door_runtime/start()
|
|
for(var/obj/machinery/door/D in GLOB.airlocks)
|
|
if(!is_station_level(D.z))
|
|
continue
|
|
INVOKE_ASYNC(D, /obj/machinery/door.proc/hostile_lockdown)
|
|
addtimer(CALLBACK(D, /obj/machinery/door.proc/disable_lockdown), 90 SECONDS)
|
|
addtimer(CALLBACK(src, .proc/reboot), 90 SECONDS)
|
|
post_status("alert", "lockdown")
|
|
|
|
/datum/event/door_runtime/proc/reboot()
|
|
GLOB.minor_announcement.Announce("Automatic system reboot complete. Have a secure day.","Network reset:", 'sound/AI/door_runtimes_fix.ogg')
|