2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-21 17:36:18 +01:00

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

View File

@ -2570,13 +2570,17 @@ void PM_Jump( void )
if( !bunnyjump )
PM_PreventMegaBunnyJumping();
if( tfc )
// Don't play jump sounds while frozen.
if( !( pmove->flags & FL_FROZEN ))
{
pmove->PM_PlaySound( CHAN_BODY, "player/plyrjmp8.wav", 0.5, ATTN_NORM, 0, PITCH_NORM );
}
else
{
PM_PlayStepSound( PM_MapTextureTypeStepType( pmove->chtexturetype ), 1.0f );
if( tfc )
{
pmove->PM_PlaySound( CHAN_BODY, "player/plyrjmp8.wav", 0.5, ATTN_NORM, 0, PITCH_NORM );
}
else
{
PM_PlayStepSound( PM_MapTextureTypeStepType( pmove->chtexturetype ), 1.0f );
}
}
// See if user can super long jump?