From 4aa2e8a2697208351ad40f7fc326ee56054a3718 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Sat, 30 Jan 2016 08:29:06 +1030 Subject: [PATCH] Added a config option for a visible human deathgasp message. --- code/controllers/configuration.dm | 4 ++++ code/modules/mob/living/carbon/human/species/species.dm | 5 ++++- config/example/game_options.txt | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index 817a1036cb..28dadc5adb 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -218,6 +218,8 @@ var/list/gamemode_cache = list() var/list/language_prefixes = list(",","#","-")//Default language prefixes + var/show_human_death_message = 1 + /datum/configuration/New() var/list/L = typesof(/datum/game_mode) - /datum/game_mode for (var/T in L) @@ -724,6 +726,8 @@ var/list/gamemode_cache = list() config.health_threshold_softcrit = value if("health_threshold_dead") config.health_threshold_dead = value + if("show_human_death_message") + config.show_human_death_message = 1 if("revival_pod_plants") config.revival_pod_plants = value if("revival_cloning") diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index a7af36340c..cb34c47e1b 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -178,7 +178,10 @@ return ((H && H.isSynthetic()) ? "encounters a hardware fault and suddenly reboots!" : knockout_message) /datum/species/proc/get_death_message(var/mob/living/carbon/human/H) - return ((H && H.isSynthetic()) ? "gives one shrill beep before falling lifeless." : death_message) + if(config.show_human_death_message) + return ((H && H.isSynthetic()) ? "gives one shrill beep before falling lifeless." : death_message) + else + return "no message" /datum/species/proc/get_ssd(var/mob/living/carbon/human/H) return ((H && H.isSynthetic()) ? "flashing a 'system offline' glyph on their monitor" : show_ssd) diff --git a/config/example/game_options.txt b/config/example/game_options.txt index 614e696df2..035431b8ba 100644 --- a/config/example/game_options.txt +++ b/config/example/game_options.txt @@ -64,3 +64,6 @@ ANIMAL_DELAY 0 ## Remove the # in front of this config option to have loyalty implants spawn by default on your server. #USE_LOYALTY_IMPLANTS + +## Whether or not humans show an area message when they die. +SHOW_HUMAN_DEATH_MESSAGE \ No newline at end of file