From 92047a7609ba33c768ac10eb2cd832d7fd1dbb5b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 9 Sep 2010 18:58:46 +0300 Subject: [PATCH] Don't base the swallowing re-check on skill, since its purpose is to prevent the decision from being taken each frame (and returning 1 very quickly) --- data/defaultVoretournament.cfg | 2 +- data/qcsrc/server/bot/havocbot/vore_ai.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 2945a4ff..c4a17bd1 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -350,7 +350,7 @@ set bot_ai_bunnyhop_stopdistance 220 "Stop jumping after reaching this distance set bot_ai_bunnyhop_firstjumpdelay 0.5 "Start running to the goal only if it was seen for more than N seconds" set bot_ai_vore_decide_pred 4 "How fast bots decide what to do with their prey, at lowest skill" set bot_ai_vore_decide_prey 4 "How fast bots decide what to do with their predator, at lowest skill" -set bot_ai_vore_decide_swallow 0.5 "How often bots try to swallow someone, at lowest skill" +set bot_ai_vore_decide_swallow 0.5 "How often bots try to swallow someone" set bot_ai_vore_fear 2 "How much bots will fear players more powerful than them, and therefore avoid them in some situations" set bot_ai_vore_teamhealabandon 0.75 "Probability (from 0 to 1) of the bot stopping a team heal when seeing a foe that they can vore, at highest skill" set bot_god 0 "god mode for bots" diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 2fdc0f9f..79291de2 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -123,7 +123,7 @@ void Vore_AI() self.BUTTON_ATCK = TRUE; // swallow self.decide_pred = time + decide_pred_time; // time before the bot decides what to do with their prey } - self.decide_swallow = time + cvar("bot_ai_vore_decide_swallow") / (skill + 1); + self.decide_swallow = time + cvar("bot_ai_vore_decide_swallow"); // this is needed to take decisions properly, otherwise the code would execute each frame and return 1 pretty soon } // deciding what to do with a victim: -- 2.39.2