From 0505efb4c4ac5f3f377db102205bc7ec484a3660 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sun, 6 May 2012 21:09:08 +0100 Subject: [PATCH] TG: - Additional admin verbs and links will now display an ingame message to admins when used: - rudimentary transformations from the player panel - give spell - make sound - kill air - make alien - make metroid - grant full access - assume direct control - select equipment - spawn xeno - gib will now log even when gibbing yourself - gibself - change view range - call shuttle - cancel shuttle - Also removed the 'stabilize atmos' verb. I noticed it had all of it's code commented out, so it literlaly did not do anything. Revision: r3535 Author: baloh.matevz --- code/modules/admin/admin_verbs.dm | 10 ++++++++-- code/modules/admin/verbs/debug.dm | 8 ++++++-- code/modules/admin/verbs/randomverbs.dm | 20 +++++++++++++++++--- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index e8f711d2ff4..7d032cc4f72 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -370,7 +370,7 @@ verbs -= /client/proc/cmd_admin_rejuvenate verbs -= /client/proc/cmd_admin_delete verbs -= /client/proc/toggleadminhelpsound - verbs -= /client/proc/cmd_admin_remove_plasma + //verbs -= /client/proc/cmd_admin_remove_plasma --This proc is outdated, does not do anything verbs -= /client/proc/admin_call_shuttle verbs -= /client/proc/admin_cancel_shuttle verbs -= /client/proc/cmd_admin_dress @@ -676,6 +676,8 @@ if(!S) return T.spell_list += new S // feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] gave [key_name(T)] the spell [S].") + message_admins("\blue [key_name_admin(usr)] gave [key_name(T)] the spell [S].", 1) /client/proc/make_sound(var/obj/O in world) // -- TLE set category = "Special Verbs" @@ -687,7 +689,9 @@ return for (var/mob/V in hearers(O)) V.show_message(message, 2) -// feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound") + message_admins("\blue [key_name_admin(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound", 1) +// feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/togglebuildmodeself() @@ -730,6 +734,8 @@ kill_air = 1 usr << "Disabled air processing." // feedback_add_details("admin_verb","KA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] used 'kill air'.") + message_admins("\blue [key_name_admin(usr)] used 'kill air'.", 1) /client/proc/show_verbs() set name = "Toggle admin verb visibility" diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 2350b07f84d..a3448267046 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -339,6 +339,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that log_admin("[key_name(src)] has alienized [M.key].") spawn(10) M:Alienize() + //feedback_add_details("admin_verb","MKAL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] made [key_name(M)] into an alien.") + message_admins("\blue [key_name_admin(usr)] made [key_name(M)] into an alien.", 1) else alert("Invalid mob") @@ -353,6 +356,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that log_admin("[key_name(src)] has metroidized [M.key].") spawn(10) M:Metroidize() + //feedback_add_details("admin_verb","MKMET") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] made [key_name(M)] into a metroid.") + message_admins("\blue [key_name_admin(usr)] made [key_name(M)] into a metroid.", 1) else alert("Invalid mob") @@ -490,12 +496,10 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that if(istype(H.wear_id, /obj/item/device/pda)) var/obj/item/device/pda/pda = H.wear_id id = pda.id - log_admin("[key_name(src)] has granted [M.key] full access.") id.icon_state = "gold" id:access = get_all_accesses()+get_all_centcom_access()+get_all_syndicate_access() else var/obj/item/weapon/card/id/id = new/obj/item/weapon/card/id(M); - log_admin("[key_name(src)] has granted [M.key] full access.") id.icon_state = "gold" id:access = get_all_accesses()+get_all_centcom_access()+get_all_syndicate_access() id.registered_name = H.real_name diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 1a3a8199b88..774c8dece0e 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -160,6 +160,8 @@ create_xeno() //feedback_add_details("admin_verb","X") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] spawned a xeno.") + message_admins("\blue [key_name_admin(usr)] spawned a xeno.", 1) return //I use this proc for respawn character too. /N @@ -606,9 +608,8 @@ Traitors and the like can also be revived with the previous role mostly intact. //Due to the delay here its easy for something to have happened to the mob if(!M) return - if(usr.key != M.key && M.client) - log_admin("[key_name(usr)] has gibbed [key_name(M)]") - message_admins("[key_name_admin(usr)] has gibbed [key_name_admin(M)]", 1) + log_admin("[key_name(usr)] has gibbed [key_name(M)]") + message_admins("[key_name_admin(usr)] has gibbed [key_name_admin(M)]", 1) if(istype(M, /mob/dead/observer)) gibs(M.loc, M.viruses) @@ -624,6 +625,9 @@ Traitors and the like can also be revived with the previous role mostly intact. return else mob.gib() + + log_admin("[key_name(usr)] used gibself.") + message_admins("\blue [key_name_admin(usr)] used gibself.", 1) //feedback_add_details("admin_verb","GIBS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /* /client/proc/cmd_manual_ban() @@ -698,6 +702,7 @@ Traitors and the like can also be revived with the previous role mostly intact. usr << "[t]" //feedback_add_details("admin_verb","CC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! +/* This proc is DEFERRED. Does not do anything. /client/proc/cmd_admin_remove_plasma(area/A as area) set category = "Debug" set name = "Stabilize Atmos." @@ -717,6 +722,7 @@ Traitors and the like can also be revived with the previous role mostly intact. // make things update properly T.assume_air(new /datum/gas_mixture()) +*/ /client/proc/toggle_view_range() set category = "Special Verbs" @@ -727,6 +733,10 @@ Traitors and the like can also be revived with the previous role mostly intact. view = input("Select view range:", "FUCK YE", 7) in list(1,2,3,4,5,6,7,8,9,10,11,12,13,14,128) else view = world.view + + log_admin("[key_name(usr)] changed their view range to [view].") + //message_admins("\blue [key_name_admin(usr)] changed their view range to [view].", 1) //why? removed by order of XSI + //feedback_add_details("admin_verb","CVRA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/admin_call_shuttle() @@ -755,6 +765,8 @@ Traitors and the like can also be revived with the previous role mostly intact. captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.") world << sound('shuttlecalled.ogg') //feedback_add_details("admin_verb","CSHUT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] admin-called the emergency shuttle.") + message_admins("\blue [key_name_admin(usr)] admin-called the emergency shuttle.", 1) return /client/proc/admin_cancel_shuttle() @@ -774,6 +786,8 @@ Traitors and the like can also be revived with the previous role mostly intact. emergency_shuttle.recall() //feedback_add_details("admin_verb","CCSHUT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] admin-recalled the emergency shuttle.") + message_admins("\blue [key_name_admin(usr)] admin-recalled the emergency shuttle.", 1) return