Allow forced landing on helipads and enforce takeoff otherwise.

This commit is contained in:
tovl
2019-06-30 11:56:50 +00:00
committed by reaperrr
parent 79a48765d9
commit 76422933f6
3 changed files with 31 additions and 15 deletions

View File

@@ -142,6 +142,8 @@ namespace OpenRA.Mods.Common.Activities
aircraft.MakeReservation(dest);
QueueChild(self, new Land(self, Target.FromActor(dest), offset, facing), true);
QueueChild(self, new Resupply(self, dest, WDist.Zero), true);
if (aircraft.Info.TakeOffOnResupply && !alwaysLand)
QueueChild(self, new TakeOff(self));
}
else
QueueChild(self, new Fly(self, Target.FromActor(dest)), true);