From b39a052a7ab2a717c7231bf38f54981b7626cf7a Mon Sep 17 00:00:00 2001 From: DZD Date: Thu, 22 Jan 2015 19:25:57 -0500 Subject: [PATCH] More Adminlogs - Adds use_log list logging to AI/borg alt + click door shocking. - Adds use_log list logging to PA control computer (Turning on, increasing power, decreasing power). - Adds use_log list logging to robotics control computer (borg full destruct and single borg destruct). --- code/_onclick/ai.dm | 20 ++++++++++--------- code/game/machinery/computer/robot.dm | 2 ++ .../particle_accelerator/particle_control.dm | 3 +++ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/code/_onclick/ai.dm b/code/_onclick/ai.dm index 43d19a66a36..5e65bc57536 100644 --- a/code/_onclick/ai.dm +++ b/code/_onclick/ai.dm @@ -31,11 +31,11 @@ if(client.buildmode) // comes after object.Click to allow buildmode gui objects to be clicked build_click(src, client.buildmode, params, A) return - + if(control_disabled || stat) return - if(alienAI) + if(alienAI) return var/list/modifiers = params2list(params) @@ -58,7 +58,7 @@ CtrlClickOn(A) return - if(world.time <= next_move) + if(world.time <= next_move) return next_move = world.time + 9 @@ -70,7 +70,7 @@ if(waypoint_mode) set_waypoint(A) waypoint_mode = 0 - return + return /* AI restrained() currently does nothing if(restrained()) @@ -122,10 +122,10 @@ if(user.client) examine() return - -/atom/proc/AIAltShiftClick() + +/atom/proc/AIAltShiftClick() return - + /obj/machinery/door/airlock/AIAltShiftClick() // Sets/Unsets Emergency Access Override if(emagged) return @@ -134,7 +134,7 @@ else Topic("aiDisable=11", list("aiDisable"="11"), 1) return - + /atom/proc/AIShiftClick() return @@ -148,7 +148,7 @@ /atom/proc/AICtrlClick(var/mob/living/silicon/ai/user) if(user.holo) var/obj/machinery/hologram/holopad/H = user.holo - H.face_atom(src) + H.face_atom(src) return /obj/machinery/door/airlock/AICtrlClick() // Bolts doors @@ -173,9 +173,11 @@ if(!secondsElectrified) // permanent shock Topic("aiEnable=6", list("aiEnable"="6"), 1) // 1 meaning no window (consistency!) + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) electrified [src].") else // disable/6 is not in Topic; disable/5 disables both temporary and permanent shock Topic("aiDisable=5", list("aiDisable"="5"), 1) + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) toggled turned off the [src]'s electrification.") return /obj/machinery/turretid/AIAltClick() //toggles lethal on turrets diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index c9893075662..35552231640 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -125,6 +125,7 @@ if (!status) message_admins("\blue [key_name_admin(usr)] has initiated the global cyborg killswitch!") log_game("\blue [key_name(usr)] has initiated the global cyborg killswitch!") + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) has initiated the global cyborg killswitch!") src.status = 1 src.start_sequence() src.temp = null @@ -170,6 +171,7 @@ else message_admins("\blue [key_name_admin(usr)] detonated [R.name]!") log_game("\blue [key_name_admin(usr)] detonated [R.name]!") + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) detonated [R.name] ([R.ckey])!") R.self_destruct() else usr << "\red Access Denied." diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm index abfcfdca125..cdec3d19477 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_control.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm @@ -115,6 +115,7 @@ else msg_admin_attack("PA Control Computer increased to [strength] by [key_name(usr, usr.client)](?) in ([x],[y],[z] - JMP)",0,1) log_game("PA Control Computer increased to [strength] by [usr.ckey]([usr]) in ([x],[y],[z])") + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) has increased the PA Control Computer to [strength].") investigate_log("increased to [strength] by [usr.key]","singulo") strength_change() @@ -125,6 +126,7 @@ strength = 0 else investigate_log("decreased to [strength] by [usr.key]","singulo") + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) has decreased the PA Control Computer to [strength].") strength_change() /obj/machinery/particle_accelerator/control_box/power_change() @@ -206,6 +208,7 @@ if (active) msg_admin_attack("PA Control Computer turned ON by [key_name(usr, usr.client)](?) in ([x],[y],[z] - JMP)",0,1) log_game("PA Control Computer turned ON by [usr.ckey]([usr]) in ([x],[y],[z])") + use_log += text("\[[time_stamp()]\] [usr.name] ([usr.ckey]) has turned on the PA Control Computer.") if(src.active) src.use_power = 2 for(var/obj/structure/particle_accelerator/part in connected_parts)