Camera shake fix part 2

This commit is contained in:
Simon 2023-03-30 22:16:37 +01:00
parent cab34db234
commit f379e46b86
2 changed files with 2 additions and 14 deletions

View file

@ -6156,7 +6156,7 @@ Ghoul2 Insert End
scale = 1.75f;
}
/*
if ( val < 0.0f )
{
val = 0.0f;
@ -6164,13 +6164,7 @@ Ghoul2 Insert End
else if ( val > 1.0f )
{
val = 1.0f;
CGCam_Shake( 0.1f, 100 );
}
else
{
CGCam_Shake( val * val * 0.3f, 100 );
}
*/
val += Q_flrand(0.0f, 1.0f) * 0.5f;

View file

@ -1343,7 +1343,7 @@ void CG_AddViewWeapon( playerState_t *ps )
scale = 1.75f;
}
/*
if ( val < 0.0f )
{
val = 0.0f;
@ -1351,13 +1351,7 @@ void CG_AddViewWeapon( playerState_t *ps )
else if ( val > 1.0f )
{
val = 1.0f;
CGCam_Shake( 0.1f, 100 );
}
else
{
CGCam_Shake( val * val * 0.3f, 100 );
}
*/
val += Q_flrand(0.0f, 1.0f) * 0.5f;