From 9068fd371a611e19a1c90d6dccd0128a0bce6ee0 Mon Sep 17 00:00:00 2001 From: AndroBetel <44546836+AndroBetel@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:57:27 +0300 Subject: [PATCH] dying no longer shows death message and doesnt turn off lights (#122) --- code/modules/mob/death.dm | 4 ++-- code/modules/mob/living/carbon/human/death.dm | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/death.dm b/code/modules/mob/death.dm index 115e78fa7f..fe8b61ac25 100644 --- a/code/modules/mob/death.dm +++ b/code/modules/mob/death.dm @@ -44,11 +44,11 @@ /mob/proc/dust_animation() return -/mob/proc/death(datum/cause_data/cause_data, gibbed = 0, deathmessage = "seizes up and falls limp...") +/mob/proc/death(datum/cause_data/cause_data, gibbed = 0, deathmessage = "seizes up and falls limp...", should_deathmessage = TRUE) if(stat == DEAD) return 0 - if(!gibbed) + if(!gibbed && should_deathmessage) visible_message("\The [src.name] [deathmessage]") if(cause_data && !istype(cause_data)) diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index e5ee1557c8..e70dcc2f68 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -37,7 +37,7 @@ /mob/living/carbon/human/dust_animation() new /obj/effect/overlay/temp/dust_animation(loc, src, "dust-h") -/mob/living/carbon/human/death(cause, gibbed) +/mob/living/carbon/human/death(cause, gibbed, should_deathmessage = TRUE) if(stat == DEAD) species?.handle_dead_death(src, gibbed) return @@ -48,12 +48,13 @@ if(HAS_TRAIT(src, TRAIT_HARDCORE) || MODE_HAS_TOGGLEABLE_FLAG(MODE_HARDCORE_PERMA)) if(!(species.flags & IS_SYNTHETIC)) // Synths wont perma status_flags |= PERMANENTLY_DEAD + should_deathmessage = FALSE if(HAS_TRAIT(src, TRAIT_INTENT_EYES)) //their eyes need to be 'offline' r_eyes = 0 g_eyes = 0 b_eyes = 0 disable_special_flags() - disable_lights() +// disable_lights() disable_special_items() disable_headsets() //Disable radios for dead people to reduce load @@ -110,7 +111,7 @@ if(HAS_TRAIT(src, TRAIT_HARDCORE)) death_message = "valiantly falls to the ground, dead, unable to continue." - . = ..(cause, gibbed, death_message) + . = ..(cause, gibbed, death_message, should_deathmessage) // stat is now set /*