From f08ada116dc5baeeec8959d3e62fe6c9d82e4466 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 2 May 2011 20:05:38 +0300 Subject: [PATCH] Run the camera effect when fake prey too --- data/qcsrc/server/vore.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2