[nexuiz-commits] r8700 - trunk/data/qcsrc/warpzonelib
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Feb 28 14:43:27 EST 2010
Author: div0
Date: 2010-02-28 14:43:27 -0500 (Sun, 28 Feb 2010)
New Revision: 8700
Modified:
trunk/data/qcsrc/warpzonelib/common.qc
Log:
warpzone: fix nex shot origin
Modified: trunk/data/qcsrc/warpzonelib/common.qc
===================================================================
--- trunk/data/qcsrc/warpzonelib/common.qc 2010-02-28 19:43:22 UTC (rev 8699)
+++ trunk/data/qcsrc/warpzonelib/common.qc 2010-02-28 19:43:27 UTC (rev 8700)
@@ -85,9 +85,13 @@
{
float frac, sol;
vector o0, e0;
+ vector vf, vr, vu;
+ vf = v_forward;
+ vr = v_right;
+ vu = v_up;
+ WarpZone_MakeAllSolid();
o0 = org;
e0 = end;
- WarpZone_MakeAllSolid();
sol = -1;
frac = 0;
for(;;)
@@ -106,6 +110,9 @@
}
WarpZone_MakeAllOther();
WarpZone_trace_endpos = o0 + (e0 - o0) * trace_fraction;
+ v_forward = vf;
+ v_right = vr;
+ v_up = vu;
}
void WarpZone_TraceLine(vector org, vector end, float nomonsters, entity forent)
@@ -116,6 +123,10 @@
void WarpZone_TrailParticles(entity own, float eff, vector org, vector end)
{
float frac, sol;
+ vector vf, vr, vu;
+ vf = v_forward;
+ vr = v_right;
+ vu = v_up;
WarpZone_MakeAllSolid();
sol = -1;
frac = 0;
@@ -135,6 +146,9 @@
end = WarpZone_TransformOrigin(trace_ent, end);
}
WarpZone_MakeAllOther();
+ v_forward = vf;
+ v_right = vr;
+ v_up = vu;
}
vector WarpZone_TransformOrigin(entity wz, vector v)
More information about the nexuiz-commits
mailing list