select target sound etc for paratroopers

This commit is contained in:
Chris Forbes
2010-04-10 14:25:27 +12:00
parent 1e9f5199f8
commit 4a15215e2a
2 changed files with 4 additions and 1 deletions

View File

@@ -35,11 +35,13 @@ namespace OpenRA.Mods.RA
{ {
public ParatroopersPower(Actor self, ParatroopersPowerInfo info) : base(self, info) { } public ParatroopersPower(Actor self, ParatroopersPowerInfo info) : base(self, info) { }
protected override void OnFinishCharging() { Sound.PlayToPlayer(Owner, Info.EndChargeSound); }
protected override void OnActivate() protected override void OnActivate()
{ {
Game.controller.orderGenerator = Game.controller.orderGenerator =
new GenericSelectTarget( Owner.PlayerActor, "ParatroopersActivate", "ability" ); new GenericSelectTarget( Owner.PlayerActor, "ParatroopersActivate", "ability" );
Sound.Play(Info.SelectTargetSound); Sound.PlayToPlayer(Owner, Info.SelectTargetSound);
} }
public void ResolveOrder(Actor self, Order order) public void ResolveOrder(Actor self, Order order)

View File

@@ -44,6 +44,7 @@ Player:
Prerequisites: AFLD Prerequisites: AFLD
TechLevel: 5 TechLevel: 5
DropItems: E1,E1,E1,E3,E3 DropItems: E1,E1,E1,E3,E3
SelectTargetSound: slcttgt1.aud
NukePower: NukePower:
Image: atomicon Image: atomicon
ChargeTime: 13 ChargeTime: 13