mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 20:52:41 +00:00
Modifies do_after to something that fires a lot less, and is hopefully more robust against infinite loops. It is now theoretically possible to run around and then come back to the same place and have it complete, but that's only really valid for extremely long times (like handcuff removal) and if you get lucky and dodge one of the timed checks. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3421 316c924e-a436-60f5-8080-3fe189b3f50e
20 lines
620 B
Plaintext
20 lines
620 B
Plaintext
/client/proc/restartcontroller()
|
|
set category = "Debug"
|
|
set name = "Restart Master Controller"
|
|
switch(alert("Are you sure? If the control is still running it will now be running twice.",,"Yes","No"))
|
|
if("Yes")
|
|
spawn(0)
|
|
master_controller.process()
|
|
if("No")
|
|
return 0
|
|
return
|
|
|
|
/client/proc/debug_master_controller()
|
|
set category = "Debug"
|
|
set name = "Debug Master Controller"
|
|
switch(alert("Debug Master Controller or Failsafe?" ,, "Master Controller" , "Failsafe"))
|
|
if("Master Controller")
|
|
debug_variables(master_controller)
|
|
if("Failsafe")
|
|
debug_variables(Failsafe)
|
|
return |