From: Rudolf Polzer Date: Fri, 29 Apr 2011 20:20:02 +0000 (+0200) Subject: use CL_RotateMoves builtin (FIXME: to be documented) to make warps smoother X-Git-Tag: xonotic-v0.5.0~264^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=765a47e6eabc026a6044a143716ca5c77005f864;p=xonotic%2Fxonotic-data.pk3dir.git use CL_RotateMoves builtin (FIXME: to be documented) to make warps smoother --- 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;