subtle sounds only when next to

This commit is contained in:
Seris02
2023-03-26 11:39:42 +08:00
parent b259cb47ef
commit f6d1d7265b
+1 -1
View File
@@ -179,7 +179,7 @@
else
spawn(0)
M.show_message(message, 2)
if(M.is_preference_enabled(/datum/client_preference/say_sounds))
if(M.Adjacent(src) && M.is_preference_enabled(/datum/client_preference/say_sounds)) //CHOMPEdit - makes it so the sounds only play for ghosts when adjacent to the person making them
if(voice_sounds_list) //CHOMPEdit, changes to subtle emotes to use mob voice instead
M << sound(pick(voice_sounds_list), volume = 25)