]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add an option to control the color saturation of the beam
authorMario <mario@smbclan.net>
Fri, 13 Nov 2015 00:08:29 +0000 (10:08 +1000)
committerMario <mario@smbclan.net>
Fri, 13 Nov 2015 00:08:29 +0000 (10:08 +1000)
qcsrc/common/weapons/weapon/vaporizer.qc

index 0d8db3c58dd890349af41655f6220b15a000f2f2..dc449d35d0ae8d58a11f4f07d2d28e40eb2c0f70 100644 (file)
@@ -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);