]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/havocbot.qc
Major improvement in the bot AI. Don't execute the rest of the Havocbot system for...
[voretournament/voretournament.git] / data / qcsrc / server / bot / havocbot / havocbot.qc
index 122871914265e35b102f71eaa52bd0f942af3731..6dedecdc4bdd1b7d8333107a5a126ace157c4167 100644 (file)
@@ -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 )
        {