From: MirceaKitsune Date: Tue, 7 Sep 2010 21:27:29 +0000 (+0300) Subject: Major improvement in the bot AI. Don't execute the rest of the Havocbot system for... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b250293cae09ed83df265649aac169091b44376b;p=voretournament%2Fvoretournament.git Major improvement in the bot AI. Don't execute the rest of the Havocbot system for eaten bots, since all they can do is kick in the stomach and stuff. This might even fix some small bot issues... --- diff --git a/data/qcsrc/server/bot/havocbot/havocbot.qc b/data/qcsrc/server/bot/havocbot/havocbot.qc index 12287191..6dedecdc 100644 --- a/data/qcsrc/server/bot/havocbot/havocbot.qc +++ b/data/qcsrc/server/bot/havocbot/havocbot.qc @@ -14,6 +14,11 @@ void havocbot_ai() if(bot_execute_commands()) return; + // execute the vore AI for bots + Vore_AI(); + if(self.eater.classname == "player") + return; // an eaten bot has nothing he can do outside of the vore AI + if (bot_strategytoken == self) if (!bot_strategytoken_taken) { @@ -79,8 +84,6 @@ void havocbot_ai() if(self.deadflag != DEAD_NO) return; - Vore_AI(); - havocbot_chooseenemy(); if (self.bot_chooseweapontime < time ) {