From e7a2b55fb82c8df7600fc28e9163ed91bb6b15bc Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 13 Nov 2015 10:08:29 +1000 Subject: [PATCH] Add an option to control the color saturation of the beam --- qcsrc/common/weapons/weapon/vaporizer.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/vaporizer.qc b/qcsrc/common/weapons/weapon/vaporizer.qc index 0d8db3c58..dc449d35d 100644 --- a/qcsrc/common/weapons/weapon/vaporizer.qc +++ b/qcsrc/common/weapons/weapon/vaporizer.qc @@ -77,6 +77,7 @@ void SendCSQCVaporizerBeamParticle(entity player, int hit) { #elif defined(CSQC) bool autocvar_cl_vaporizerbeam_particle = false; float autocvar_cl_vaporizerbeam_lifetime = 0.8; +float autocvar_cl_vaporizerbeam_colorboost = 0.7; string Draw_VaporizerBeam_trace_callback_tex; float Draw_VaporizerBeam_trace_callback_rnd; @@ -103,7 +104,7 @@ void VaporizerBeam_Draw(entity this) if(this.cnt) tex = "particles/gauntletbeam"; vector rgb = getcsqcplayercolor(this.sv_entnum); - rgb *= (1 + 0.7); + rgb *= (1 + autocvar_cl_vaporizerbeam_colorboost); float fail = (self.nextthink - time); -- 2.39.2