mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 23:21:20 +00:00
terrible additional lag, given that the master controller doesn't actually fire that often, and can also give us a clue as to what part of the controller has died in case of failure 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. Revision: r3421 Author: VivianFoxfoot
22 lines
878 B
Plaintext
22 lines
878 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
|
|
//feedback_add_details("admin_verb","RMC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
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)
|
|
//feedback_add_details("admin_verb","DMC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return |