diff --git a/OpenRA.Mods.RA/Buildings/Wall.cs b/OpenRA.Mods.RA/Buildings/Wall.cs index 45671b7f6a..61213d4353 100755 --- a/OpenRA.Mods.RA/Buildings/Wall.cs +++ b/OpenRA.Mods.RA/Buildings/Wall.cs @@ -16,7 +16,7 @@ namespace OpenRA.Mods.RA.Buildings public class WallInfo : ITraitInfo, ITraitPrerequisite { public readonly string[] CrushClasses = { }; - + public readonly string CrushSound; public object Create(ActorInitializer init) { return new Wall(init.self, this); } } @@ -32,6 +32,10 @@ namespace OpenRA.Mods.RA.Buildings } public IEnumerable CrushClasses { get { return info.CrushClasses; } } - public void OnCrush(Actor crusher) { self.Kill(crusher); } + public void OnCrush(Actor crusher) + { + self.Kill(crusher); + Sound.Play(info.CrushSound, self.CenterLocation); + } } } diff --git a/mods/cnc/rules/defaults.yaml b/mods/cnc/rules/defaults.yaml index 8a82a4d029..30c0332679 100644 --- a/mods/cnc/rules/defaults.yaml +++ b/mods/cnc/rules/defaults.yaml @@ -243,13 +243,14 @@ BuildSounds: hvydoor1.aud Capturable: false BaseNormal: no - DamagedSound: xplos.aud - DestroyedSound: xplobig4.aud + DamagedSound: + DestroyedSound: Adjacent: 7 TargetableBuilding: TargetTypes: Ground Wall: CrushClasses: wall + CrushSound: sandbag2.aud LineBuild: Range: 8 Selectable: diff --git a/mods/cnc/rules/structures.yaml b/mods/cnc/rules/structures.yaml index 7daa6213d3..bb56a325e2 100644 --- a/mods/cnc/rules/structures.yaml +++ b/mods/cnc/rules/structures.yaml @@ -569,7 +569,10 @@ BRIK: Type: Heavy Wall: CrushClasses: heavywall - + CrushSound: + Building: + DestroyedSound: crumble.aud + GUN: Inherits: ^Building Valued: