cnc fixes:

* Hardcoded audio crashes
	* Implemented remaining vehicles
	* Fix weapon stats
This commit is contained in:
Paul Chote
2010-03-05 19:57:20 +13:00
parent 5b359cc5b3
commit 5a42519422
12 changed files with 2520 additions and 89 deletions

View File

@@ -51,7 +51,8 @@ namespace OpenRA.Traits
public readonly string[] BuildSounds = {"placbldg.aud", "build5.aud"};
public readonly string[] SellSounds = {"cashturn.aud"};
public readonly string DamagedSound = "kaboom1.aud";
public readonly string DestroyedSound = "kaboom22.aud";
public object Create(Actor self) { return new Building(self); }
}
@@ -95,7 +96,7 @@ namespace OpenRA.Traits
if (e.DamageState == DamageState.Dead)
{
self.World.WorldActor.traits.Get<ScreenShaker>().AddEffect(10, self.CenterLocation, 1);
Sound.Play("kaboom22.aud");
Sound.Play(Info.DestroyedSound);
}
}