mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-10 09:31:52 +00:00
All credits to the author for this handy little script. I Committed the modified python script to tool directory. Although it needs to be in the root folder of your repo to work. To notice the improved compile times, in dreammaker go to Build > Preferences > and untick "automatically set file_dir for subfolders" If this commit inteferes with any large projects just revert it, do your thing, then rerun the script. Easy-peasy. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4488 316c924e-a436-60f5-8080-3fe189b3f50e
44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
/mob/dead/observer/say_understands(var/other)
|
|
return 1
|
|
|
|
/mob/dead/observer/say(var/message)
|
|
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
|
|
|
|
if (!message)
|
|
return
|
|
|
|
log_say("Ghost/[src.key] : [message]")
|
|
|
|
if (src.client)
|
|
if(src.client.muted_deadchat)
|
|
src << "\red You cannot talk in deadchat (muted by admins)."
|
|
return
|
|
|
|
if (src.client.handle_spam_prevention(message,MUTE_DEADCHAT))
|
|
return
|
|
|
|
. = src.say_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) |