Added a config option for a visible human deathgasp message.

This commit is contained in:
Zuhayr
2016-01-30 08:29:06 +10:30
parent eadfa20428
commit 4aa2e8a269
3 changed files with 11 additions and 1 deletions

View File

@@ -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")

View File

@@ -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)
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)

View File

@@ -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