From 936b5637cbaf49ced0a6a67b9f443738cc8be576 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 7 Sep 2010 03:56:37 +0300 Subject: [PATCH] Remove code for an outdated feature --- data/defaultVoretournament.cfg | 1 - data/qcsrc/server/bot/havocbot/vore_ai.qc | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index cb62710a..5026bf26 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -350,7 +350,6 @@ 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_giveuphealth 50 "If a bot is inside the stomach, having less than this amount of health causes them to give up and trigger digestion, at lowest skill" set bot_ai_vore_decide_fear 2 "How much bots will fear players more powerful than them, and therefore avoid them in some situations" set bot_god 0 "god mode for bots" set bot_ai_navigation_jetpack 0 "Enable bots to navigat maps using the jetpack" diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index a115dd4a..728580fe 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -91,7 +91,7 @@ void Vore_AI() // Prey bot behavior: // -------------------------------- - // all we can do in the stomach is either kick and do some damage or trigger the predator's digestion when there's no chance to escape + // all we can do in the stomach is kick and do some damage / try to escape if(self.eater.classname == "player" && time > self.decide_delay2) { // the higher the skill, the more the bot will kick in your stomack @@ -99,12 +99,6 @@ void Vore_AI() if(self.team != self.eater.team) // if someone from the same team somehow made it in the belly, don't kick the eater self.BUTTON_ATCK = TRUE; // kick - // if the bot's health is smaller than this, the bot gives up and triggers your digestion upon them - // the higher the skill, the harder the bot will give up - else if(self.health < cvar("bot_ai_vore_decide_giveuphealth") / (skill + 1) && !self.eater.digesting) - if not(self.eater.digesting) // already happening so don't bother - self.BUTTON_ATCK2 = TRUE; // trigger digestion - - self.decide_delay2 = time + decide_prey; // time before the bot decides what to do with their predator + self.decide_delay2 = time + decide_prey; // time before the bot decides what to do with their predator } } \ No newline at end of file -- 2.39.2