added support for nuke launch sound to confirm strike

separated into IncomingSound = "nuke approaching/detected"
and changed LaunchSound into "nuke lauched"

also nuke with small L .aud in cnc rules looks like a typo
This commit is contained in:
Matthias Mailänder
2013-08-18 19:34:08 +02:00
parent 46691cdb31
commit d8b0c0d440
5 changed files with 11 additions and 6 deletions

View File

@@ -41,9 +41,10 @@ namespace OpenRA.Mods.RA
public override void Activate(Actor self, Order order)
{
// Play to everyone but the current player
if (self.Owner != self.World.LocalPlayer)
if (self.Owner == self.World.LocalPlayer)
Sound.Play(Info.LaunchSound);
else
Sound.Play(Info.IncomingSound);
var npi = Info as NukePowerInfo;
var rb = self.Trait<RenderSimple>();