start of smart minelayer

This commit is contained in:
Chris Forbes
2010-05-23 13:03:57 +12:00
parent bb289101fc
commit baf37f7d04
3 changed files with 60 additions and 18 deletions

View File

@@ -59,7 +59,8 @@ namespace OpenRA.Mods.Aftermath
{
if (order.OrderString == "Deploy")
{
Game.controller.orderGenerator = new SetChronoTankDestination(self);
if (self.Owner == self.World.LocalPlayer)
Game.controller.orderGenerator = new SetChronoTankDestination(self);
return;
}
@@ -70,7 +71,9 @@ namespace OpenRA.Mods.Aftermath
if (!self.Owner.Shroud.IsExplored(order.TargetLocation))
return;
Game.controller.CancelInputMode();
if (self.Owner == self.World.LocalPlayer)
Game.controller.CancelInputMode();
self.CancelActivity();
self.QueueActivity(new Teleport(order.TargetLocation));
Sound.Play("chrotnk1.aud", self.CenterLocation);