deus-ex-randomizer icon indicating copy to clipboard operation
deus-ex-randomizer copied to clipboard

make sure horde mode enemies never run away

Open Die4Ever opened this issue 3 years ago • 0 comments

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

Die4Ever avatar Jan 20 '21 07:01 Die4Ever