]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use CL_RotateMoves builtin (FIXME: to be documented) to make warps smoother
authorRudolf Polzer <divverent@alientrap.org>
Fri, 29 Apr 2011 20:20:02 +0000 (22:20 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 29 Apr 2011 20:20:12 +0000 (22:20 +0200)
qcsrc/warpzonelib/client.qc

index 39df6df90d1c26bf3c6d8a2b78914177548740b8..4b36b4651dc75efa463357b8f7d2405caaffcd05 100644 (file)
@@ -141,6 +141,7 @@ void WarpZone_Camera_Read(float isnew)
                self.drawmask = MASK_NORMAL;
 }
 
+void CL_RotateMoves(vector ang) = #638;
 void WarpZone_Teleported_Read(float isnew)
 {
        vector v;
@@ -152,6 +153,9 @@ void WarpZone_Teleported_Read(float isnew)
                return;
        self.warpzone_transform = v;
        R_SetView3fv(VF_CL_VIEWANGLES, WarpZone_TransformVAngles(self, R_SetView3fv(VF_CL_VIEWANGLES)));
+       if(checkextension("DP_CSQC_ROTATEMOVES"))
+               CL_RotateMoves(v);
+               //CL_RotateMoves('0 90 0');
 }
 
 float warpzone_fixingview;