mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
view lowering now does actually lower view.
This commit is contained in:
parent
1d26c02826
commit
00f00185f8
3 changed files with 30 additions and 13 deletions
|
@ -763,7 +763,11 @@ void V_CalcRefdef (void)
|
|||
int i;
|
||||
vec3_t forward, right, up;
|
||||
float bob;
|
||||
static float oldz = 0;
|
||||
static float oldz = 0;
|
||||
int zofs = 22;
|
||||
|
||||
if (cl.stdver)
|
||||
zofs = cl.stats[STAT_VIEWHEIGHT];
|
||||
|
||||
V_DriftPitch ();
|
||||
|
||||
|
@ -793,7 +797,7 @@ void V_CalcRefdef (void)
|
|||
else if (view_message->flags & PF_DEAD)
|
||||
r_refdef.vieworg[2] -= 16; // corpse view height
|
||||
else
|
||||
r_refdef.vieworg[2] += 22; // view height
|
||||
r_refdef.vieworg[2] += zofs; // view height
|
||||
|
||||
if (view_message->flags & PF_DEAD) // PF_GIB will also set PF_DEAD
|
||||
r_refdef.viewangles[ROLL] = 80; // dead view angle
|
||||
|
@ -808,7 +812,7 @@ void V_CalcRefdef (void)
|
|||
CalcGunAngle ();
|
||||
|
||||
VectorCopy (cl.simorg, view->origin);
|
||||
view->origin[2] += 22;
|
||||
view->origin[2] += zofs;
|
||||
|
||||
for (i=0 ; i<3 ; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue