mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
Added cl_bonusflash (0 = turn off item pickup flashes). Sorry, just couldn't help it :)
This commit is contained in:
parent
b67bbe5b53
commit
17270f94ba
3 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue