]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/warpzonelib/client.qc
properly draw the hook through warpzones again too; fix interpolation issues
[xonotic/xonotic-data.pk3dir.git] / qcsrc / warpzonelib / client.qc
index 773e90d5ecd655752f4fa02ca10ac2e36f951361..e52c0d7ce8e328c03ac41a7e4b7c187a603b1ba9 100644 (file)
@@ -34,7 +34,6 @@ void WarpZone_Read(float isnew)
        WarpZone_SetUp(self, self.enemy.oldorigin, self.enemy.avelocity, self.oldorigin, self.avelocity);
 
        // engine currently wants this
-       self.avelocity = AnglesTransform_TurnDirectionFR(self.avelocity);
        self.drawmask = MASK_NORMAL;
 
        // link me
@@ -43,14 +42,6 @@ void WarpZone_Read(float isnew)
        setsize(self, self.mins, self.maxs);
 }
 
-vector WarpZone_Camera_camera_transform(vector org, vector ang)
-{
-       // a fixed camera view
-       trace_endpos = self.oldorigin;
-       makevectors(self.avelocity);
-       return self.oldorigin;
-}
-
 void WarpZone_Camera_Read(float isnew)
 {
        self.classname = "func_warpzone_camera";
@@ -72,9 +63,11 @@ void WarpZone_Camera_Read(float isnew)
        self.avelocity_y = ReadCoord();
        self.avelocity_z = ReadCoord();
 
+       // common stuff
+       WarpZone_Camera_SetUp(self, self.oldorigin, self.avelocity);
+
        // engine currently wants this
        self.drawmask = MASK_NORMAL;
-       self.camera_transform = WarpZone_Camera_camera_transform;
 
        // link me
        //setmodel(self, self.model);