POLARIS: Allow admins to see say/emote near their own body while they are aghosted. (#4663)

This commit is contained in:
Aronai Sieyes
2018-01-29 14:47:08 -05:00
committed by Atermonera
parent 25a54437db
commit 47758a0453
3 changed files with 10 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
// At minimum every mob has a hear_say proc.
/mob/proc/hear_say(var/message, var/verb = "says", var/datum/language/language = null, var/alt_name = "",var/italics = 0, var/mob/speaker = null, var/sound/speech_sound, var/sound_vol)
if(!client)
if(!client && !teleop)
return
if(speaker && !speaker.client && istype(src,/mob/observer/dead) && is_preference_enabled(/datum/client_preference/ghost_ears) && !(speaker in view(src)))
@@ -80,10 +80,14 @@
/mob/proc/on_hear_say(var/message)
to_chat(src, message)
if(teleop)
to_chat(teleop, create_text_tag("body", "BODY:", teleop) + "[message]")
/mob/living/silicon/on_hear_say(var/message)
var/time = say_timestamp()
to_chat(src, "[time] [message]")
if(teleop)
to_chat(teleop, create_text_tag("body", "BODY:", teleop) + "[time] [message]")
// Checks if the mob's own name is included inside message. Handles both first and last names.
/mob/proc/check_mentioned(var/message)

View File

@@ -50,7 +50,7 @@
/mob/proc/show_message(msg, type, alt, alt_type)//Message, type of message (1 or 2), alternative message, alt message type (1 or 2)
if(!client) return
if(!client && !teleop) return
if (type)
if((type & 1) && (is_blind() || paralysis) )//Vision related
@@ -69,9 +69,11 @@
return
// Added voice muffling for Issue 41.
if(stat == UNCONSCIOUS || sleeping > 0)
src << "<I>... You can almost hear someone talking ...</I>"
to_chat(src,"<I>... You can almost hear someone talking ...</I>")
else
src << msg
to_chat(src,msg)
if(teleop)
to_chat(teleop, create_text_tag("body", "BODY:", teleop) + "[msg]")
return
// Show a message to all mobs and objects in sight of this one

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB