From 2898b6813b43d25e70ff939b71bffc481c539e09 Mon Sep 17 00:00:00 2001 From: Miniature Date: Sat, 16 Jun 2012 22:28:47 +0930 Subject: [PATCH] Added a thing to give a message to admins when a tile is stepped on, requested by Hawk. To use, spawn a /obj/effect/admin_log_trap on whatever tile you want to have a message, then whenever anyone steps on that tile a message will sent to all admins, like explosions. Feel free to move it out of my WIP folder if you want. --- baystation12.dme | 1 + code/WorkInProgress/Mini/asay_trap.dm | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 code/WorkInProgress/Mini/asay_trap.dm diff --git a/baystation12.dme b/baystation12.dme index 4a5685547d2..70db25664b5 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -1187,6 +1187,7 @@ #include "code\WorkInProgress\Cael_Aislinn\Tajara\tajaran.dm" #include "code\WorkInProgress\Cael_Aislinn\Tajara\whisper.dm" #include "code\WorkInProgress\Chinsky\ashtray.dm" +#include "code\WorkInProgress\Mini\asay_trap.dm" #include "code\WorkInProgress\Mini\atmos_control.dm" #include "code\WorkInProgress\Mini\pipe_heater.dm" #include "code\WorkInProgress\Mloc\Shortcuts.dm" diff --git a/code/WorkInProgress/Mini/asay_trap.dm b/code/WorkInProgress/Mini/asay_trap.dm new file mode 100644 index 00000000000..f12b1d78a4c --- /dev/null +++ b/code/WorkInProgress/Mini/asay_trap.dm @@ -0,0 +1,12 @@ +/obj/effect/admin_log_trap + name = "Herprpr" + desc = "Stepping on this is good." + icon = 'screen1.dmi' + icon_state = "x2" + anchored = 1.0 + unacidable = 1 + invisibility = 101 + +/obj/effect/admin_log_trap/HasEntered(AM as mob|obj) + if(istype(AM,/mob)) + message_admins("[AM] ([AM:ckey]) stepped on an alerted tile in [get_area(src)]. Jump", admin_ref = 1)