Tweak cnc wall sounds.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -569,7 +569,10 @@ BRIK:
|
||||
Type: Heavy
|
||||
Wall:
|
||||
CrushClasses: heavywall
|
||||
|
||||
CrushSound:
|
||||
Building:
|
||||
DestroyedSound: crumble.aud
|
||||
|
||||
GUN:
|
||||
Inherits: ^Building
|
||||
Valued:
|
||||
|
||||
Reference in New Issue
Block a user