mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user