r1851 - branches/nexuiz-2.0/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Aug 23 12:27:48 EDT 2006
Author: div0
Date: 2006-08-23 12:27:48 -0400 (Wed, 23 Aug 2006)
New Revision: 1851
Modified:
branches/nexuiz-2.0/data/qcsrc/server/cl_weaponsystem.qc
Log:
improved antilag
Modified: branches/nexuiz-2.0/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/cl_weaponsystem.qc 2006-08-23 16:27:29 UTC (rev 1850)
+++ branches/nexuiz-2.0/data/qcsrc/server/cl_weaponsystem.qc 2006-08-23 16:27:48 UTC (rev 1851)
@@ -30,9 +30,10 @@
// if aiming at a player and the original trace won't hit that player
// anymore, try aiming at the player's new position
if (antilag)
- if (self.cursor_trace_ent)
- if (self.cursor_trace_ent.takedamage)
- if (trace_ent != self.cursor_trace_ent)
+ if (!trace_ent.takedamage) // shot would miss without antilag
+ if (self.cursor_trace_ent) // but it HAD hit on the client
+ if (self.cursor_trace_ent.takedamage) // and even something evil
+ // if (trace_ent != self.cursor_trace_ent) // and it is different (redundant check, see takedamage)
if (cvar("g_antilag"))
trueaimpoint = self.cursor_trace_ent.origin;
More information about the nexuiz-commits
mailing list