#38 more pedantry wrt who hears sounds
This commit is contained in:
@@ -17,8 +17,8 @@ namespace OpenRa.Traits
|
|||||||
class ChronoshiftPower : SupportPower, IResolveOrder
|
class ChronoshiftPower : SupportPower, IResolveOrder
|
||||||
{
|
{
|
||||||
public ChronoshiftPower(Actor self, ChronoshiftPowerInfo info) : base(self, info) { }
|
public ChronoshiftPower(Actor self, ChronoshiftPowerInfo info) : base(self, info) { }
|
||||||
protected override void OnBeginCharging() { Sound.Play("chrochr1.aud"); }
|
protected override void OnBeginCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("chrochr1.aud"); }
|
||||||
protected override void OnFinishCharging() { Sound.Play("chrordy1.aud"); }
|
protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("chrordy1.aud"); }
|
||||||
protected override void OnActivate()
|
protected override void OnActivate()
|
||||||
{
|
{
|
||||||
Game.controller.orderGenerator = new SelectTarget();
|
Game.controller.orderGenerator = new SelectTarget();
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ namespace OpenRa.Traits
|
|||||||
{
|
{
|
||||||
public IronCurtainPower(Actor self, IronCurtainPowerInfo info) : base(self, info) { }
|
public IronCurtainPower(Actor self, IronCurtainPowerInfo info) : base(self, info) { }
|
||||||
|
|
||||||
protected override void OnBeginCharging() { Sound.Play("ironchg1.aud"); }
|
protected override void OnBeginCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("ironchg1.aud"); }
|
||||||
protected override void OnFinishCharging() { Sound.Play("ironrdy1.aud"); }
|
protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("ironrdy1.aud"); }
|
||||||
protected override void OnActivate()
|
protected override void OnActivate()
|
||||||
{
|
{
|
||||||
Game.controller.orderGenerator = new SelectTarget();
|
Game.controller.orderGenerator = new SelectTarget();
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ namespace OpenRa.Traits
|
|||||||
{
|
{
|
||||||
public NukePower(Actor self, NukePowerInfo info) : base(self, info) { }
|
public NukePower(Actor self, NukePowerInfo info) : base(self, info) { }
|
||||||
|
|
||||||
protected override void OnBeginCharging() { Sound.Play("aprep1.aud"); }
|
protected override void OnBeginCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("aprep1.aud"); }
|
||||||
protected override void OnFinishCharging() { Sound.Play("aready1.aud"); }
|
protected override void OnFinishCharging() { if (Owner == Owner.World.LocalPlayer) Sound.Play("aready1.aud"); }
|
||||||
protected override void OnActivate()
|
protected override void OnActivate()
|
||||||
{
|
{
|
||||||
Game.controller.orderGenerator = new SelectTarget();
|
Game.controller.orderGenerator = new SelectTarget();
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace OpenRa.Traits
|
|||||||
public SonarPulsePower(Actor self, SonarPulsePowerInfo info) : base(self, info) { }
|
public SonarPulsePower(Actor self, SonarPulsePowerInfo info) : base(self, info) { }
|
||||||
|
|
||||||
protected override void OnBeginCharging() { }
|
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()
|
protected override void OnActivate()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user