From 5a4f5d54eabd4c68637133d5d19bd7c8d2b5fda0 Mon Sep 17 00:00:00 2001 From: CapybaraExtravagante <110635252+CapybaraExtravagante@users.noreply.github.com> Date: Sun, 14 Aug 2022 00:19:48 +0200 Subject: [PATCH] Ambience no longer uses reverb (#69003) * no more local sound * setup volume settings * Update code/controllers/subsystem/ambience.dm Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> * Update ambience.dm Co-authored-by: Capybara Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> --- code/controllers/subsystem/ambience.dm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/code/controllers/subsystem/ambience.dm b/code/controllers/subsystem/ambience.dm index 7baf0c8d69d..6067dc87638 100644 --- a/code/controllers/subsystem/ambience.dm +++ b/code/controllers/subsystem/ambience.dm @@ -50,16 +50,9 @@ SUBSYSTEM_DEF(ambience) ///Attempts to play an ambient sound to a mob, returning the cooldown in deciseconds /area/proc/play_ambience(mob/M, sound/override_sound, volume = 27) - var/turf/T = get_turf(M) var/sound/new_sound = override_sound || pick(ambientsounds) - new_sound = sound(new_sound, channel = CHANNEL_AMBIENCE) - M.playsound_local( - T, - new_sound, - volume, - FALSE, - channel = CHANNEL_AMBIENCE - ) + new_sound = sound(new_sound, repeat = 0, wait = 0, volume = volume, channel = CHANNEL_AMBIENCE) + SEND_SOUND(M, new_sound) return rand(min_ambience_cooldown, max_ambience_cooldown)