.float csqcmodel_saveframe4;
.float csqcmodel_framecount;
-.float csqcmodel_isdead; // for utility code
-
#define IS_DEAD_FRAME(f) ((f) == 0 || (f) == 1)
void CSQCPlayer_FallbackFrame_PreUpdate(void)
{
{
self.glowmod = self.glowmod * bound(0, 1 - (time - self.death_time) / autocvar_cl_deathglow, 1);
// prevent the zero vector
- if(self.glowmod_x == 0)
- self.glowmod_x = -1;
+ 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);
}
}