]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
More cleanup
authorSamual Lenks <samual@xonotic.org>
Sat, 1 Jun 2013 04:10:37 +0000 (00:10 -0400)
committerSamual Lenks <samual@xonotic.org>
Sat, 1 Jun 2013 04:10:37 +0000 (00:10 -0400)
qcsrc/client/csqcmodel_hooks.qc

index 32ba8ddec5cd7fd14ca2c4f08b3f077f8b84e21b..a3e612062f903abd4de191b5e70d38b612c503e3 100644 (file)
@@ -279,19 +279,19 @@ void CSQCPlayer_ModelAppearance_Apply(float islocalplayer)
        {
                if(self.csqcmodel_isdead)
                {
+                       // Fade out to black now...
                        if(self.old_glowmod == '0 0 0') { self.old_glowmod = self.glowmod; }
                        self.colormap = 0;
+                       
                        self.glowmod = self.old_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);
                        self.glowmod_y = max(self.glowmod_y, 0.0001);
                        self.glowmod_z = max(self.glowmod_z, 0.0001);
                }
                else if(self.old_glowmod != '0 0 0') { self.old_glowmod = '0 0 0'; }
        }
-       //self.colormap = selected_colormap;
 
-       print(sprintf("CSQCPlayer_ModelAppearance_Apply(): state = %s, colormap = %f, glowmod = %s\n", (self.csqcmodel_isdead ? "DEAD" : "ALIVE"), self.colormap, vtos(self.glowmod)));
+       //print(sprintf("CSQCPlayer_ModelAppearance_Apply(): state = %s, colormap = %f, glowmod = %s\n", (self.csqcmodel_isdead ? "DEAD" : "ALIVE"), self.colormap, vtos(self.glowmod)));
 }
 
 /*// FEATURE: auto glowmod