diff --git a/code/modules/mob/living/carbon/human/human_emote.dm b/code/modules/mob/living/carbon/human/human_emote.dm index 1de8e23cf0a..54aec1862e7 100644 --- a/code/modules/mob/living/carbon/human/human_emote.dm +++ b/code/modules/mob/living/carbon/human/human_emote.dm @@ -152,8 +152,22 @@ /datum/emote/living/carbon/human/gasp/play_sound_effect(mob/user, intentional, sound_path, sound_volume) var/mob/living/carbon/human/H = user + var/oxy = H.getOxyLoss() + var/volume_decrease = 0 + switch(oxy) + if(0 to 50) + volume_decrease = 0 + if(51 to 100) + volume_decrease = 50 + if(101 to 150) + volume_decrease = 65 + if(151 to 200) + volume_decrease = 80 + else + volume_decrease = 95 + sound_volume -= volume_decrease // special handling here: we don't want monkeys' gasps to sound through walls so you can actually walk past xenobio - playsound(user.loc, sound_path, sound_volume, TRUE, frequency = H.get_age_pitch(), ignore_walls = !isnull(user.mind)) + playsound(user.loc, sound_path, sound_volume, TRUE, -10, frequency = H.get_age_pitch(), ignore_walls = !isnull(user.mind)) /datum/emote/living/carbon/human/shake key = "shake" diff --git a/code/modules/mob/living/living_emote.dm b/code/modules/mob/living/living_emote.dm index 963ad699dd7..61540fb7601 100644 --- a/code/modules/mob/living/living_emote.dm +++ b/code/modules/mob/living/living_emote.dm @@ -120,7 +120,7 @@ if(!istype(H)) return ..() // special handling here: we don't want monkeys' gasps to sound through walls so you can actually walk past xenobio - playsound(user.loc, sound_path, sound_volume, TRUE, frequency = H.get_age_pitch(), ignore_walls = !isnull(user.mind)) + playsound(user.loc, sound_path, sound_volume, TRUE, -8, frequency = H.get_age_pitch(), ignore_walls = !isnull(user.mind)) /datum/emote/living/drool key = "drool"