Gives the SM an audio alert

The SM will now have an audio alert when it begins the countdown.
This commit is contained in:
yacabo
2019-10-25 18:47:05 -04:00
parent a3ff4bbbf0
commit 22b9bfcc15
4 changed files with 7 additions and 1 deletions

View File

@@ -252,7 +252,13 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
else if(i > 50)
speaking = "[DisplayTimeText(i, TRUE)] remain before causality stabilization."
log_game("The supermatter crystal: [DisplayTimeText(i, TRUE)] remain before causality stabilization.") // yogs start - Logs SM chatter
investigate_log("The supermatter crystal: [DisplayTimeText(i, TRUE)] remain before causality stabilization.", INVESTIGATE_SUPERMATTER) // yogs end
investigate_log("The supermatter crystal: [DisplayTimeText(i, TRUE)] remain before causality stabilization.", INVESTIGATE_SUPERMATTER)
if(i == 300) //Yogs- also adds audio when SM hits countdown
playsound(src, 'yogstation/sound/voice/sm/fcitadel_30sectosingularity.ogg', 100)
if(i == 150)
playsound(src, 'yogstation/sound/voice/sm/fcitadel_15sectosingularity.ogg', 100)
if(i == 100)
playsound(src, 'yogstation/sound/voice/sm/fcitadel_10sectosingularity.ogg', 100) // yogs end
else
speaking = "[i*0.1]..."
log_game("The supermatter crystal: [i*0.1]...") // yogs start - Logs SM chatter