Merge pull request #13936 from Shadowlight213/AdminAIToggle2

Makes Admin AI interaction a logged toggle. Take 2
This commit is contained in:
tkdrg
2015-12-27 22:01:01 -03:00
5 changed files with 15 additions and 4 deletions
+11 -1
View File
@@ -60,7 +60,8 @@ var/list/admin_verbs_admin = list(
/client/proc/cmd_admin_world_narrate, /*sends text to all players with no padding*/
/client/proc/cmd_admin_local_narrate, /*sends text to all mobs within view of atom*/
/client/proc/cmd_admin_create_centcom_report,
/client/proc/toggle_antag_hud /*toggle display of the admin antag hud*/
/client/proc/toggle_antag_hud, /*toggle display of the admin antag hud*/
/client/proc/toggle_AI_interact /*toggle admin ability to interact with machines as an AI*/
)
var/list/admin_verbs_ban = list(
/client/proc/unban_panel,
@@ -638,3 +639,12 @@ var/list/admin_verbs_hideable = list(
testing("Spawned test mob with name \"[mob.name]\" at [tile.x],[tile.y],[tile.z]")
while (!area && --j > 0)
/client/proc/toggle_AI_interact()
set name = "Toggle Admin AI Interact"
set category = "Admin"
set desc = "Allows you to interact with most machines as an AI would as a ghost"
AI_Interact = !AI_Interact
log_admin("[key_name(usr)] has [AI_Interact ? "activated" : "deactivated"] Admin AI Interact")
message_admins("[key_name_admin(usr)] has [AI_Interact ? "activated" : "deactivated"] their AI interaction")