From c56b5dd095d6f710b3de27ab053f63b018c4483a Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:15:45 +0000 Subject: * Add spec yaw tracking to shoulder cam * Remove spec pitch tracking from case cam (until bugs it results in are fixed) --- src/cgame/cg_view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit