From f2bd748a11a95ab63b008212a659fc95327ec136 Mon Sep 17 00:00:00 2001 From: Kyep Date: Thu, 2 Mar 2017 22:48:46 -0800 Subject: [PATCH] Adds alarm sound to objective changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🆑 tweak: Antags whose objectives are manually announced by an admin, or altered automatically as a result of their target cryoing, will now hear a warning sound. The sound is the same as the 'crew transfer vote called' sound. Additionally, the text notice for changed objectives is more obvious. /🆑 --- code/datums/mind.dm | 3 ++- code/game/machinery/cryopod.dm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 27947b9e608..e6a43aae6b9 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -1204,10 +1204,11 @@ else if(href_list["obj_announce"]) var/obj_count = 1 - to_chat(current, "\blue Your current objectives:") + to_chat(current, "
Your current objectives:") for(var/datum/objective/objective in objectives) to_chat(current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ + current << 'sound/ambience/alarm4.ogg' log_admin("[key_name(usr)] has announced [key_name(current)]'s objectives") message_admins("[key_name_admin(usr)] has announced [key_name_admin(current)]'s objectives") diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 807d3caf261..50489a93a2d 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -333,7 +333,8 @@ else if(O.target && istype(O.target,/datum/mind)) if(O.target == occupant.mind) if(O.owner && O.owner.current) - to_chat(O.owner.current, "You get the feeling your target is no longer within reach. Time for Plan [pick("A","B","C","D","X","Y","Z")]. Objectives updated!") + to_chat(O.owner.current, "
You get the feeling your target is no longer within reach. Time for Plan [pick("A","B","C","D","X","Y","Z")]. Objectives updated!") + O.owner.current << 'sound/ambience/alarm4.ogg' O.target = null spawn(1) //This should ideally fire after the occupant is deleted. if(!O) return