mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 15:04:21 +00:00
Added a config option for a visible human deathgasp message.
This commit is contained in:
@@ -218,6 +218,8 @@ var/list/gamemode_cache = list()
|
|||||||
|
|
||||||
var/list/language_prefixes = list(",","#","-")//Default language prefixes
|
var/list/language_prefixes = list(",","#","-")//Default language prefixes
|
||||||
|
|
||||||
|
var/show_human_death_message = 1
|
||||||
|
|
||||||
/datum/configuration/New()
|
/datum/configuration/New()
|
||||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||||
for (var/T in L)
|
for (var/T in L)
|
||||||
@@ -724,6 +726,8 @@ var/list/gamemode_cache = list()
|
|||||||
config.health_threshold_softcrit = value
|
config.health_threshold_softcrit = value
|
||||||
if("health_threshold_dead")
|
if("health_threshold_dead")
|
||||||
config.health_threshold_dead = value
|
config.health_threshold_dead = value
|
||||||
|
if("show_human_death_message")
|
||||||
|
config.show_human_death_message = 1
|
||||||
if("revival_pod_plants")
|
if("revival_pod_plants")
|
||||||
config.revival_pod_plants = value
|
config.revival_pod_plants = value
|
||||||
if("revival_cloning")
|
if("revival_cloning")
|
||||||
|
|||||||
@@ -178,7 +178,10 @@
|
|||||||
return ((H && H.isSynthetic()) ? "encounters a hardware fault and suddenly reboots!" : knockout_message)
|
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)
|
/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)
|
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)
|
/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)
|
return ((H && H.isSynthetic()) ? "flashing a 'system offline' glyph on their monitor" : show_ssd)
|
||||||
|
|||||||
@@ -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.
|
## Remove the # in front of this config option to have loyalty implants spawn by default on your server.
|
||||||
#USE_LOYALTY_IMPLANTS
|
#USE_LOYALTY_IMPLANTS
|
||||||
|
|
||||||
|
## Whether or not humans show an area message when they die.
|
||||||
|
SHOW_HUMAN_DEATH_MESSAGE
|
||||||
Reference in New Issue
Block a user