r2066 - branches/nexuiz-2.0/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Dec 23 13:32:32 EST 2006
Author: div0
Date: 2006-12-23 13:32:32 -0500 (Sat, 23 Dec 2006)
New Revision: 2066
Modified:
branches/nexuiz-2.0/data/qcsrc/server/sv_main.qc
Log:
falling damage fix
Modified: branches/nexuiz-2.0/data/qcsrc/server/sv_main.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/sv_main.qc 2006-12-23 18:31:57 UTC (rev 2065)
+++ branches/nexuiz-2.0/data/qcsrc/server/sv_main.qc 2006-12-23 18:32:32 UTC (rev 2066)
@@ -73,7 +73,7 @@
// check for falling damage
if(!self.hook.state)
{
- dm = vlen(self.velocity - self.oldvelocity);
+ dm = vlen(self.oldvelocity) - vlen(self.velocity); // dm is now the velocity DECREASE. Velocity INCREASE should never cause a sound.
if (self.deadflag)
dm = (dm - cvar("g_balance_falldamage_deadminspeed")) * cvar("g_balance_falldamage_factor");
else
More information about the nexuiz-commits
mailing list