mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Fix runtime with borgs deathgasping (#18109)
* Fix runtime with borgs deathgasping * farie's wonderful suggestion Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
@@ -112,6 +112,8 @@
|
||||
|
||||
/datum/emote/living/deathgasp/play_sound_effect(mob/user, intentional, sound_path, sound_volume)
|
||||
var/mob/living/carbon/human/H = user
|
||||
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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user