Added cl_bonusflash (0 = turn off item pickup flashes). Sorry, just couldn't help it :)

This commit is contained in:
Anton E. Gavrilov 2000-05-06 16:12:21 +00:00
parent b67bbe5b53
commit 17270f94ba
3 changed files with 7 additions and 0 deletions

View file

@ -133,6 +133,7 @@ cvar_t *cl_solid_players;
cvar_t *cl_verstring;
cvar_t *cl_talksound;
cvar_t *cl_bonusflash;
cvar_t *cl_muzzleflash;
cvar_t *cl_rocketlight;
@ -1860,6 +1861,8 @@ void CL_InitCvars()
cl_talksound = Cvar_Get ("cl_talksound", "misc/talk.wav", CVAR_NONE,
"Sets the sound used for talk messages");
cl_bonusflash = Cvar_Get ("cl_bonusflash", "1", CVAR_NONE,
"Toggle light flashes on item pickup");
cl_muzzleflash = Cvar_Get ("cl_muzzleflash", "1", CVAR_NONE,
"Muzzleflashes: 0 - off, 1 - none, 2 - own off");
cl_rocketlight = Cvar_Get ("cl_rocketlight", "1", CVAR_NONE,

View file

@ -385,6 +385,7 @@ extern cvar_t *cl_pitchdriftspeed;
extern cvar_t *cl_verstring;
extern cvar_t *cl_talksound;
extern cvar_t *cl_bonusflash;
extern cvar_t *cl_muzzleflash;
extern cvar_t *cl_rocketlight;

View file

@ -429,6 +429,9 @@ V_cshift_f ( void )
void
V_BonusFlash_f ( void )
{
if (!cl_bonusflash->value)
return;
cl.cshifts[CSHIFT_BONUS].destcolor[0] = 215;
cl.cshifts[CSHIFT_BONUS].destcolor[1] = 186;
cl.cshifts[CSHIFT_BONUS].destcolor[2] = 69;