[nexuiz-commits] r7799 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Sep 15 04:58:47 EDT 2009
Author: div0
Date: 2009-09-15 04:58:47 -0400 (Tue, 15 Sep 2009)
New Revision: 7799
Modified:
trunk/data/qcsrc/server/cl_weaponsystem.qc
Log:
fix hit contents mask attempt
Modified: trunk/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weaponsystem.qc 2009-09-15 08:35:39 UTC (rev 7798)
+++ trunk/data/qcsrc/server/cl_weaponsystem.qc 2009-09-15 08:58:47 UTC (rev 7799)
@@ -139,9 +139,11 @@
else
ent.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE;
if(antilag)
- traceline_antilag(ent, ent.origin + ent.view_ofs, ent.origin + ent.view_ofs + s_forward * MAX_SHOT_DISTANCE, MOVE_NORMAL, ent, ANTILAG_LATENCY(ent));
+ traceline_antilag(world, ent.origin + ent.view_ofs, ent.origin + ent.view_ofs + s_forward * MAX_SHOT_DISTANCE, MOVE_NORMAL, ent, ANTILAG_LATENCY(ent));
+ // passing world, because we do NOT want it to touch dphitcontentsmask
else
traceline(ent.origin + ent.view_ofs, ent.origin + ent.view_ofs + s_forward * MAX_SHOT_DISTANCE, MOVE_NOMONSTERS, ent);
+ ent.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE;
trueaimpoint = trace_endpos;
// Track max damage and set the stat to be sent later in g_world.qc
More information about the nexuiz-commits
mailing list