]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/vore_ai.qc
Add a request made by several players; A way to disable digestion, for gentle vore...
[voretournament/voretournament.git] / data / qcsrc / server / bot / havocbot / vore_ai.qc
index 51a3ed393989c7fafaf9df4b3cab0c93ffd59571..7d99813ca98ed0996e7665ce502d30fb810a82c4 100644 (file)
@@ -126,7 +126,7 @@ void Vore_AI()
                decide_pred_time = cvar("bot_ai_vore_decide_pred") / skill / self.bot_vorethinkpred;
                decide_prey_time = cvar("bot_ai_vore_decide_prey") / skill / self.bot_vorethinkprey;
 
-               if(time > self.decide_swallow)
+               if(time > self.decide_swallow && cvar("g_vore_digestion"))
                if(Swallow_condition_check_bot(prey))
                {
                        // the greater the skill, the higher the chance bots will swallow someone each attempt
@@ -148,7 +148,7 @@ void Vore_AI()
                        if(self.health <= cvar("g_balance_vore_kick_damage_max"))
                                self.BUTTON_REGURGITATE = TRUE;
 
-                       else if(!self.digesting)
+                       else if(!self.digesting && cvar("g_vore_digestion"))
                        {
                                // the higher the skill, the faster bots will start to digest you
                                if not(g_rpg && cvar("g_rpg_botattack") < 2)
@@ -168,6 +168,7 @@ void Vore_AI()
        {
                // all we can do in the stomach is kick and do some damage / try to escape, or leave if the circumstances allow it and we should
 
+               if(cvar("g_vore_kick"))
                if not(g_rpg && cvar("g_rpg_botattack") < 2)
                if not(teams_matter && self.team == self.predator.team)
                {