Added lookahead, launch speed & angle computation.

The missiles should be more intelligent, avoiding cliffs,
surmounting inclines and flexibly selecting appropriate
launch speed and angle to avoid a close incline or miss
a close target.
This commit is contained in:
Matija Hustić
2015-09-14 23:24:05 +02:00
parent 41f57f2a15
commit b9e57d33c3
2 changed files with 450 additions and 132 deletions

View File

@@ -2718,10 +2718,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20150912)
if (engineVersion < 20151009)
{
if (depth == 2 && parentKey == "Projectile" && parent.Value.Value == "Missile" && node.Key == "Speed")
node.Key = "InitialSpeed";
node.Key = "MaximumLaunchSpeed";
if (depth == 2 && parentKey == "Projectile" && parent.Value.Value == "Missile" && node.Key == "RateOfTurn")
node.Key = "HorizontalRateOfTurn";