From: MirceaKitsune Date: Mon, 2 May 2011 17:05:38 +0000 (+0300) Subject: Run the camera effect when fake prey too X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f08ada116dc5baeeec8959d3e62fe6c9d82e4466;p=voretournament%2Fvoretournament.git Run the camera effect when fake prey too --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 9837a563..7a1d2215 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -124,7 +124,7 @@ void Vore_CameraEffect_Set(entity e) } void Vore_CameraEffect_Apply() { - if(self.predator.classname != "player") + if not(self.predator.classname == "player" || self.fakeprey) return; if(self.cvar_cl_vore_cameraspeed) @@ -623,6 +623,8 @@ void Vore() // Code that addresses the prey: // -------------------------------- + Vore_CameraEffect_Apply(); + // keepdeadprey - detach dead prey if their predator died or got swallowed if(self.fakepredator.classname == "player") if(self.fakepredator.deadflag != DEAD_NO || self.fakepredator.predator.classname == "player") @@ -663,8 +665,6 @@ void Vore() if(self.BUTTON_JUMP) Vore_StomachLeave(); - Vore_CameraEffect_Apply(); - // Ugly workaround for a Keyhunt issue. Your team's key can still be given to you while in the stomach // (at round start), which is pretty ugly and wrong. So attempt to drop keys each frame for prey kh_Key_DropAll(self, FALSE);