]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Try setting colormod for the deathfade function
authorSamual Lenks <samual@xonotic.org>
Tue, 7 May 2013 05:07:48 +0000 (01:07 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 7 May 2013 05:07:48 +0000 (01:07 -0400)
qcsrc/client/csqcmodel_hooks.qc

index 109b83d166f11a8efe597f1173c76c5cda1aef59..c7e6da95f933e5d19da0f7d0e577303648d7b48c 100644 (file)
@@ -569,6 +569,7 @@ void CSQCPlayer_GlowMod_Apply(void)
        if(autocvar_cl_deathglow > 0)
                if(self.csqcmodel_isdead)
                {
+                       self.colormod = '1 1 1';
                        self.glowmod = self.glowmod * bound(0, 1 - (time - self.death_time) / autocvar_cl_deathglow, 1);
                        // prevent the zero vector
                        self.glowmod_x = max(self.glowmod_x, 0.0001);