------------------------------------------------------------------------

r4229 | acceptthis | 2013-02-27 12:07:51 +0000 (Wed, 27 Feb 2013) | 1 line

Added gl_shaftlight cvar.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4225 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-03-12 23:10:12 +00:00
parent a3bb0b7567
commit 61b833e665
1 changed files with 3 additions and 1 deletions

View File

@ -228,6 +228,7 @@ cvar_t r_explosionlight = CVARFC("r_explosionlight", "1", CVAR_ARCHIVE, Cvar_Li
cvar_t cl_truelightning = CVARF("cl_truelightning", "0", CVAR_SEMICHEAT);
cvar_t cl_beam_trace = CVAR("cl_beam_trace", "0");
cvar_t cl_legacystains = CVARD("cl_legacystains", "1", "WARNING: this cvar will default to 0 and later removed at some point"); //FIXME: do as the description says!
cvar_t cl_shaftlight = {"gl_shaftlight", "0.8"};
typedef struct {
sfx_t **sfx;
@ -344,6 +345,7 @@ void CL_InitTEnts (void)
Cvar_Register (&cl_beam_trace, "Temporary entity control");
Cvar_Register (&r_explosionlight, "Temporary entity control");
Cvar_Register (&cl_legacystains, "Temporary entity control");
Cvar_Register (&cl_shaftlight, "Temporary entity control");
}
void CL_ShutdownTEnts (void)
@ -3241,7 +3243,7 @@ void CL_UpdateBeams (void)
VectorCopy (org, ent->origin);
ent->model = b->model;
ent->drawflags |= MLS_ABSLIGHT;
ent->abslight = 192;
ent->abslight = 64 + 128 * bound(0, cl_shaftlight.value, 1);
ent->shaderRGBAf[3] = b->alpha;
ent->angles[0] = -pitch;