[nexuiz-commits] r8732 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Feb 28 14:46:41 EST 2010


Author: div0
Date: 2010-02-28 14:46:40 -0500 (Sun, 28 Feb 2010)
New Revision: 8732

Modified:
   trunk/data/qcsrc/server/miscfunctions.qc
Log:
fix cursor trace for chase cam

Modified: trunk/data/qcsrc/server/miscfunctions.qc
===================================================================
--- trunk/data/qcsrc/server/miscfunctions.qc	2010-02-28 19:46:36 UTC (rev 8731)
+++ trunk/data/qcsrc/server/miscfunctions.qc	2010-02-28 19:46:40 UTC (rev 8732)
@@ -11,8 +11,7 @@
 void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
 void WarpZone_crosshair_trace(entity pl)
 {
-	makevectors(pl.v_angle);
-	WarpZone_traceline_antilag(pl, pl.origin + pl.view_ofs, pl.origin + pl.view_ofs + v_forward * MAX_SHOT_DISTANCE, MOVE_NORMAL, pl, ANTILAG_LATENCY(pl));
+	WarpZone_traceline_antilag(pl, pl.cursor_trace_start, pl.cursor_trace_start + normalize(pl.cursor_trace_endpos - pl.cursor_trace_start) * MAX_SHOT_DISTANCE, MOVE_NORMAL, pl, ANTILAG_LATENCY(pl));
 }
 
 void() spawnfunc_info_player_deathmatch; // needed for the other spawnpoints



More information about the nexuiz-commits mailing list