summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-03 12:15:45 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:48 +0000
commitc56b5dd095d6f710b3de27ab053f63b018c4483a (patch)
treeb02f782a09e79a3bf099a285d98a8be85e006e20 /src
parent80293d2669543ec0795cc2e9c3c1261acd50a3c1 (diff)
* Add spec yaw tracking to shoulder cam
* Remove spec pitch tracking from case cam (until bugs it results in are fixed)
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index 0c13ee2d..be6d492c 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -338,6 +338,8 @@ void CG_OffsetThirdPersonView( void )
mouseInputAngles[ ROLL ] = 0.0f;
// Set the rotation angles to be the view angles offset by the mouse input
+ // Ignore the original pitch though, it's buggy
+ cg.refdefViewAngles[ PITCH ] = 0.0f;
for( i = 0; i < 3; i++ )
{
rotationAngles[ i ] = cg.refdefViewAngles[ i ] + mouseInputAngles[ i ];
@@ -481,7 +483,7 @@ void CG_OffsetShoulderView( void )
else pitch += deltaPitch;
}
rotationAngles[ PITCH ] = pitch;
- rotationAngles[ YAW ] = -1.0f * SHORT2ANGLE( cmd.angles[ YAW ] ); // yaw is inverted
+ rotationAngles[ YAW ] = SHORT2ANGLE( cmd.angles[ YAW ] ) + cg.refdefViewAngles[ YAW ];
rotationAngles[ ROLL ] = 0.0f;
// convert viewangles -> axis