Tweak cnc wall sounds.

This commit is contained in:
Paul Chote
2011-01-04 12:35:22 +13:00
parent 03185fe46b
commit 4a47641656
3 changed files with 13 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ namespace OpenRA.Mods.RA.Buildings
public class WallInfo : ITraitInfo, ITraitPrerequisite<BuildingInfo>
{
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<string> 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);
}
}
}

View File

@@ -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:

View File

@@ -569,7 +569,10 @@ BRIK:
Type: Heavy
Wall:
CrushClasses: heavywall
CrushSound:
Building:
DestroyedSound: crumble.aud
GUN:
Inherits: ^Building
Valued: