]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/havocbot.qc
eater -> predator, because that's a more correct word
[voretournament/voretournament.git] / data / qcsrc / server / bot / havocbot / havocbot.qc
index 122871914265e35b102f71eaa52bd0f942af3731..62aa1d274c00b115fea67e87e93b5443c943560a 100644 (file)
@@ -14,6 +14,11 @@ void havocbot_ai()
        if(bot_execute_commands())
                return;
 
+       // execute the vore AI for bots
+       Vore_AI();
+       if(self.predator.classname == "player")
+               return; // an eaten bot has nothing to 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 )
        {