mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-02 13:33:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user