Add a nearEnough field for RallyPoints (to be used as an argument for their AttackMove activities) so the Soviets don't get stuck on their rally point, and scatter the units a bit before they attack

This commit is contained in:
Scott_NZ
2012-09-15 18:55:13 +12:00
parent fd96d08ce8
commit 8fabf1504a
3 changed files with 17 additions and 13 deletions

View File

@@ -91,7 +91,7 @@ namespace OpenRA.Mods.RA
if (mobile != null)
{
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
newUnit, mobile.MoveTo(rp.rallyPoint, 1)));
newUnit, mobile.MoveTo(rp.rallyPoint, rp.nearEnough)));
return rp.rallyPoint;
}