fix for RID #1394691 (boss2 at least)
added r_drawviewmodelinvis Spike needs to fix heightmaps, they have a similar issue git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1829 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
a061092d65
commit
afb9ec7a08
7 changed files with 41 additions and 16 deletions
|
@ -2853,7 +2853,7 @@ void CL_LinkViewModel(void)
|
|||
return;
|
||||
#endif
|
||||
|
||||
if (!r_drawviewmodel.value || !Cam_DrawViewModel(r_refdef.currentplayernum))
|
||||
if (r_drawviewmodel.value <= 0 || !Cam_DrawViewModel(r_refdef.currentplayernum))
|
||||
return;
|
||||
|
||||
#ifdef Q2CLIENT
|
||||
|
@ -2864,7 +2864,7 @@ void CL_LinkViewModel(void)
|
|||
if (!r_drawentities.value)
|
||||
return;
|
||||
|
||||
if (cl.stats[r_refdef.currentplayernum][STAT_ITEMS] & IT_INVISIBILITY)
|
||||
if ((cl.stats[r_refdef.currentplayernum][STAT_ITEMS] & IT_INVISIBILITY) && r_drawviewmodelinvis.value <= 0)
|
||||
return;
|
||||
|
||||
if (cl.stats[r_refdef.currentplayernum][STAT_HEALTH] <= 0)
|
||||
|
@ -2884,6 +2884,11 @@ void CL_LinkViewModel(void)
|
|||
else
|
||||
ent.alpha = 1;
|
||||
|
||||
if ((cl.stats[r_refdef.currentplayernum][STAT_ITEMS] & IT_INVISIBILITY)
|
||||
&& r_drawviewmodelinvis.value > 0
|
||||
&& r_drawviewmodelinvis.value < 1)
|
||||
ent.alpha *= r_drawviewmodelinvis.value;
|
||||
|
||||
ent.frame = cl.viewent[r_refdef.currentplayernum].frame;
|
||||
ent.oldframe = oldframe[r_refdef.currentplayernum];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue