Make monkey death/gasps not travel through walls (#18080)

* Make monkey death/gasps not travel throguh walls

* based off of mind instead of monke
This commit is contained in:
Luc
2022-06-26 15:33:10 +01:00
committed by GitHub
parent bdc2d3262a
commit 1aaf3d6315
2 changed files with 10 additions and 0 deletions
@@ -146,6 +146,11 @@
else
return pick(H.dna.species.male_dying_gasp_sounds)
/datum/emote/living/carbon/human/gasp/play_sound_effect(mob/user, intentional, sound_path, sound_volume)
var/mob/living/carbon/human/H = user
// 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))
/datum/emote/living/carbon/human/shake
key = "shake"
key_third_person = "shakes"
+5
View File
@@ -110,6 +110,11 @@
var/mob/living/silicon/SI = user
return SI.death_sound
/datum/emote/living/deathgasp/play_sound_effect(mob/user, intentional, sound_path, sound_volume)
var/mob/living/carbon/human/H = user
// 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))
/datum/emote/living/drool
key = "drool"
key_third_person = "drools"