]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/vaporizer.qc
Add an option to control the color saturation of the beam
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / vaporizer.qc
index 34c2ccd2be1cdbf7bf554638ee61f5e304071d82..dc449d35d0ae8d58a11f4f07d2d28e40eb2c0f70 100644 (file)
@@ -75,8 +75,9 @@ void SendCSQCVaporizerBeamParticle(entity player, int hit) {
        WriteByte(MSG_BROADCAST, player.team);
 }
 #elif defined(CSQC)
-bool autocvar_cl_vaporizerbeam_particle = true;
+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);