From 786e89856e8b0ce4deac22bc5e1d2d9598ea94f5 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 11 Apr 2023 10:53:55 +0200 Subject: [PATCH] [MIRROR] Tram door sounds hotfix [NO GBP] [MDB IGNORE] (#20483) * Tram door sounds hotfix [NO GBP] (#74634) ## About The Pull Request Tram door needs the vary arg to be FALSE, not TRUE or it sounds weird. Also made it a little quieter. ## Changelog :cl: LT3 fix: Tram doors no longer play 8 variations of the same sound simultaneously /:cl: * Tram door sounds hotfix [NO GBP] --------- Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> --- code/modules/industrial_lift/tram/tram_doors.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/industrial_lift/tram/tram_doors.dm b/code/modules/industrial_lift/tram/tram_doors.dm index cf1171725fe..89c33757407 100644 --- a/code/modules/industrial_lift/tram/tram_doors.dm +++ b/code/modules/industrial_lift/tram/tram_doors.dm @@ -58,7 +58,7 @@ return TRUE switch(command) if("open") - playsound(src, 'sound/machines/tramopen.ogg', 100, TRUE) + playsound(src, 'sound/machines/tramopen.ogg', vol = 75, vary = FALSE, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) do_animate("opening") icon_state ="[base_state]open" sleep(7 DECISECONDS) @@ -67,9 +67,9 @@ if("close") if((obj_flags & EMAGGED) || malfunctioning) flick("[base_state]spark", src) - playsound(src, SFX_SPARKS, 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) + playsound(src, SFX_SPARKS, vol = 75, vary = FALSE, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) sleep(6 DECISECONDS) - playsound(src, 'sound/machines/tramclose.ogg', 100, TRUE) + playsound(src, 'sound/machines/tramclose.ogg', vol = 75, vary = FALSE, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) do_animate("closing") icon_state = base_state sleep(19 DECISECONDS)