set g_footsteps 0 "serverside footstep sounds"
+set g_deathglow 0.05 "the glow of a player slowly decreases to black after they die"
+
// effects
r_picmipsprites 0 // Xonotic uses sprites that should never be picmipped (team mate, typing, waypoints)
r_mipsprites 1
if(frametime)
{
- self.glowmod = colormapPaletteColor(self.clientcolors & 0x0F, TRUE) * 2;
+ if(self.health <= 0 && cvar("g_deathglow"))
+ {
+ if(self.glowmod_x > 0)
+ self.glowmod_x -= cvar("g_deathglow");
+ else
+ self.glowmod_x = 0;
+ if(self.glowmod_y > 0)
+ self.glowmod_y -= cvar("g_deathglow");
+ else
+ self.glowmod_y = 0;
+ if(self.glowmod_z > 0)
+ self.glowmod_z -= cvar("g_deathglow");
+ else
+ self.glowmod_z = 0;
+ }
+ else
+ self.glowmod = colormapPaletteColor(self.clientcolors & 0x0F, TRUE) * 2;
player_powerups();
}