From aa65f68d2be660fcc406a8a6a70f68007b4d30ee Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Tue, 1 May 2012 02:30:52 +0000 Subject: [PATCH] - 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. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3535 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/admin.dm | 3 +++ code/modules/admin/admin_verbs.dm | 12 +++++++++--- code/modules/admin/verbs/debug.dm | 13 +++++++++++-- code/modules/admin/verbs/randomverbs.dm | 20 ++++++++++++++++---- 4 files changed, 39 insertions(+), 9 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index e31e6897500..c871d201422 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -85,6 +85,9 @@ var/global/BSACooldown = 0 if(option == "Yes") delmob = 1 + log_admin("[key_name(usr)] has used rudimentary transformation on [key_name(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]") + message_admins("\blue [key_name_admin(usr)] has used rudimentary transformation on [key_name_admin(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]", 1) + switch(href_list["simplemake"]) if("observer") M.change_mob_type( /mob/dead/observer , null, null, delmob) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 1dfb3d2dad9..405e6f0351b 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -177,7 +177,7 @@ verbs += /obj/admins/proc/toggleaban //abandon mob verbs += /obj/admins/proc/show_traitor_panel verbs += /client/proc/getserverlog //fetch an old serverlog to look at - 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 @@ -345,7 +345,7 @@ //verbs -= /client/proc/cmd_admin_rejuvenate --merged with player panel 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 @@ -625,6 +625,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" @@ -636,7 +638,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() @@ -679,6 +683,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 961c89f09b7..7e7e3c8fbc5 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -194,6 +194,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that 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") @@ -209,6 +211,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that 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") @@ -349,12 +353,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 = H.real_name @@ -365,6 +367,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that else alert("Invalid mob") feedback_add_details("admin_verb","GFA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(src)] has granted [M.key] full access.") + message_admins("\blue [key_name_admin(usr)] has granted [M.key] full access.", 1) /client/proc/cmd_assume_direct_control(var/mob/M in world) set category = "Admin" @@ -382,6 +386,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that if( isobserver(adminmob) ) del(adminmob) feedback_add_details("admin_verb","ADC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + log_admin("[key_name(usr)] assumed direct control of [M].") + message_admins("\blue [key_name_admin(usr)] assumed direct control of [M].", 1) @@ -743,6 +749,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that M.equip_if_possible(W, M.slot_wear_id) M.update_clothing() + + log_admin("[key_name(usr)] changed the equipment of [key_name(M)] to [dresscode].") + message_admins("\blue [key_name_admin(usr)] changed the equipment of [key_name_admin(M)] to [dresscode]..", 1) return /client/proc/startSinglo() diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 2c9c5ece568..5335d428d7b 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -177,6 +177,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 @@ -614,9 +616,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) @@ -632,6 +633,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() @@ -704,6 +708,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() set category = "Debug" set name = "Stabilize Atmos." @@ -712,7 +717,6 @@ Traitors and the like can also be revived with the previous role mostly intact. return feedback_add_details("admin_verb","STATM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! // DEFERRED -/* spawn(0) for(var/turf/T in view()) T.poison = 0 @@ -744,6 +748,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) + 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() @@ -772,6 +780,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() @@ -791,6 +801,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