added support for weapon launch sound effects

This commit is contained in:
Matthias Mailänder
2013-08-18 19:29:38 +02:00
parent 35370afa19
commit f485ef2ecf
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#endregion
using System.Collections.Generic;
using System.Linq;
using OpenRA.Effects;
using OpenRA.Graphics;
using OpenRA.Traits;
@@ -33,6 +34,9 @@ namespace OpenRA.Mods.RA.Effects
anim.PlayRepeating("up");
pos = launchPos;
var weaponRules = Rules.Weapons[weapon.ToLowerInvariant()];
if (weaponRules.Report != null && weaponRules.Report.Any())
Sound.Play(weaponRules.Report.Random(firedBy.World.SharedRandom), pos);
if (silo == null)
StartDescent(firedBy.World);
}

View File

@@ -60,6 +60,7 @@ GrenadierExplode:
ImpactSound: xplosml2.aud
Atomic:
Report: nukemisl.aud
Warhead@impact:
Damage: 1000
Spread: 6