]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/vore_ai.qc
Fix something else again
[voretournament/voretournament.git] / 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