]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't let the engine increase player's glowmod 806/head
authorterencehill <piuntn@gmail.com>
Sat, 12 Dec 2020 17:37:41 +0000 (18:37 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 12 Dec 2020 17:37:41 +0000 (18:37 +0100)
qcsrc/client/csqcmodel_hooks.qc
qcsrc/client/csqcmodel_hooks.qh

index 70b5b59b537c66f3032ce9bbb4575971c9fac8b4..21b3c7780e001ad4838394f6c5a9879659c2d411 100644 (file)
@@ -317,6 +317,10 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer)
                }
        }
 
+       // don't let the engine increase player's glowmod
+       if (autocvar_r_hdr_glowintensity > 1)
+               this.glowmod /= autocvar_r_hdr_glowintensity;
+
        //printf("CSQCPlayer_ModelAppearance_Apply(): state = %s, colormap = %f, glowmod = %s\n", (this.csqcmodel_isdead ? "DEAD" : "ALIVE"), this.colormap, vtos(this.glowmod));
 }
 
index dd10112d73634822347de0df314d3e0ff290aace..3f2b5192f6750aeb2dda83fd7eafb5659177d69d 100644 (file)
@@ -16,6 +16,7 @@ string autocvar__cl_playermodel;
 float autocvar_cl_deathglow;
 float autocvar_cl_deathglow_min = 0.5;
 float autocvar_cl_jetpack_attenuation = 2;
+float autocvar_r_hdr_glowintensity;
 
 // FEATURE: EF_NODRAW workalike
 const int EF_BRIGHTFIELD       = BIT(0);