added support for weapon launch sound effects
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ GrenadierExplode:
|
||||
ImpactSound: xplosml2.aud
|
||||
|
||||
Atomic:
|
||||
Report: nukemisl.aud
|
||||
Warhead@impact:
|
||||
Damage: 1000
|
||||
Spread: 6
|
||||
|
||||
Reference in New Issue
Block a user