Nuke flash (fixes #16)

This commit is contained in:
Paul Chote
2010-05-26 21:26:49 +12:00
parent a35d6207a9
commit 49b1870eaa
7 changed files with 76 additions and 5 deletions

View File

@@ -183,9 +183,10 @@ namespace OpenRA.Mods.RA
{
Sound.Play("chrono2.aud", self.CenterLocation);
Sound.Play("chrono2.aud", targetActor.CenterLocation);
// Trigger screen desaturate effect
foreach (var a in self.World.Queries.WithTrait<ChronoshiftPaletteEffect>())
a.Trait.DoChronoshift();
a.Trait.Enable();
self.traits.Get<RenderBuilding>().PlayCustomAnim(self, "active");
}