mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Disable CTF emitters until CTF occurs
This commit is contained in:
@@ -125,8 +125,12 @@
|
||||
|
||||
/proc/toggle_all_ctf(mob/user)
|
||||
var/ctf_enabled = FALSE
|
||||
var/area/A
|
||||
for(var/obj/machinery/capture_the_flag/CTF in GLOB.machines)
|
||||
ctf_enabled = CTF.toggle_ctf()
|
||||
A = get_area(CTF)
|
||||
for(var/obj/machinery/power/emitter/E in A)
|
||||
E.active = ctf_enabled
|
||||
message_admins("[key_name_admin(user)] has [ctf_enabled? "enabled" : "disabled"] CTF!")
|
||||
notify_ghosts("CTF has been [ctf_enabled? "enabled" : "disabled"]!",'sound/effects/ghost2.ogg')
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
idle_power_usage = 0
|
||||
active_power_usage = 0
|
||||
|
||||
active = 1
|
||||
active = TRUE
|
||||
locked = TRUE
|
||||
state = 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user