mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-26 14:02:01 +00:00
Camera shake fix part 2
This commit is contained in:
parent
cab34db234
commit
f379e46b86
2 changed files with 2 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue