diff --git a/OpenRa.Game/Traits/ChronoshiftPower.cs b/OpenRa.Game/Traits/ChronoshiftPower.cs index b8a0add34c..94cc5ba2f8 100644 --- a/OpenRa.Game/Traits/ChronoshiftPower.cs +++ b/OpenRa.Game/Traits/ChronoshiftPower.cs @@ -17,8 +17,8 @@ namespace OpenRa.Traits class ChronoshiftPower : SupportPower, IResolveOrder { public ChronoshiftPower(Actor self, ChronoshiftPowerInfo info) : base(self, info) { } - protected override void OnBeginCharging() { Sound.Play("chrochr1.aud"); } - protected override void OnFinishCharging() { Sound.Play("chrordy1.aud"); } + protected override void OnBeginCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("chrochr1.aud"); } + protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("chrordy1.aud"); } protected override void OnActivate() { Game.controller.orderGenerator = new SelectTarget(); diff --git a/OpenRa.Game/Traits/IronCurtainPower.cs b/OpenRa.Game/Traits/IronCurtainPower.cs index 6ad02378ce..8460659074 100644 --- a/OpenRa.Game/Traits/IronCurtainPower.cs +++ b/OpenRa.Game/Traits/IronCurtainPower.cs @@ -16,8 +16,8 @@ namespace OpenRa.Traits { public IronCurtainPower(Actor self, IronCurtainPowerInfo info) : base(self, info) { } - protected override void OnBeginCharging() { Sound.Play("ironchg1.aud"); } - protected override void OnFinishCharging() { Sound.Play("ironrdy1.aud"); } + protected override void OnBeginCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("ironchg1.aud"); } + protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("ironrdy1.aud"); } protected override void OnActivate() { Game.controller.orderGenerator = new SelectTarget(); diff --git a/OpenRa.Game/Traits/NukePower.cs b/OpenRa.Game/Traits/NukePower.cs index 9612773bd0..fc07b3c4be 100644 --- a/OpenRa.Game/Traits/NukePower.cs +++ b/OpenRa.Game/Traits/NukePower.cs @@ -14,8 +14,8 @@ namespace OpenRa.Traits { public NukePower(Actor self, NukePowerInfo info) : base(self, info) { } - protected override void OnBeginCharging() { Sound.Play("aprep1.aud"); } - protected override void OnFinishCharging() { Sound.Play("aready1.aud"); } + protected override void OnBeginCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("aprep1.aud"); } + protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("aready1.aud"); } protected override void OnActivate() { Game.controller.orderGenerator = new SelectTarget(); diff --git a/OpenRa.Game/Traits/SonarPulsePower.cs b/OpenRa.Game/Traits/SonarPulsePower.cs index 899d138b87..a9741ced13 100644 --- a/OpenRa.Game/Traits/SonarPulsePower.cs +++ b/OpenRa.Game/Traits/SonarPulsePower.cs @@ -15,7 +15,7 @@ namespace OpenRa.Traits public SonarPulsePower(Actor self, SonarPulsePowerInfo info) : base(self, info) { } protected override void OnBeginCharging() { } - protected override void OnFinishCharging() { Sound.Play("pulse1.aud"); } + protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("pulse1.aud"); } protected override void OnActivate() {