Enhance sandworm targeting logic by having actors produce noise

This commit is contained in:
penev92
2015-01-11 16:41:00 +01:00
parent e42cf58cb1
commit e6f1c6b460
17 changed files with 328 additions and 51 deletions

View File

@@ -29,9 +29,9 @@ namespace OpenRA.Mods.Common.Traits
attackMove = self.TraitOrDefault<AttackMove>();
}
public override void DoAction(Actor self, CPos targetPos)
public override void DoAction(Actor self, CPos targetCell)
{
attackMove.ResolveOrder(self, new Order("AttackMove", self, false) { TargetLocation = targetPos });
attackMove.ResolveOrder(self, new Order("AttackMove", self, false) { TargetLocation = targetCell });
}
}
}