mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-17 01:21:47 +00:00
Attempt to unlock headtracking in intermission
This commit is contained in:
parent
2c9b286da5
commit
2524be5017
2 changed files with 7 additions and 6 deletions
|
@ -341,9 +341,9 @@ static void CG_OffsetFirstPersonView( void ) {
|
|||
vec3_t predictedVelocity;
|
||||
int timeDelta;
|
||||
|
||||
if ( cg.snap->ps.pm_type == PM_INTERMISSION ) {
|
||||
return;
|
||||
}
|
||||
// if ( cg.snap->ps.pm_type == PM_INTERMISSION ) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
origin = cg.refdef.vieworg;
|
||||
angles = cg.refdefViewAngles;
|
||||
|
@ -646,7 +646,7 @@ static int CG_CalcViewValues( void ) {
|
|||
cg.cameraMode = qfalse;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// intermission view
|
||||
if ( ps->pm_type == PM_INTERMISSION ) {
|
||||
VectorCopy( ps->origin, cg.refdef.vieworg );
|
||||
|
@ -654,7 +654,7 @@ static int CG_CalcViewValues( void ) {
|
|||
AnglesToAxis( cg.refdefViewAngles, cg.refdef.viewaxis );
|
||||
return CG_CalcFov();
|
||||
}
|
||||
|
||||
*/
|
||||
cg.bobcycle = ( ps->bobCycle & 128 ) >> 7;
|
||||
cg.bobfracsin = fabs( sin( ( ps->bobCycle & 127 ) / 127.0 * M_PI ) );
|
||||
cg.xyspeed = sqrt( ps->velocity[0] * ps->velocity[0] +
|
||||
|
|
|
@ -1797,10 +1797,11 @@ void PM_UpdateViewAngles( playerState_t *ps, const usercmd_t *cmd ) {
|
|||
short temp;
|
||||
int i;
|
||||
|
||||
/*
|
||||
if ( ps->pm_type == PM_INTERMISSION || ps->pm_type == PM_SPINTERMISSION) {
|
||||
return; // no view changes at all
|
||||
}
|
||||
|
||||
*/
|
||||
/* We want to allow user to look around if they are dead
|
||||
if ( ps->pm_type != PM_SPECTATOR && ps->stats[STAT_HEALTH] <= 0 ) {
|
||||
return; // no view changes at all
|
||||
|
|
Loading…
Reference in a new issue