TG: An attempt to make the master controller more robust. This shouldn't cause

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
This commit is contained in:
Ren Erthilo
2012-05-02 21:39:41 +01:00
parent e7d546b6f1
commit 59762d4207
5 changed files with 143 additions and 27 deletions
+2 -1
View File
@@ -227,7 +227,7 @@
//verbs += /proc/togglebuildmode --Merged with view variables
//verbs += /client/proc/cmd_modify_object_variables --Merged with view variables
verbs += /client/proc/togglebuildmodeself
verbs += /client/proc/debug_master_controller
else return
//Game Admin
@@ -445,6 +445,7 @@
//verbs -= /client/proc/cmd_switch_radio --removed because tcommsat is staying
verbs -= /client/proc/togglebuildmodeself
verbs -= /client/proc/kill_airgroup
verbs -= /client/proc/debug_master_controller
verbs -= /client/proc/admin_deny_shuttle
verbs -= /client/proc/cmd_admin_christmas
verbs -= /client/proc/editappear
+12
View File
@@ -7,4 +7,16 @@
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