mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-18 14:31:52 +00:00
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];
|
||||
|
||||
|
|
|
@ -2112,11 +2112,18 @@ void CLQ2_ParseConfigString (void)
|
|||
else if (i == Q2CS_SKYAXIS)
|
||||
{
|
||||
s = COM_Parse(s);
|
||||
cl.skyaxis[0] = atof(com_token);
|
||||
s = COM_Parse(s);
|
||||
cl.skyaxis[1] = atof(com_token);
|
||||
s = COM_Parse(s);
|
||||
cl.skyaxis[2] = atof(com_token);
|
||||
if (s)
|
||||
{
|
||||
cl.skyaxis[0] = atof(com_token);
|
||||
s = COM_Parse(s);
|
||||
if (s)
|
||||
{
|
||||
cl.skyaxis[1] = atof(com_token);
|
||||
s = COM_Parse(s);
|
||||
if (s)
|
||||
cl.skyaxis[2] = atof(com_token);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (i == Q2CS_SKYROTATE)
|
||||
cl.skyrotate = atof(s);
|
||||
|
|
|
@ -355,6 +355,7 @@ extern cvar_t r_norefresh;
|
|||
extern cvar_t r_drawentities;
|
||||
extern cvar_t r_drawworld;
|
||||
extern cvar_t r_drawviewmodel;
|
||||
extern cvar_t r_drawviewmodelinvis;
|
||||
extern cvar_t r_speeds;
|
||||
extern cvar_t r_waterwarp;
|
||||
extern cvar_t r_fullbright;
|
||||
|
|
|
@ -27,6 +27,7 @@ unsigned int *d_8to32table = d_8to24bgrtable; //palette lookups while rendering
|
|||
//
|
||||
|
||||
cvar_t r_drawviewmodel = {"r_drawviewmodel","1"};
|
||||
cvar_t r_drawviewmodelinvis = {"r_drawviewmodelinvis", "0"};
|
||||
cvar_t r_netgraph = {"r_netgraph","0"};
|
||||
cvar_t r_speeds = {"r_speeds","0", NULL, CVAR_CHEAT};
|
||||
cvar_t r_waterwarp = {"r_waterwarp","1"};
|
||||
|
@ -501,6 +502,7 @@ void Renderer_Init(void)
|
|||
Cvar_Register (&r_fullbright, SCREENOPTIONS);
|
||||
Cvar_Register (&r_drawentities, GRAPHICALNICETIES);
|
||||
Cvar_Register (&r_drawviewmodel, GRAPHICALNICETIES);
|
||||
Cvar_Register (&r_drawviewmodelinvis, GRAPHICALNICETIES);
|
||||
Cvar_Register (&r_waterwarp, GRAPHICALNICETIES);
|
||||
Cvar_Register (&r_speeds, SCREENOPTIONS);
|
||||
Cvar_Register (&r_netgraph, SCREENOPTIONS);
|
||||
|
|
|
@ -517,16 +517,27 @@ void Mod_ParseInfoFromEntityLump(char *data) //actually, this should be in the m
|
|||
{
|
||||
Q_strncpyz(skyname, com_token, sizeof(skyname));
|
||||
}
|
||||
else if (!strcmp("skyrotate", key) || !strcmp("skyrotate", key))
|
||||
else if (!strcmp("skyrotate", key))
|
||||
{
|
||||
skyrotate = atof(com_token);
|
||||
}
|
||||
else if (!strcmp("skyaxis", key))
|
||||
{
|
||||
char *s;
|
||||
Q_strncpyz(key, com_token, sizeof(key));
|
||||
s = COM_Parse(key);
|
||||
skyaxis[0] = atof(s);
|
||||
s = COM_Parse(s);
|
||||
skyaxis[1] = atof(s);
|
||||
COM_Parse(s);
|
||||
skyaxis[2] = atof(s);
|
||||
if (s)
|
||||
{
|
||||
skyaxis[0] = atof(s);
|
||||
s = COM_Parse(s);
|
||||
if (s)
|
||||
{
|
||||
skyaxis[1] = atof(s);
|
||||
COM_Parse(s);
|
||||
if (s)
|
||||
skyaxis[2] = atof(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3053,4 +3053,3 @@ int build_number( void )
|
|||
|
||||
return b;
|
||||
}
|
||||
|
||||
|
|
|
@ -74,8 +74,8 @@ extern conchar_t q3codemasks[MAXQ3COLOURS];
|
|||
#define S_COLOR_GREEN "^2"
|
||||
#define S_COLOR_YELLOW "^3"
|
||||
#define S_COLOR_BLUE "^4"
|
||||
#define S_COLOR_MAGENTA "^5"
|
||||
#define S_COLOR_CYAN "^6"
|
||||
#define S_COLOR_CYAN "^5"
|
||||
#define S_COLOR_MAGENTA "^6"
|
||||
#define S_COLOR_WHITE "^7"
|
||||
|
||||
#define CON_TEXTSIZE 16384
|
||||
|
|
Loading…
Reference in a new issue