Make aircraft without TakeOffOnResupply always land
on resupplier, even if ammo is full, when given a "ReturnToBase" order via deploy key. In other words, in that case treat the RTB order like an explicit "Repair" or "Enter" order.
This commit is contained in:
@@ -862,7 +862,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (!order.Queued)
|
if (!order.Queued)
|
||||||
UnReserve();
|
UnReserve();
|
||||||
|
|
||||||
self.QueueActivity(order.Queued, new ReturnToBase(self, Info.AbortOnResupply, null, false));
|
// Aircraft with TakeOffOnResupply would immediately take off again, so there's no point in forcing them to land
|
||||||
|
// on a resupplier. For aircraft without it, it makes more sense to land than to idle above a free resupplier, though.
|
||||||
|
self.QueueActivity(order.Queued, new ReturnToBase(self, Info.AbortOnResupply, null, !Info.TakeOffOnResupply));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user