r3350 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Feb 9 10:36:11 EST 2008
Author: div0
Date: 2008-02-09 10:36:09 -0500 (Sat, 09 Feb 2008)
New Revision: 3350
Modified:
trunk/data/qcsrc/server/cl_player.qc
Log:
limit amount of damage gibs/blood to the one for 200 damage (no weapon goes over 200 damage). Fixes HUGE fps drops when team changing.
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2008-02-09 15:29:36 UTC (rev 3349)
+++ trunk/data/qcsrc/server/cl_player.qc 2008-02-09 15:36:09 UTC (rev 3350)
@@ -264,7 +264,7 @@
void PlayerCorpseDamage (entity inflictor, entity attacker, float damage, float deathtype, vector hitloc, vector force)
{
local float take, save;
- pointparticles(particleeffectnum("blood"), hitloc, force, damage);
+ pointparticles(particleeffectnum("blood"), hitloc, force, bound(0, damage, 200));
// damage resistance (ignore most of the damage from a bullet or similar)
damage = max(damage - 5, 1);
@@ -345,7 +345,7 @@
damage = damage * bound(1.0, self.cvar_cl_handicap, 100.0);
- pointparticles(particleeffectnum("blood"), hitloc, force, damage);
+ pointparticles(particleeffectnum("blood"), hitloc, force, bound(0, damage, 200));
if (self.pain_finished < time) //Don't switch pain sequences like crazy
{
if (random() > 0.5)
More information about the nexuiz-commits
mailing list