mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-22 04:01:33 +00:00
Ensure roll is used when in scope
This commit is contained in:
parent
bda2e7e3f1
commit
d98a7aad7f
2 changed files with 2 additions and 2 deletions
|
@ -2259,7 +2259,7 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView ) {
|
||||||
//Sniper/E11 scope
|
//Sniper/E11 scope
|
||||||
if (usingScope)
|
if (usingScope)
|
||||||
{
|
{
|
||||||
cg.refdef.viewangles[ROLL] = vr->clientviewangles[ROLL];
|
cg.refdef.viewangles[ROLL] = vr->hmdorientation[ROLL];
|
||||||
cg.refdef.viewangles[PITCH] = vr->weaponangles[ANGLES_ADJUSTED][PITCH];
|
cg.refdef.viewangles[PITCH] = vr->weaponangles[ANGLES_ADJUSTED][PITCH];
|
||||||
cg.refdef.viewangles[YAW] = vr->clientviewangles[YAW]
|
cg.refdef.viewangles[YAW] = vr->clientviewangles[YAW]
|
||||||
+ vr->weaponangles[ANGLES_ADJUSTED][YAW] + SHORT2ANGLE(cg.snap->ps.delta_angles[YAW]);
|
+ vr->weaponangles[ANGLES_ADJUSTED][YAW] + SHORT2ANGLE(cg.snap->ps.delta_angles[YAW]);
|
||||||
|
|
|
@ -3036,7 +3036,7 @@ void CG_DrawActive( stereoFrame_t stereoView ) {
|
||||||
//Sniper/E11 scope
|
//Sniper/E11 scope
|
||||||
if (usingScope)
|
if (usingScope)
|
||||||
{
|
{
|
||||||
cg.refdef.viewangles[ROLL] = vr->clientviewangles[ROLL];
|
cg.refdef.viewangles[ROLL] = vr->hmdorientation[ROLL];
|
||||||
cg.refdef.viewangles[PITCH] = vr->weaponangles[ANGLES_ADJUSTED][PITCH];
|
cg.refdef.viewangles[PITCH] = vr->weaponangles[ANGLES_ADJUSTED][PITCH];
|
||||||
cg.refdef.viewangles[YAW] = vr->clientviewangles[YAW]
|
cg.refdef.viewangles[YAW] = vr->clientviewangles[YAW]
|
||||||
+ vr->weaponangles[ANGLES_ADJUSTED][YAW] + SHORT2ANGLE(cg.snap->ps.delta_angles[YAW]);
|
+ vr->weaponangles[ANGLES_ADJUSTED][YAW] + SHORT2ANGLE(cg.snap->ps.delta_angles[YAW]);
|
||||||
|
|
Loading…
Reference in a new issue