Tweaks Gasping and Deathgasp Range + Reduces Gasp Volume with Oxyloss (#20753)

* -20db supressor

* garrote 7 range + wall block

* deathgasp 9 + scaling gasp volume with oxyloss

* Revert "garrote 7 range + wall block"

This reverts commit 0e9e8de5ef.

* Revert "-20db supressor"

This reverts commit f29e4558c2.
This commit is contained in:
matttheficus
2023-04-22 09:27:45 +02:00
committed by GitHub
parent 402093a51b
commit e250959bc7
2 changed files with 16 additions and 2 deletions
@@ -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"
+1 -1
View File
@@ -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"