From 2a08622b7ef01a6ac329dbf9f9f7f3d5c8ac86c6 Mon Sep 17 00:00:00 2001 From: Tkdrg Date: Tue, 29 Dec 2015 14:40:19 -0300 Subject: [PATCH] Stealthmin Improvements Removes stealthmins from the orbit list and makes them invisible. Remember to always use dsay instead of say to avoid the (F) links! --- code/__HELPERS/unsorted.dm | 2 ++ code/modules/admin/admin_verbs.dm | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index fb9d238acee..76623d41e30 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -379,6 +379,8 @@ Turf and target are seperate in case you want to teleport some distance from a t if(skip_mindless && (!M.mind && !M.ckey)) if(!isbot(M) && !istype(M, /mob/camera/)) continue + if(M.client && M.client.holder && M.client.holder.fakekey) //stealthmins + continue var/name = M.name if (name in names) namecounts[name]++ diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index a58b37e0014..7fe444eeb23 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -423,6 +423,9 @@ var/list/admin_verbs_hideable = list( if(holder) if(holder.fakekey) holder.fakekey = null + mob.invisibility = initial(mob.invisibility) + mob.alpha = initial(mob.alpha) + mob.name = initial(mob.name) else var/new_key = ckeyEx(input("Enter your desired display name.", "Fake Key", key) as text|null) if(!new_key) return @@ -430,6 +433,9 @@ var/list/admin_verbs_hideable = list( new_key = copytext(new_key, 1, 26) holder.fakekey = new_key createStealthKey() + mob.invisibility = INVISIBILITY_MAXIMUM + 1 //JUST IN CASE + mob.alpha = 0 //JUUUUST IN CASE + mob.name = " " log_admin("[key_name(usr)] has turned stealth mode [holder.fakekey ? "ON" : "OFF"]") message_admins("[key_name_admin(usr)] has turned stealth mode [holder.fakekey ? "ON" : "OFF"]") feedback_add_details("admin_verb","SM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -647,4 +653,4 @@ var/list/admin_verbs_hideable = list( 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") \ No newline at end of file + message_admins("[key_name_admin(usr)] has [AI_Interact ? "activated" : "deactivated"] their AI interaction")