From 5cda793bc401dc26a46805c6fc22fd4570e0a34f Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sat, 8 Dec 2012 18:47:16 +0400 Subject: [PATCH] In space, no one can hear you scream now. Well, people adjacent to you can. And people on radio... Seems kinda pointless now that I think about it, but eh. --- code/modules/mob/living/say.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index f56c672da84..3de350ed4bb 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -1,4 +1,4 @@ - +#define SAY_MINIMUM_PRESSURE 10 var/list/department_radio_keys = list( ":r" = "right hand", ":l" = "left hand", @@ -295,6 +295,13 @@ var/list/department_radio_keys = list( italics = 1 /////SPECIAL HEADSETS END + var/datum/gas_mixture/environment = loc.return_air() + if(environment) + var/pressure = environment.return_pressure() + if (pressure < SAY_MINIMUM_PRESSURE) //in space no one can hear you scream + italics = 1 + message_range = 1 + var/list/listening listening = get_mobs_in_view(message_range, src)