Merge pull request #7815 from Phrohdoh/aircraft-turn-timing

Expose Plane turn-to-attack delay to yaml.
This commit is contained in:
Oliver Brakmann
2015-04-03 23:15:41 +02:00
13 changed files with 60 additions and 45 deletions

View File

@@ -63,7 +63,8 @@ namespace OpenRA.Mods.Cnc.Traits
new FacingInit(64)
});
actor.QueueActivity(new Fly(actor, Target.FromCell(w, self.Location + new CVec(9, 0))));
var plane = actor.Trait<Plane>();
actor.QueueActivity(new Fly(actor, Target.FromCell(w, self.Location + new CVec(9, 0)), plane));
actor.QueueActivity(new Land(actor, Target.FromActor(self)));
actor.QueueActivity(new CallFunc(() =>
{
@@ -77,7 +78,7 @@ namespace OpenRA.Mods.Cnc.Traits
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", info.ReadyAudio, self.Owner.Country.Race);
}));
actor.QueueActivity(new Fly(actor, Target.FromCell(w, endPos)));
actor.QueueActivity(new Fly(actor, Target.FromCell(w, endPos), plane));
actor.QueueActivity(new RemoveSelf());
});