mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
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 commit0e9e8de5ef. * Revert "-20db supressor" This reverts commitf29e4558c2.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user