Add support for multiple impact sounds to CreateEffectWarhead

Have the engine pick one impact sound at random from the provided list.
This commit is contained in:
Pavel Penev
2016-01-02 16:48:45 +02:00
parent 7e3ec91d30
commit 489ee9fc54
31 changed files with 202 additions and 196 deletions

View File

@@ -3441,6 +3441,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
var explosionNode = node.Value.Nodes.FirstOrDefault(x => x.Key == "Explosion");
if (explosionNode != null)
explosionNode.Key = "Explosions";
// Add support for multiple impact sounds to CreateEffectWarhead
var impactSoundNode = node.Value.Nodes.FirstOrDefault(x => x.Key == "ImpactSound");
if (impactSoundNode != null)
impactSoundNode.Key = "ImpactSounds";
}
}