From: Mario Date: Fri, 13 Nov 2015 00:08:29 +0000 (+1000) Subject: Add an option to control the color saturation of the beam X-Git-Tag: xonotic-v0.8.2~1671 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7a2b55fb82c8df7600fc28e9163ed91bb6b15bc;p=xonotic%2Fxonotic-data.pk3dir.git Add an option to control the color saturation of the beam --- 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);