#38 more pedantry wrt who hears sounds

This commit is contained in:
Chris Forbes
2010-01-25 20:57:52 +13:00
parent 890ff42c70
commit 054cfa6862
4 changed files with 7 additions and 7 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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()
{