SM Delam station wide siren (#15758)

* SM Delam station wide siren

Adds some fluff to the SM when it hits 0 integrity. Sounds a global siren signifying a "meltdown" or delam is imminent.

🆑
add: adds a global siren shortly before delam.
/🆑

* Adding zlevel check for alarm

Thank you hal9000 and kyet for helping :)

Co-authored-by: Kyep <16434066+Kyep@users.noreply.github.com>

Co-authored-by: Kyep <16434066+Kyep@users.noreply.github.com>
This commit is contained in:
Vallidian
2021-04-05 12:49:27 -04:00
committed by GitHub
parent 2d99aeb72e
commit 82194574f5
@@ -280,6 +280,10 @@
add_overlay(causality_field, TRUE)
var/speaking = "[emergency_alert] The supermatter has reached critical integrity failure. Emergency causality destabilization field has been activated."
for(var/mob/M in GLOB.player_list) // for all players
var/turf/T = get_turf(M)
if(istype(T) && atoms_share_level(T, src)) // if the player is on the same zlevel as the SM shared
SEND_SOUND(M, sound('sound/machines/engine_alert2.ogg')) // then send them the sound file
radio.autosay(speaking, name, null, list(z))
for(var/i in SUPERMATTER_COUNTDOWN_TIME to 0 step -10)
if(damage < explosion_point) // Cutting it a bit close there engineers