Have the parabomber come from a different direction. Have the Soviet tanks go straight for the enemy base structures.
This commit is contained in:
@@ -102,19 +102,27 @@ namespace OpenRA.Mods.RA.Missions
|
||||
}
|
||||
|
||||
public static Actor ClosestPlayerUnit(World world, Player player, PPos location, int range)
|
||||
{
|
||||
return ClosestPlayerUnits(world, player, location, range).FirstOrDefault();
|
||||
}
|
||||
|
||||
public static IEnumerable<Actor> ClosestPlayerUnits(World world, Player player, PPos location, int range)
|
||||
{
|
||||
return world.FindAliveCombatantActorsInCircle(location, range)
|
||||
.Where(a => a.Owner == player && a.HasTrait<IMove>())
|
||||
.OrderBy(a => (location - a.CenterLocation).LengthSquared)
|
||||
.FirstOrDefault();
|
||||
.OrderBy(a => (location - a.CenterLocation).LengthSquared);
|
||||
}
|
||||
|
||||
public static Actor ClosestPlayerBuilding(World world, Player player, PPos location, int range)
|
||||
{
|
||||
return ClosestPlayerBuildings(world, player, location, range).FirstOrDefault();
|
||||
}
|
||||
|
||||
public static IEnumerable<Actor> ClosestPlayerBuildings(World world, Player player, PPos location, int range)
|
||||
{
|
||||
return world.FindAliveCombatantActorsInCircle(location, range)
|
||||
.Where(a => a.Owner == player && a.HasTrait<Building>() && !a.HasTrait<Wall>())
|
||||
.OrderBy(a => (location - a.CenterLocation).LengthSquared)
|
||||
.FirstOrDefault();
|
||||
.OrderBy(a => (location - a.CenterLocation).LengthSquared);
|
||||
}
|
||||
|
||||
public static IEnumerable<ProductionQueue> FindQueues(World world, Player player, string category)
|
||||
|
||||
Reference in New Issue
Block a user