From: MirceaKitsune Date: Thu, 9 Sep 2010 15:08:22 +0000 (+0300) Subject: Fix a bug. Apparently this was conflicting with a float from another file, causing... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8bcb254ee44ce04e3f84b87a7f4be48e9178bdbf;p=voretournament%2Fvoretournament.git Fix a bug. Apparently this was conflicting with a float from another file, causing bots to be unable to eat most of the time --- diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index e3e24920..d8f7abd4 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -72,7 +72,7 @@ void Vore_AI_Teamheal(entity prey) self.BUTTON_ATCK = TRUE; // swallow the team mate } -.float swallow_delay, decide_delay1, decide_delay2; +.float swallow_retry, decide_delay1, decide_delay2; void Vore_AI() { // main vore AI code @@ -113,7 +113,7 @@ void Vore_AI() decide_prey = cvar("bot_ai_vore_decide_prey") / (skill * 2 + 1) / self.bot_vorethink; decide_pred = cvar("bot_ai_vore_decide_pred") / (skill * 2 + 1) / self.bot_vorethink; - if(time > self.swallow_delay) + if(time > self.swallow_retry) if(Swallow_condition_check_bot(prey)) { // the greater the skill, the higher the chance bots will swallow someone each attempt @@ -123,7 +123,7 @@ void Vore_AI() self.BUTTON_ATCK = TRUE; // swallow self.decide_delay1 = time + decide_pred; // time before the bot decides what to do with their prey } - self.swallow_delay = time + cvar("bot_ai_vore_decide_swallow") / (skill + 1); + self.swallow_retry = time + cvar("bot_ai_vore_decide_swallow") / (skill + 1); } // deciding what to do with a victim: