From: Samual Lenks Date: Sat, 1 Jun 2013 04:10:37 +0000 (-0400) Subject: More cleanup X-Git-Tag: xonotic-v0.7.0~24^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=51086b4545acc961d03eb8091669d9963fa6bf00;p=xonotic%2Fxonotic-data.pk3dir.git More cleanup --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 32ba8ddec..a3e612062 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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