From de35030dd64febf6732665040eae307c734fbc72 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Mon, 17 Sep 2012 03:25:37 +0000 Subject: [PATCH] Added an invisimin verb. It toggles your mob's invisibility between ghost-like invis and it's initial state. It is bound to the F8 key. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4710 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/admin_verbs.dm | 12 ++++++++++++ html/changelog.html | 2 +- interface/interface.dm | 2 +- interface/skin.dmf | 8 ++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index c3f38918ae6..35f514f3269 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -169,6 +169,7 @@ deadchat = 1 seeprayers = 1 + verbs += /client/proc/invisimin verbs += /obj/admins/proc/view_txt_log verbs += /obj/admins/proc/view_atk_log verbs += /obj/admins/proc/toggleaban //abandon mob @@ -427,6 +428,7 @@ verbs -= /client/proc/cmd_debug_mob_lists verbs -= /obj/admins/proc/access_news_network verbs -= /client/proc/one_click_antag + verbs -= /client/proc/invisimin return /client/proc/admin_ghost() @@ -459,6 +461,16 @@ src << "[C.key] is undefined - [C.holder.state]" feedback_add_details("admin_verb","GAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! +/client/proc/invisimin() + set name = "Invisimin" + set category = "Admin" + set desc = "Toggles ghost-like invisibility (Don't abuse this)" + if(holder && mob) + if(mob.invisibility == INVISIBILITY_OBSERVER) + mob.invisibility = initial(mob.invisibility) + else + mob.invisibility = INVISIBILITY_OBSERVER + /client/proc/player_panel() set name = "Player Panel" diff --git a/html/changelog.html b/html/changelog.html index d15dbe79caa..1944d5c317b 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -52,7 +52,7 @@ should be listed in the changelog upon commit tho. Thanks. -->

17 September 2012

Carn updated: