]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix two cvar names
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 00:56:19 +0000 (03:56 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 00:56:19 +0000 (03:56 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 2814de4136539f7c10099d639a5381a80b317889..41704be8352d4dbd9dd04a8135ea9d3c2b038b7b 100644 (file)
@@ -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"\r
 set bot_ai_vore_decide_pred 4 "How fast bots decide what to do with their prey, at lowest skill"\r
 set bot_ai_vore_decide_prey 4 "How fast bots decide what to do with their predator, at lowest skill"\r
-set bot_ai_vore_decide_fear 2 "How much bots will fear players more powerful than them, and therefore avoid them in some situations"\r
-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"\r
+set bot_ai_vore_fear 2 "How much bots will fear players more powerful than them, and therefore avoid them in some situations"\r
+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"\r
 set bot_god 0 "god mode for bots"\r
 set bot_ai_navigation_jetpack 0 "Enable bots to navigat maps using the jetpack"\r
 set bot_ai_navigation_jetpack_mindistance 3500 "Bots will try fly to objects located farther than this distance"\r
index 12039c4e86fd67b0f0166aab1012b833f7d31a32..b0aaf27fa283b8090b23b7f772a9683130fb6a19 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 / 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;