]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/vore_ai.qc
3 vore personalities for bots (multiplied by the bot_ai_vore_* cvars)
[voretournament/voretournament.git] / data / qcsrc / server / bot / havocbot / vore_ai.qc
index 11ef8380c6952eb74300e4c62c903035756e1d30..12039c4e86fd67b0f0166aab1012b833f7d31a32 100644 (file)
@@ -36,7 +36,7 @@ void Vore_AI_Teamheal(entity prey)
        if(self.status_teamhealing > 1)
        if(Swallow_condition_check_bot(prey))
        if(prey.team != self.team)
-       if(random() * 10 < cvar("bot_ai_vore_decide_teamhealabandon") * skill) // there are 10 bot skill steps
+       if(random() * 10 < cvar("bot_ai_vore_decide_teamhealabandon") * skill / self.bot_voreteamheal) // there are 10 bot skill steps
                self.BUTTON_REGURGITATE = TRUE; // release the team mate
 
        entity head;
@@ -118,11 +118,11 @@ void Vore_AI()
 
        random_try = random() * 10; // there are 10 bot skill steps
        if(prey.items & IT_STRENGTH) // avoid eating bots that have the Strenght powerup
-               random_try /= cvar("bot_ai_vore_decide_fear");
+               random_try /= cvar("bot_ai_vore_decide_fear") * self.bot_vorefear;
        if(prey.items & IT_INVINCIBLE) // avoid eating bots that have the Invincible powerup
-               random_try /= cvar("bot_ai_vore_decide_fear");
-       decide_prey = cvar("bot_ai_vore_decide_prey") / (skill * 2 + 1);
-       decide_pred = cvar("bot_ai_vore_decide_pred") / (skill * 2 + 1);
+               random_try /= cvar("bot_ai_vore_decide_fear") * self.bot_vorefear;
+       decide_prey = cvar("bot_ai_vore_decide_prey") / (skill * 2 + 1) / self.bot_vorethink;
+       decide_pred = cvar("bot_ai_vore_decide_pred") / (skill * 2 + 1) / self.bot_vorethink;
 
        if(time > self.swallow_retry)
        if(Swallow_condition_check_bot(prey))