From 2137bd5e3ef6f0dfa9f3ca5a44da3ac00d532841 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Thu, 28 Feb 2019 10:29:02 +0100 Subject: [PATCH] Now logs where the mob died new var `location` that remembers where the mob died making on death spawn easier usage example oldmob/path/death() ..() new mob/path(location) --- code/modules/mob/death.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/death.dm b/code/modules/mob/death.dm index af0fdf4301..295171df15 100644 --- a/code/modules/mob/death.dm +++ b/code/modules/mob/death.dm @@ -70,6 +70,7 @@ if(stat == DEAD) return 0 + var/location = get_turf(src) //CHOMPEDIT: since we use this so much lets define it here yknow if(src.loc && istype(loc,/obj/belly)) deathmessage = "no message" //VOREStation Add - Prevents death messages from inside mobs facing_dir = null