Informs ghosts when someone dies

Informs ghosts when a living person dies. Shows a follow link as well as their location.
This commit is contained in:
GeneriedJenelle
2020-01-02 15:41:56 +00:00
committed by GitHub
parent 336b64490b
commit 2809d57c52

View File

@@ -79,6 +79,11 @@
verbs -= /mob/living/carbon/proc/release_control
callHook("death", list(src, gibbed))
if(mind)
for(var/mob/observer/dead/O in mob_list)
if(O.client && O.client.is_preference_enabled(/datum/client_preference/show_dsay))
to_chat(O, "<span class='deadsay'><b>[src]</b> has died in <b>[get_area(src)]</b>. [ghost_follow_link(src, O)] </span>")
if(!gibbed && species.death_sound)
playsound(loc, species.death_sound, 80, 1, 1)
@@ -137,4 +142,4 @@
mutations.Add(SKELETON)
status_flags |= DISFIGURED
update_icons_body()
return
return