From fafba69141eb8f87c42dd6ed7073164e90a6f3a0 Mon Sep 17 00:00:00 2001 From: DeityLink Date: Sat, 9 May 2015 07:23:46 +0200 Subject: [PATCH] ghosts arena notifications and searching tool --- code/modules/bomberman/bomberman.dm | 7 ++++++ code/modules/mob/dead/observer/observer.dm | 25 ++++++++++++++++++++++ code/modules/mob/dead/observer/spells.dm | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/code/modules/bomberman/bomberman.dm b/code/modules/bomberman/bomberman.dm index 25eaf7691a9..7252d95760e 100644 --- a/code/modules/bomberman/bomberman.dm +++ b/code/modules/bomberman/bomberman.dm @@ -878,6 +878,10 @@ var/global/list/arenas = list() message_admins("[key_name_admin(user.client)] created a \"[size]\" Bomberman arena at [center.loc.name] ([center.x],[center.y],[center.z]) (JMP)") log_game("[key_name_admin(user.client)] created a \"[size]\" Bomberman arena at [center.loc.name] ([center.x],[center.y],[center.z]) ") + + for(var/mob/dead/observer/O in observers) + O << "[user.client.key] created a \"[size]\" Bomberman arena at [center.loc.name]. Click here to JUMP to it." + else qdel(src) @@ -957,6 +961,9 @@ var/global/list/arenas = list() E.visible_message("\icon[E] \The [E] brightens as it appears that a round is starting in [name].") flick("entertainment_arena",E) + for(var/mob/dead/observer/O in observers) + O << "A round has began in [name]!" + sleep(40) for(var/datum/bomberman_spawn/S in spawns) if(S.player) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 2963610b89f..c124a5ac661 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -755,6 +755,20 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp // host.ckey = src.ckey // //host << "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent." +/mob/dead/observer/verb/find_arena() + set category = "Ghost" + set name = "Search For Arenas" + set desc = "Try to find an Arena to polish your robust bomb placement skills.." + + if(!arenas.len) + usr << "There are no arenas in the world! Ask the admins to spawn one." + return + + var/datum/bomberman_arena/arena_target = input("Which arena do you wish to reach?", "Arena Search Panel") in arenas + usr << "Reached [arena_target]" + + usr.loc = arena_target.center + //BEGIN TELEPORT HREF CODE /mob/dead/observer/Topic(href, href_list) if(usr != src) @@ -803,6 +817,17 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return loc = T following = null + + if(href_list["jumptoarenacood"]) + world << "gotcha" + + var/x = text2num(href_list["X"]) + var/y = text2num(href_list["Y"]) + var/z = text2num(href_list["Z"]) + + var/client/C = usr.client + sleep(2) + C.jumptocoord(x,y,z) ..() //END TELEPORT HREF CODE diff --git a/code/modules/mob/dead/observer/spells.dm b/code/modules/mob/dead/observer/spells.dm index ac3e06ec1cf..4cdaf996ad4 100644 --- a/code/modules/mob/dead/observer/spells.dm +++ b/code/modules/mob/dead/observer/spells.dm @@ -77,4 +77,4 @@ var/global/list/boo_phrases_silicon=list( A:spookymode=1 if(istype(A, /obj/machinery/ai_status_display)) - A:spookymode=1 \ No newline at end of file + A:spookymode=1