From 4f1d301880f43782b2a1e0127fbcc8d0ed316342 Mon Sep 17 00:00:00 2001 From: cib Date: Sat, 13 Oct 2012 08:48:25 -0700 Subject: [PATCH] Examine now only reveals you're dead by checking pulse. --- .../mob/living/carbon/human/examine.dm | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index 824062cf039..0dc518f992a 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -193,24 +193,33 @@ if(suiciding) msg += "[t_He] [t_has] bitten off [t_his] own tongue and [t_has] suffered major bloodloss!\n" - if(stat == DEAD || (status_flags & FAKEDEATH)) - if(brain_op_stage != 4)//Only perform these checks if there is no brain - msg += "[t_He] [t_is] limp and unresponsive; there are no signs of life" - if(!key) + var/distance = get_dist(usr,src) + if(istype(usr, /mob/dead/observer) || usr.stat == 2) // ghosts can see anything + distance = 1 + if (src.stat == 1 || stat == 2) + msg += "[t_He] [t_is]n't responding to anything around [t_him] and seems to be asleep.\n" + if((stat == 2 || src.health < config.health_threshold_crit) && distance <= 3) + msg += "[t_He] does not appear to be breathing.\n" + if(istype(usr, /mob/living/carbon/human) && usr.stat == 0 && src.stat == 1 && distance <= 1) + for(var/mob/O in viewers(usr.loc, null)) + O.show_message("[usr] checks [src]'s pulse.", 1) + spawn(15) + usr << "\blue [t_He] has a pulse!" + + if (src.stat == 2 || (status_flags & FAKEDEATH)) + if(distance <= 1) + if(istype(usr, /mob/living/carbon/human) && usr.stat == 0) + for(var/mob/O in viewers(usr.loc, null)) + O.show_message("[usr] checks [src]'s pulse.", 1) + spawn(15) var/foundghost = 0 - if(mind) - for(var/mob/dead/observer/G in player_list) - if(G.mind == mind) - foundghost = 1 - if (G.can_reenter_corpse == 0) - foundghost = 0 - break + if(src.client) + foundghost = 1 if(!foundghost) - msg += " and [t_his] soul has departed" - msg += "...\n" - else//Brain is gone, doesn't matter if they are AFK or present - msg += "It appears that [t_his] brain is missing...\n" + usr << "[t_He] has no pulse and [t_his] soul has departed..." + else + usr << "[t_He] has no pulse..." msg += ""