From 48e00e1d5718b0871f38f59d28984a72c37eef2e Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 21 Apr 2023 00:04:09 -0700 Subject: [PATCH] Die Rise: fix elevator loop sound not stopping --- scripts/zm/replaced/zm_highrise_elevators.gsc | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/scripts/zm/replaced/zm_highrise_elevators.gsc b/scripts/zm/replaced/zm_highrise_elevators.gsc index 43fc0170..de9b8821 100644 --- a/scripts/zm/replaced/zm_highrise_elevators.gsc +++ b/scripts/zm/replaced/zm_highrise_elevators.gsc @@ -277,6 +277,28 @@ elevator_initial_wait( elevator, minwait, maxwait, delaybeforeleaving ) wait 0.05; } +elevator_move_sound() +{ + self playsound( "zmb_elevator_ding" ); + + wait 0.4; + + if ( !is_true( self.is_moving ) ) + { + return; + } + + self playsound( "zmb_elevator_ding" ); + self playsound( "zmb_elevator_run_start" ); + self playloopsound( "zmb_elevator_run", 0.5 ); + + self waittill( "movedone" ); + + self stoploopsound( 0.5 ); + self playsound( "zmb_elevator_run_stop" ); + self playsound( "zmb_elevator_ding" ); +} + faller_location_logic() { wait 1;