From 46bc3e1ddc14abc09d929b66ad54966a36ee1e4b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 30 Sep 2010 03:57:12 +0300 Subject: [PATCH] Move a check in the proper place --- data/qcsrc/server/vore.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 30d28403..3c48f439 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -30,6 +30,7 @@ float Swallow_condition_check(entity prey) if(prey != self) if(prey.classname == "player" && prey.predator.classname != "player" && prey.deadflag == DEAD_NO) // we can't swallow someone who's already in someone else's stomach if(self.classname == "player" && self.predator.classname != "player" && self.deadflag == DEAD_NO) // we can't swallow players while inside someone's stomach ourselves + if(!self.BUTTON_REGURGITATE && self.swallow_delay < time) if not(vlen(self.velocity) > cvar("g_balance_vore_regurgitate_speedcap")) { if(teams_matter && prey.team == self.team && !cvar("g_vore_teamvore")) @@ -384,7 +385,7 @@ void Vore() prey = Swallow_player_check(); // attempt to swallow our new prey if we pressed the attack button, and there's any in range - if(self.BUTTON_ATCK && !self.BUTTON_REGURGITATE && self.swallow_delay < time) + if(self.BUTTON_ATCK) if(Swallow_condition_check(prey)) Vore_Swallow(prey); -- 2.39.2