From 765a47e6eabc026a6044a143716ca5c77005f864 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 29 Apr 2011 22:20:02 +0200 Subject: [PATCH] use CL_RotateMoves builtin (FIXME: to be documented) to make warps smoother --- qcsrc/warpzonelib/client.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/warpzonelib/client.qc b/qcsrc/warpzonelib/client.qc index 39df6df90..4b36b4651 100644 --- a/qcsrc/warpzonelib/client.qc +++ b/qcsrc/warpzonelib/client.qc @@ -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; -- 2.39.2