mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +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;
|
vec3_t predictedVelocity;
|
||||||
int timeDelta;
|
int timeDelta;
|
||||||
|
|
||||||
if ( cg.snap->ps.pm_type == PM_INTERMISSION ) {
|
// if ( cg.snap->ps.pm_type == PM_INTERMISSION ) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
origin = cg.refdef.vieworg;
|
origin = cg.refdef.vieworg;
|
||||||
angles = cg.refdefViewAngles;
|
angles = cg.refdefViewAngles;
|
||||||
|
@ -646,7 +646,7 @@ static int CG_CalcViewValues( void ) {
|
||||||
cg.cameraMode = qfalse;
|
cg.cameraMode = qfalse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
// intermission view
|
// intermission view
|
||||||
if ( ps->pm_type == PM_INTERMISSION ) {
|
if ( ps->pm_type == PM_INTERMISSION ) {
|
||||||
VectorCopy( ps->origin, cg.refdef.vieworg );
|
VectorCopy( ps->origin, cg.refdef.vieworg );
|
||||||
|
@ -654,7 +654,7 @@ static int CG_CalcViewValues( void ) {
|
||||||
AnglesToAxis( cg.refdefViewAngles, cg.refdef.viewaxis );
|
AnglesToAxis( cg.refdefViewAngles, cg.refdef.viewaxis );
|
||||||
return CG_CalcFov();
|
return CG_CalcFov();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
cg.bobcycle = ( ps->bobCycle & 128 ) >> 7;
|
cg.bobcycle = ( ps->bobCycle & 128 ) >> 7;
|
||||||
cg.bobfracsin = fabs( sin( ( ps->bobCycle & 127 ) / 127.0 * M_PI ) );
|
cg.bobfracsin = fabs( sin( ( ps->bobCycle & 127 ) / 127.0 * M_PI ) );
|
||||||
cg.xyspeed = sqrt( ps->velocity[0] * ps->velocity[0] +
|
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;
|
short temp;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/*
|
||||||
if ( ps->pm_type == PM_INTERMISSION || ps->pm_type == PM_SPINTERMISSION) {
|
if ( ps->pm_type == PM_INTERMISSION || ps->pm_type == PM_SPINTERMISSION) {
|
||||||
return; // no view changes at all
|
return; // no view changes at all
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
/* We want to allow user to look around if they are dead
|
/* We want to allow user to look around if they are dead
|
||||||
if ( ps->pm_type != PM_SPECTATOR && ps->stats[STAT_HEALTH] <= 0 ) {
|
if ( ps->pm_type != PM_SPECTATOR && ps->stats[STAT_HEALTH] <= 0 ) {
|
||||||
return; // no view changes at all
|
return; // no view changes at all
|
||||||
|
|
Loading…
Reference in a new issue