]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix something else again
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:29:32 +0000 (20:29 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:29:32 +0000 (20:29 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index f50d1fc7c5929b440ed0745abba103877dfced09..69b8424553c307abfdb7c6cfba20bddaadbb9b52 100644 (file)
@@ -134,7 +134,8 @@ void Vore_AI()
                if(prey.items & IT_INVINCIBLE) // avoid eating bots that have the Invincible powerup
                        fear += cvar("bot_ai_vore_fear") * self.bot_vorefear;
                fear += self.stomach_load; // the bigger our stomach, the less we want to put someone else in there
-               fear *= (prey.scale / self.scale); // predators fear larger prey and are courageous toward smaller prey
+               if(cvar("g_healthsize"))
+                       fear *= (prey.scale / self.scale); // predators fear larger prey and are courageous toward smaller prey
                if(prey.stomach_load)
                        fear *= prey.stomach_load; // predators fear prey that have a large stomach