Disable jump sounds while player is frozen.

Same as f3810c7107.
This commit is contained in:
Andrey Akhmichin 2024-02-19 02:23:22 +05:00
parent f58544a156
commit da9ce1e9c3
1 changed files with 10 additions and 6 deletions

View File

@ -2570,6 +2570,9 @@ void PM_Jump( void )
if( !bunnyjump )
PM_PreventMegaBunnyJumping();
// Don't play jump sounds while frozen.
if( !( pmove->flags & FL_FROZEN ))
{
if( tfc )
{
pmove->PM_PlaySound( CHAN_BODY, "player/plyrjmp8.wav", 0.5, ATTN_NORM, 0, PITCH_NORM );
@ -2578,6 +2581,7 @@ void PM_Jump( void )
{
PM_PlayStepSound( PM_MapTextureTypeStepType( pmove->chtexturetype ), 1.0f );
}
}
// See if user can super long jump?
cansuperjump = atoi( pmove->PM_Info_ValueForKey( pmove->physinfo, "slj" ) ) == 1 ? true : false;