protected override void AssignShotsToKillData(EntitySystem Weapon, GameEntity entity) { int damageIWouldDo = Weapon.GetEngineAttackPowerAgainst(entity); if (damageIWouldDo <= 0) { entity.Working_FindTargetOnly_ShotsToKill = 9999; } else { entity.Working_FindTargetOnly_ShotsToKill = ((FInt)entity.GetCurrentEngineHealth() / damageIWouldDo).GetNearestIntPreferringHigher(); entity.Working_FindTargetOnly_ShotsToKill = Math.Max(1, entity.Working_FindTargetOnly_ShotsToKill); } }