1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-20 20:20:30 -05:00

Die Rise: fix elevator loop sound not stopping

This commit is contained in:
Jbleezy
2023-04-21 00:04:09 -07:00
parent 2f8d34a4db
commit 48e00e1d57

View File

@ -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;