Add cvar ftebug_checkpvs, to see work around something that hasn't been
fixed yet.
This commit is contained in:
parent
b0755d36cb
commit
97bc849abe
3 changed files with 12 additions and 5 deletions
|
@ -31,7 +31,7 @@ Font_LoadFont(string filename)
|
|||
|
||||
string font = "gfx/conchars";
|
||||
string size = "8";
|
||||
string shortname "";
|
||||
string shortname = "";
|
||||
|
||||
while ((line = fgets(fs_font))) {
|
||||
int c = tokenize_console(line);
|
||||
|
|
|
@ -66,12 +66,8 @@ env_glow::predraw(void)
|
|||
pSeat = &g_seats[s];
|
||||
vecPlayer = pSeat->m_vecPredictedOrigin;
|
||||
|
||||
#warning "FTE broke this completely, in Half-Life BSP, partially in Q3 BSP, consult engine guru"
|
||||
/* FIXME: READ ABOVE WARNING */
|
||||
#if 0
|
||||
if (checkpvs(vecPlayer, this) == FALSE)
|
||||
return (PREDRAW_NEXT);
|
||||
#endif
|
||||
|
||||
other = world;
|
||||
traceline(this.origin, vecPlayer, MOVE_OTHERONLY, this);
|
||||
|
|
|
@ -107,6 +107,17 @@ precache_model(string m)
|
|||
return prior(m);
|
||||
}
|
||||
|
||||
/* fun little hack for us engine bug lovers */
|
||||
var int autocvar_ftebug_checkpvs = 1;
|
||||
__wrap float
|
||||
checkpvs(vector viewpos, entity ent)
|
||||
{
|
||||
if (autocvar_ftebug_checkpvs)
|
||||
return 1;
|
||||
else
|
||||
return prior(viewpos, ent);
|
||||
}
|
||||
|
||||
__wrap void
|
||||
setmodel(entity ent, string mname)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue