Fix some issues with the view offset code
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 11:24:47 +0000 (14:24 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 11:24:47 +0000 (14:24 +0300)
data/qcsrc/server/vore.qc

index 9dfb21fe6afef659e4459abbdb129f03b348e8a8..26f68af702e85be06d5808f41180d3d92424a32e 100644 (file)
@@ -111,9 +111,6 @@ void Vore_Swallow(entity e)
        e.alpha = -1; // best way of hiding / showing the eaten player\r
        e.aiment = e.eater; // follow the predator. Is automatically unset\r
 \r
-       /*e.cameraeffect_current = e.view_ofs_z * 2;\r
-       e.cameraeffect_target = e.view_ofs_z / 2; // best positioning for the stomach model*/\r
-\r
        Vore_CameraEffect_Set(e);\r
 \r
        // drop keys (KH) and flags (CTF) when we get swallowed\r
@@ -142,8 +139,6 @@ void Vore_Regurgitate(entity e)
        e.view_ofs_z = e.vore_oldview_ofs_z;\r
        e.alpha = default_player_alpha; // best way of hiding / showing the eaten player\r
 \r
-       //e.view_ofs_z *= 2; // best positioning for the stomach model\r
-\r
        // velocities\r
        local vector oldforward, oldright, oldup;\r
        oldforward = v_forward;\r
@@ -176,7 +171,7 @@ void Vore_Disconnect()
        // prey disconnects or goes spectating while inside someone's belly:\r
        if(self.eater.classname == "player")\r
        {\r
-               self.view_ofs_z += 25;\r
+               self.view_ofs_z = self.vore_oldview_ofs_z;\r
                self.eater.stomach_load -= 1;\r
                Vore_Weight_apply(self.eater);\r
                self.eater = world;\r