X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fbot%2Fhavocbot%2Fvore_ai.qc;h=12039c4e86fd67b0f0166aab1012b833f7d31a32;hp=11ef8380c6952eb74300e4c62c903035756e1d30;hb=51830b8602df50cad9ca44363501777ce767d10b;hpb=20d30928e484064a7010869808950f30dde9ec5e diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 11ef8380..12039c4e 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -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))