A modification to the gun location hack code.. The QW HUD was supposed to

give you a little more screen real-estate.  It does, but you still have a
big gun blocking most of your screen in the center.  If you turned off the
HUD, you got more screen and less gun.  That now happens whenever the HUD
is displayed.

This is a temporary measure.  At a later point, the gun will always be at
the bottom of the view area regardless of fov.
This commit is contained in:
Joseph Carter 2001-02-21 19:13:03 +00:00
parent 8a6de9f990
commit 9a47e3c92c
2 changed files with 7 additions and 3 deletions

View file

@ -693,7 +693,9 @@ void V_CalcRefdef (void)
#if 0
if (cl.model_precache[cl.stats[STAT_WEAPON]] && strcmp (cl.model_precache[cl.stats[STAT_WEAPON]]->name, "progs/v_shot2.mdl"))
#endif
if (scr_viewsize->int_val == 110)
if (cl_sbar->int_val == 0 &&scr_viewsize->int_val >= 100)
;
else if (scr_viewsize->int_val == 110)
view->origin[2] += 1;
else if (scr_viewsize->int_val == 100)
view->origin[2] += 2;

View file

@ -638,7 +638,9 @@ V_CalcRefdef (void)
// fudge position around to keep amount of weapon visible
// roughly equal with different FOV
if (scr_viewsize->int_val == 110)
if (cl_sbar->int_val == 0 &&scr_viewsize->int_val >= 100)
;
else if (scr_viewsize->int_val == 110)
view->origin[2] += 1;
else if (scr_viewsize->int_val == 100)
view->origin[2] += 2;