Integrates NTTC + Other Stuff

This commit is contained in:
AffectedArc07
2020-05-15 19:48:53 +01:00
parent 64dc83846e
commit d97a20aa3c
40 changed files with 776 additions and 11869 deletions

View File

@@ -14,20 +14,10 @@
if(prob(30)) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts.
GLOB.event_announcement.Announce(alert)
#warn AA, make ion anomalies disable the hubs only
/*
/datum/event/communications_blackout/start()
for(var/obj/machinery/tcomms/T in GLOB.telecomms_list)
T.emp_act(1)
/proc/communications_blackout(var/silent = 1)
if(!silent)
GLOB.event_announcement.Announce("Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT", new_sound = 'sound/misc/interference.ogg')
else // AIs will always know if there's a comm blackout, rogue AIs could then lie about comm blackouts in the future while they shutdown comms
for(var/mob/living/silicon/ai/A in GLOB.player_list)
to_chat(A, "<br>")
to_chat(A, "<span class='warning'><b>Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT<b></span>")
to_chat(A, "<br>")
for(var/obj/machinery/telecomms/T in GLOB.telecomms_list)
T.emp_act(1)
*/
// This only affects the cores, relays should be unaffected imo
for(var/obj/machinery/tcomms/core/T in GLOB.tcomms_machines)
T.disable_machine()
// Bring it back sometime between 3-5 minutes. This uses deciseconds, so 1800 and 3000 respecticely.
// Note that because this is a strict enable not a toggle, the crew or AI can re-enable the machine themselves
addtimer(CALLBACK(T, /obj/machinery/tcomms.proc/enable_machine), rand(1800, 3000))