From 49188a608a64dfbdb5f1571c5e0bbf214da6fbf7 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sun, 18 Jul 2010 17:39:53 +0300 Subject: [PATCH] frametime dependency --- defaultXonotic.cfg | 2 +- qcsrc/server/cl_client.qc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index b521422a0..eba5ca9f1 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -849,7 +849,7 @@ set g_bloodloss 0 "amount of health below which blood loss occurs" set g_footsteps 0 "serverside footstep sounds" -set g_deathglow 0.02 "when enabled, players stop glowing after they die (the value specifies glow fading speed)" +set g_deathglow 1.25 "when enabled, players stop glowing after they die (the value specifies glow fading speed)" // effects r_picmipsprites 0 // Xonotic uses sprites that should never be picmipped (team mate, typing, waypoints) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index eba860e44..1543ac156 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -2602,15 +2602,15 @@ void PlayerPreThink (void) if(self.health <= 0 && cvar("g_deathglow")) { if(self.glowmod_x > 0) - self.glowmod_x -= cvar("g_deathglow"); + self.glowmod_x -= cvar("g_deathglow") * frametime; else self.glowmod_x = -1; if(self.glowmod_y > 0) - self.glowmod_y -= cvar("g_deathglow"); + self.glowmod_y -= cvar("g_deathglow") * frametime; else self.glowmod_y = -1; if(self.glowmod_z > 0) - self.glowmod_z -= cvar("g_deathglow"); + self.glowmod_z -= cvar("g_deathglow") * frametime; else self.glowmod_z = -1; } -- 2.39.2