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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Feb 27 13:56:43 EST 2010


Author: div0
Date: 2010-02-27 13:56:43 -0500 (Sat, 27 Feb 2010)
New Revision: 8681

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

Modified: trunk/data/qcsrc/server/miscfunctions.qc
===================================================================
--- trunk/data/qcsrc/server/miscfunctions.qc	2010-02-27 18:48:48 UTC (rev 8680)
+++ trunk/data/qcsrc/server/miscfunctions.qc	2010-02-27 18:56:43 UTC (rev 8681)
@@ -6,8 +6,7 @@
 void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
 void crosshair_trace(entity pl)
 {
-	makevectors(pl.v_angle);
-	traceline_antilag(pl, pl.origin + pl.view_ofs, pl.origin + pl.view_ofs + v_forward * MAX_SHOT_DISTANCE, MOVE_NORMAL, pl, ANTILAG_LATENCY(pl));
+	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