From: MirceaKitsune Date: Wed, 8 Sep 2010 00:56:19 +0000 (+0300) Subject: Fix two cvar names X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=170548b78521e414c7af6fed52663c3b2554f679;p=voretournament%2Fvoretournament.git Fix two cvar names --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 2814de41..41704be8 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -350,8 +350,8 @@ set bot_ai_bunnyhop_stopdistance 220 "Stop jumping after reaching this distance set bot_ai_bunnyhop_firstjumpdelay 0.5 "Start running to the goal only if it was seen for more than N seconds" set bot_ai_vore_decide_pred 4 "How fast bots decide what to do with their prey, at lowest skill" set bot_ai_vore_decide_prey 4 "How fast bots decide what to do with their predator, at lowest skill" -set bot_ai_vore_decide_fear 2 "How much bots will fear players more powerful than them, and therefore avoid them in some situations" -set bot_ai_vore_decide_teamhealabandon 0.75 "Probability (from 0 to 1) of the bot stopping a team heal when seeing a foe that they can vore, at highest skill" +set bot_ai_vore_fear 2 "How much bots will fear players more powerful than them, and therefore avoid them in some situations" +set bot_ai_vore_teamhealabandon 0.75 "Probability (from 0 to 1) of the bot stopping a team heal when seeing a foe that they can vore, at highest skill" set bot_god 0 "god mode for bots" set bot_ai_navigation_jetpack 0 "Enable bots to navigat maps using the jetpack" set bot_ai_navigation_jetpack_mindistance 3500 "Bots will try fly to objects located farther than this distance" diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 12039c4e..b0aaf27f 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 / self.bot_voreteamheal) // there are 10 bot skill steps + if(random() * 10 < cvar("bot_ai_vore_teamhealabandon") * skill / self.bot_voreteamheal) // there are 10 bot skill steps self.BUTTON_REGURGITATE = TRUE; // release the team mate entity head; @@ -118,9 +118,9 @@ 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") * self.bot_vorefear; + random_try /= cvar("bot_ai_vore_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") * self.bot_vorefear; + random_try /= cvar("bot_ai_vore_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;