diff --git a/OpenRA.Mods.RA/SupportPowers/SonarPulsePower.cs b/OpenRA.Mods.RA/SupportPowers/SonarPulsePower.cs index 0eb3c24b9a..e63d75eefc 100755 --- a/OpenRA.Mods.RA/SupportPowers/SonarPulsePower.cs +++ b/OpenRA.Mods.RA/SupportPowers/SonarPulsePower.cs @@ -9,7 +9,7 @@ #endregion using OpenRA.Traits; -/* + namespace OpenRA.Mods.RA { public class SonarPulsePowerInfo : SupportPowerInfo @@ -17,31 +17,15 @@ namespace OpenRA.Mods.RA public override object Create(ActorInitializer init) { return new SonarPulsePower(init.self, this); } } - public class SonarPulsePower : SupportPower, IResolveOrder + public class SonarPulsePower : SupportPower { public SonarPulsePower(Actor self, SonarPulsePowerInfo info) : base(self, info) { } - - protected override void OnBeginCharging() { } - protected override void OnFinishCharging() { Sound.PlayToPlayer(Owner, "pulse1.aud"); } - - protected override void OnActivate() + public override void Activate(Actor self, Order order) { - Self.World.IssueOrder(new Order("SonarPulse", Owner.PlayerActor, false)); - } + // TODO: Reveal submarines - public void ResolveOrder(Actor self, Order order) - { - if (!IsReady) return; - - if (order.OrderString == "SonarPulse") - { - // TODO: Reveal submarines - - // Should this play for all players? - Sound.Play("sonpulse.aud"); - FinishActivate(); - } + // Should this play for all players? + Sound.Play("sonpulse.aud"); } } } -*/ \ No newline at end of file diff --git a/mods/ra/rules/system.yaml b/mods/ra/rules/system.yaml index 22172ee041..db6918ac79 100644 --- a/mods/ra/rules/system.yaml +++ b/mods/ra/rules/system.yaml @@ -30,8 +30,9 @@ Player: # ChargeTime: 10 # Description: Sonar Pulse (Single Use) # LongDesc: Reveals all submarines on the map for a \nshort time. -# GivenAuto: no # OneShot: yes +# EndChargeSound: pulse1.aud +# SelectTargetSound: slcttgt1.aud # AirstrikePower: # Image: pbmbicon # ChargeTime: 1