]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't base the swallowing re-check on skill, since its purpose is to prevent the...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 15:58:46 +0000 (18:58 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 15:58:46 +0000 (18:58 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 2945a4ffc8b5288b9178c944da156d05212366cf..c4a17bd1753a9a94b2dd3816143bd6ea4e77ea09 100644 (file)
@@ -350,7 +350,7 @@ 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_swallow 0.5 "How often bots try to swallow someone, at lowest skill"\r
+set bot_ai_vore_decide_swallow 0.5 "How often bots try to swallow someone"\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
index 2fdc0f9ff7bfded6c7b1c81a32e199cf2307e0ad..79291de21d5fd47c248f167c5ca670407046f09e 100644 (file)
@@ -123,7 +123,7 @@ void Vore_AI()
                        self.BUTTON_ATCK = TRUE; // swallow
                        self.decide_pred = time + decide_pred_time; // time before the bot decides what to do with their prey
                }
-               self.decide_swallow = time + cvar("bot_ai_vore_decide_swallow") / (skill + 1);
+               self.decide_swallow = time + cvar("bot_ai_vore_decide_swallow"); // this is needed to take decisions properly, otherwise the code would execute each frame and return 1 pretty soon
        }
 
        // deciding what to do with a victim: