r3140 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jan 13 19:25:45 EST 2008
Author: div0
Date: 2008-01-13 19:25:44 -0500 (Sun, 13 Jan 2008)
New Revision: 3140
Modified:
trunk/data/qcsrc/server/cl_weaponsystem.qc
Log:
oops... cl_movement 1 should be supported, not 0
Modified: trunk/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weaponsystem.qc 2008-01-13 23:49:50 UTC (rev 3139)
+++ trunk/data/qcsrc/server/cl_weaponsystem.qc 2008-01-14 00:25:44 UTC (rev 3140)
@@ -59,24 +59,21 @@
if (trace_ent == self.cursor_trace_ent)
{
// verify that the shot would hit in the past
- antilag_takeback(self, time - self.ping * 0.001);
antilag_takeback(self.cursor_trace_ent, time - self.ping * 0.001);
- //te_spark(self.origin, '0 0 0', 1000);
- //te_spark(self.cursor_trace_ent.origin, '0 0 0', 1000);
-
traceline_hitcorpse(self, self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * MAX_SHOT_DISTANCE, MOVE_NORMAL, self);
-
- antilag_restore(self);
- antilag_restore(self.cursor_trace_ent);
-
if(trace_ent == self.cursor_trace_ent)
+ {
+ // HIT!
w_shotdir = normalize(self.cursor_trace_ent.origin - w_shotorg);
+ }
else
{
- // wallhack or odd network conditions
+ // prydon cursor aimbot or odd network conditions
dprint("WARNING: antilag ghost trace for ", self.netname, " failed!\n");
}
+
+ antilag_restore(self.cursor_trace_ent);
}
}
}
More information about the nexuiz-commits
mailing list