From 17270f94ba1ca29258489d90892ee58d36ab84d6 Mon Sep 17 00:00:00 2001 From: "Anton E. Gavrilov" Date: Sat, 6 May 2000 16:12:21 +0000 Subject: [PATCH] Added cl_bonusflash (0 = turn off item pickup flashes). Sorry, just couldn't help it :) --- common/cl_main.c | 3 +++ common/client.h | 1 + common/view.c | 3 +++ 3 files changed, 7 insertions(+) diff --git a/common/cl_main.c b/common/cl_main.c index 4b193b0..18e5077 100644 --- a/common/cl_main.c +++ b/common/cl_main.c @@ -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, diff --git a/common/client.h b/common/client.h index ff925ec..6caa9fd 100644 --- a/common/client.h +++ b/common/client.h @@ -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; diff --git a/common/view.c b/common/view.c index c1ebd13..ca567db 100644 --- a/common/view.c +++ b/common/view.c @@ -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;