]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Base my last commit on bot skill
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:12:38 +0000 (20:12 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:12:38 +0000 (20:12 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index afc9eab5707df423d216c12605c208b3f9ad2a66..8fa47ddd1e0c5f1843c50c872a50f2352cfeeb48 100644 (file)
@@ -129,7 +129,8 @@ void Vore_AI()
                if(self.status_teamhealing > 1) // if we are teamhealing, there's nothing to do from here on
                        return;
 
-               if not(self.swallow_progress_prey) // when a bot is being swallowed, he will try to swallow the enemy back in defense, forgetting about fear
+               // when a bot is being swallowed, he will try to swallow the enemy back in defense, forgetting about fear
+               if not(self.swallow_progress_prey * 10 >= 10 - skill) // 10 skill steps
                {
                        if(prey.items & IT_STRENGTH) // avoid eating bots that have the Strenght powerup
                                fear += cvar("bot_ai_vore_fear") * self.bot_vorefear;