]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Teach bots to fear / be courageous toward prey based on player size difference and...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:06:16 +0000 (20:06 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:06:16 +0000 (20:06 +0300)
data/botsVT.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 83f3cdb546b16ec8ad284e7d420c32355dcd992c..aa4fa302d6c978222e8f91dfe31fb58c0a707855 100644 (file)
@@ -45,9 +45,9 @@ set bot_ai_bunnyhop_skilloffset 7     "Bots with skill equal or greater than this va
 set bot_ai_bunnyhop_startdistance 250 "Run to goals located further than this distance"\r
 set bot_ai_bunnyhop_stopdistance 220 "Stop jumping after reaching this distance to the goal"\r
 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 1.2 "How fast bots decide what to do with their prey, at lowest skill"\r
-set bot_ai_vore_decide_prey 1.2 "How fast bots decide what to do with their predator, at lowest skill"\r
-set bot_ai_vore_decide_swallow 0.2 "How often bots decide if to swallow someone"\r
+set bot_ai_vore_decide_pred 0.9 "How fast bots decide what to do with their prey, at lowest skill"\r
+set bot_ai_vore_decide_prey 1.1 "How fast bots decide what to do with their predator, at lowest skill"\r
+set bot_ai_vore_decide_swallow 0.3 "How often bots decide if to swallow someone"\r
 set bot_ai_vore_fear 2 "How much bots will fear players more powerful than them and avoid them in some situations"\r
 set bot_ai_vore_teamhealabandon 0.75 "Probability (from 0 to 1) of the bot abandoning a team heal when seeing an enemy they can vore, at highest skill"\r
 set bot_ai_vore_stayinstomach 0 "When enabled, a bot will stay in a team mate's stomach even if he has no reason to and could willingly leave"\r
index b8e7d308f84d8ab3419f6c4d9f1e961f4ec86fba..83d8169c57471aa0373372ad877c750383286720 100644 (file)
@@ -136,6 +136,9 @@ void Vore_AI()
                fear += self.stomach_load; // the bigger our stomach, the less we want to put someone else in there
                decide_pred_time = cvar("bot_ai_vore_decide_pred") / skill / self.bot_vorethinkpred;
 
+               fear *= (prey.scale / self.scale); // predators fear larger prey and are courageous toward smaller prey
+               fear *= prey.stomach_load; // predators fear prey that have a large stomach
+
                if(Swallow_condition_check_bot(prey))
                {
                        if(time > self.decide_swallow)