Camera shake fix part 2

This commit is contained in:
Simon 2023-03-30 22:16:37 +01:00
parent 3dd7833cd0
commit 5f56cf48fc
4 changed files with 3 additions and 28 deletions

View file

@ -8580,8 +8580,6 @@ Ghoul2 Insert End
scale = 1.75f;
}
// No camera shake on weapon charge in VR
/*
if ( val < 0.0f )
{
val = 0.0f;
@ -8589,13 +8587,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

@ -1454,7 +1454,7 @@ void CG_AddViewWeapon( playerState_t *ps )
scale = 1.75f;
}
/*
if ( val < 0.0f )
{
val = 0.0f;
@ -1462,12 +1462,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;

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;