deus-ex-randomizer
deus-ex-randomizer copied to clipboard
make sure horde mode enemies never run away
minHealth? but I'm already setting that to 0
function bool ShouldFlee()
{
// This may be overridden from subclasses
if (MinHealth > 0)
{
if (Health <= MinHealth)
return true;
else if (HealthArmLeft <= 0)
return true;
else if (HealthArmRight <= 0)
return true;
else if (HealthLegLeft <= 0)
return true;
else if (HealthLegRight <= 0)
return true;
else
return false;
}
else
return false;
}
maybe it only happens when they lose their weapon