Client: add r_skipFlares cvar.
This commit is contained in:
parent
ce02de7eff
commit
f1f12623d1
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,8 @@ Client-side glare/glow orb effect like the flares in 1997's Unreal.
|
|||
This entity was introduced in Half-Life (1998).
|
||||
*/
|
||||
|
||||
var int autocvar_r_skipFlares = 0;
|
||||
|
||||
class env_glow:NSEntity /* change to renderablentity? */
|
||||
{
|
||||
vector m_vecColor;
|
||||
|
@ -72,6 +74,9 @@ env_glow::predraw(void)
|
|||
vector fsize;
|
||||
vector vecPlayer;
|
||||
|
||||
if (autocvar_r_skipFlares)
|
||||
return PREDRAW_NEXT;
|
||||
|
||||
int s = (float)getproperty(VF_ACTIVESEAT);
|
||||
pSeat = &g_seats[s];
|
||||
vecPlayer = pSeat->m_vecPredictedOrigin;
|
||||
|
|
Loading…
Reference in a new issue