From: MirceaKitsune Date: Mon, 6 Sep 2010 11:24:47 +0000 (+0300) Subject: Fix some issues with the view offset code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4b192ec2f9e09a9a312a72f6ef8bc041651ffb35;p=voretournament%2Fvoretournament.git Fix some issues with the view offset code --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 9dfb21fe..26f68af7 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -111,9 +111,6 @@ void Vore_Swallow(entity e) e.alpha = -1; // best way of hiding / showing the eaten player e.aiment = e.eater; // follow the predator. Is automatically unset - /*e.cameraeffect_current = e.view_ofs_z * 2; - e.cameraeffect_target = e.view_ofs_z / 2; // best positioning for the stomach model*/ - Vore_CameraEffect_Set(e); // drop keys (KH) and flags (CTF) when we get swallowed @@ -142,8 +139,6 @@ void Vore_Regurgitate(entity e) e.view_ofs_z = e.vore_oldview_ofs_z; e.alpha = default_player_alpha; // best way of hiding / showing the eaten player - //e.view_ofs_z *= 2; // best positioning for the stomach model - // velocities local vector oldforward, oldright, oldup; oldforward = v_forward; @@ -176,7 +171,7 @@ void Vore_Disconnect() // prey disconnects or goes spectating while inside someone's belly: if(self.eater.classname == "player") { - self.view_ofs_z += 25; + self.view_ofs_z = self.vore_oldview_ofs_z; self.eater.stomach_load -= 1; Vore_Weight_apply(self.eater); self.eater = world;