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 f50d1fc..69b8424 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