mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-25 16:53:28 +00:00
This implements UDP Logging with GELF. It will allow full text search over all the logs and attributes sent over GELF to the log server.
60 lines
2.0 KiB
Plaintext
60 lines
2.0 KiB
Plaintext
/mob/dead/observer/say(var/message)
|
|
message = sanitize(message)
|
|
|
|
if (!message)
|
|
return
|
|
|
|
log_say("Ghost/[src.key] : [message]",ckey=key_name(src))
|
|
|
|
if (src.client)
|
|
if(src.client.prefs.muted & (MUTE_DEADCHAT|MUTE_IC))
|
|
src << "\red You cannot talk in deadchat (muted)."
|
|
return
|
|
|
|
. = src.say_dead(message)
|
|
|
|
|
|
/mob/dead/observer/emote(var/act, var/type, var/message)
|
|
//message = sanitize(message) - already sanitized in verb/me_verb()
|
|
|
|
if(!message)
|
|
return
|
|
|
|
if(act != "me")
|
|
return
|
|
|
|
log_emote("Ghost/[src.key] : [message]",ckey=key_name(src))
|
|
|
|
if(src.client)
|
|
if(src.client.prefs.muted & (MUTE_DEADCHAT|MUTE_IC))
|
|
src << "\red You cannot emote in deadchat (muted)."
|
|
return
|
|
|
|
. = src.emote_dead(message)
|
|
|
|
/*
|
|
for (var/mob/M in hearers(null, null))
|
|
if (!M.stat)
|
|
if(M.job == "Chaplain")
|
|
if (prob (49))
|
|
M.show_message("<span class='game'><i>You hear muffled speech... but nothing is there...</i></span>", 2)
|
|
if(prob(20))
|
|
playsound(src.loc, pick('sound/effects/ghost.ogg','sound/effects/ghost2.ogg'), 10, 1)
|
|
else
|
|
M.show_message("<span class='game'><i>You hear muffled speech... you can almost make out some words...</i></span>", 2)
|
|
// M.show_message("<span class='game'><i>[stutter(message)]</i></span>", 2)
|
|
if(prob(30))
|
|
playsound(src.loc, pick('sound/effects/ghost.ogg','sound/effects/ghost2.ogg'), 10, 1)
|
|
else
|
|
if (prob(50))
|
|
return
|
|
else if (prob (95))
|
|
M.show_message("<span class='game'><i>You hear muffled speech... but nothing is there...</i></span>", 2)
|
|
if(prob(20))
|
|
playsound(src.loc, pick('sound/effects/ghost.ogg','sound/effects/ghost2.ogg'), 10, 1)
|
|
else
|
|
M.show_message("<span class='game'><i>You hear muffled speech... you can almost make out some words...</i></span>", 2)
|
|
// M.show_message("<span class='game'><i>[stutter(message)]</i></span>", 2)
|
|
playsound(src.loc, pick('sound/effects/ghost.ogg','sound/effects/ghost2.ogg'), 10, 1)
|
|
*/
|