Upgrade rule for Missile.TerrainHeightAware
This commit is contained in:
@@ -972,6 +972,18 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
}
|
||||
}
|
||||
|
||||
// Made Missile terrain height checks disableable and disabled by default
|
||||
if (engineVersion < 20170713)
|
||||
{
|
||||
var gridMaxHeight = modData.Manifest.Get<MapGrid>().MaximumTerrainHeight;
|
||||
if (gridMaxHeight > 0)
|
||||
{
|
||||
var projectile = node.Value.Nodes.FirstOrDefault(n => n.Key == "Projectile");
|
||||
if (projectile != null && projectile.Value.Value == "Missile")
|
||||
projectile.Value.Nodes.Add(new MiniYamlNode("TerrainHeightAware", "true"));
|
||||
}
|
||||
}
|
||||
|
||||
UpgradeWeaponRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,6 +129,7 @@ CyCannon:
|
||||
MinimumLaunchSpeed: 75
|
||||
Speed: 384
|
||||
RangeLimit: 8c0
|
||||
TerrainHeightAware: true
|
||||
Warhead@1Dam: SpreadDamage
|
||||
Spread: 43
|
||||
Damage: 120
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
VerticalRateOfTurn: 11
|
||||
CruiseAltitude: 2c124
|
||||
AllowSnapping: true
|
||||
TerrainHeightAware: true
|
||||
Warhead@1Dam: SpreadDamage
|
||||
Spread: 108
|
||||
Falloff: 100, 50, 25, 12, 6, 3, 0
|
||||
|
||||
@@ -15,6 +15,7 @@ MultiCluster:
|
||||
Palette: ra
|
||||
MinimumLaunchSpeed: 75
|
||||
Speed: 384
|
||||
TerrainHeightAware: true
|
||||
Warhead@1Dam: SpreadDamage
|
||||
Spread: 128
|
||||
Damage: 65
|
||||
|
||||
Reference in New Issue
Block a user