Use correct sound for teleporting chronotanks

This commit is contained in:
ScottNZ
2013-07-14 00:24:11 +12:00
parent bd38f1255f
commit 7ead562349
4 changed files with 20 additions and 8 deletions

View File

@@ -22,6 +22,8 @@ namespace OpenRA.Mods.RA
{
public readonly int ChargeTime = 30; // seconds
public readonly int JumpDistance = 10;
public readonly string ChronoshiftSound = "chrotnk1.aud";
public object Create(ActorInitializer init) { return new ChronoshiftDeploy(init.self, this); }
}
@@ -63,7 +65,7 @@ namespace OpenRA.Mods.RA
if (CanJumpTo(order.TargetLocation, true))
{
self.CancelActivity();
self.QueueActivity(new Teleport(null, order.TargetLocation, true));
self.QueueActivity(new Teleport(null, order.TargetLocation, true, Info.ChronoshiftSound));
chargeTick = 25 * Info.ChargeTime;
}
}