Rework Carryall drop-off queueing and ordering.

This commit is contained in:
tovl
2019-04-14 10:31:44 +02:00
committed by reaperrr
parent a403d9937d
commit 0b747ba927
5 changed files with 170 additions and 179 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Activities
bool landingInitiated; bool landingInitiated;
public HeliLand(Actor self, bool requireSpace, Actor ignoreActor = null) public HeliLand(Actor self, bool requireSpace, Actor ignoreActor = null)
: this(self, requireSpace, self.Info.TraitInfo<AircraftInfo>().LandAltitude, ignoreActor) { } : this(self, requireSpace, self.Trait<Aircraft>().LandAltitude, ignoreActor) { }
public HeliLand(Actor self, bool requireSpace, WDist landAltitude, Actor ignoreActor = null) public HeliLand(Actor self, bool requireSpace, WDist landAltitude, Actor ignoreActor = null)
{ {

View File

@@ -18,44 +18,34 @@ namespace OpenRA.Mods.Common.Activities
public class DeliverUnit : Activity public class DeliverUnit : Activity
{ {
readonly Actor self; readonly Actor self;
readonly Carryable carryable;
readonly Carryall carryall; readonly Carryall carryall;
readonly IPositionable positionable;
readonly BodyOrientation body; readonly BodyOrientation body;
readonly IFacing carryableFacing; readonly IFacing facing;
readonly IFacing carryallFacing; CPos? destination;
readonly CPos destination;
enum DeliveryState { Transport, Land, Wait, Release, TakeOff, Done, Aborted } public DeliverUnit(Actor self, CPos? destination = null)
DeliveryState state;
public DeliverUnit(Actor self, CPos destination)
{ {
this.self = self; this.self = self;
this.destination = destination; this.destination = destination;
carryallFacing = self.Trait<IFacing>(); facing = self.Trait<IFacing>();
carryall = self.Trait<Carryall>(); carryall = self.Trait<Carryall>();
body = self.Trait<BodyOrientation>(); body = self.Trait<BodyOrientation>();
carryable = carryall.Carryable.Trait<Carryable>();
positionable = carryall.Carryable.Trait<IPositionable>();
carryableFacing = carryall.Carryable.Trait<IFacing>();
state = DeliveryState.Transport;
} }
CPos? FindDropLocation(CPos targetCell, WDist maxSearchDistance) CPos? FindDropLocation(CPos targetCell, WDist maxSearchDistance)
{ {
var positionable = carryall.Carryable.Trait<IPositionable>();
// The easy case // The easy case
if (positionable.CanEnterCell(targetCell)) if (positionable.CanEnterCell(targetCell, self))
return targetCell; return targetCell;
var cellRange = (maxSearchDistance.Length + 1023) / 1024; var cellRange = (maxSearchDistance.Length + 1023) / 1024;
var centerPosition = self.World.Map.CenterOfCell(targetCell); var centerPosition = self.World.Map.CenterOfCell(targetCell);
foreach (var c in self.World.Map.FindTilesInCircle(targetCell, cellRange)) foreach (var c in self.World.Map.FindTilesInCircle(targetCell, cellRange))
{ {
if (!positionable.CanEnterCell(c)) if (!positionable.CanEnterCell(c, self))
continue; continue;
var delta = self.World.Map.CenterOfCell(c) - centerPosition; var delta = self.World.Map.CenterOfCell(c) - centerPosition;
@@ -66,14 +56,6 @@ namespace OpenRA.Mods.Common.Activities
return null; return null;
} }
// Check if we can drop the unit at our current location.
bool CanDropHere()
{
var localOffset = carryall.CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation));
var targetCell = self.World.Map.CellContaining(self.CenterPosition + body.LocalToWorld(localOffset));
return positionable.CanEnterCell(targetCell);
}
public override Activity Tick(Actor self) public override Activity Tick(Actor self)
{ {
if (ChildActivity != null) if (ChildActivity != null)
@@ -83,28 +65,24 @@ namespace OpenRA.Mods.Common.Activities
return this; return this;
} }
if (IsCanceling) if (IsCanceling || carryall.State != Carryall.CarryallState.Carrying || carryall.Carryable.IsDead)
return NextActivity; return NextActivity;
if ((carryall.State == Carryall.CarryallState.Idle || carryall.Carryable.IsDead) && state != DeliveryState.TakeOff) if (destination == null)
state = DeliveryState.Aborted; destination = self.Location;
switch (state) var targetLocation = FindDropLocation(destination.Value, carryall.Info.DropRange);
{
case DeliveryState.Transport:
{
var targetLocation = FindDropLocation(destination, carryall.Info.DropRange);
// Can't land, so wait at the target until something changes // Can't land, so wait at the target until something changes
if (!targetLocation.HasValue) if (!targetLocation.HasValue)
{ {
QueueChild(self, new HeliFly(self, Target.FromCell(self.World, destination)), true); QueueChild(self, new HeliFly(self, Target.FromCell(self.World, destination.Value)), true);
QueueChild(self, new Wait(25)); QueueChild(self, new Wait(25));
return this; return this;
} }
// Move to drop-off location
var targetPosition = self.World.Map.CenterOfCell(targetLocation.Value); var targetPosition = self.World.Map.CenterOfCell(targetLocation.Value);
var localOffset = carryall.CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation)); var localOffset = carryall.CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation));
var carryablePosition = self.CenterPosition + body.LocalToWorld(localOffset); var carryablePosition = self.CenterPosition + body.LocalToWorld(localOffset);
if ((carryablePosition - targetPosition).HorizontalLengthSquared != 0) if ((carryablePosition - targetPosition).HorizontalLengthSquared != 0)
@@ -124,79 +102,43 @@ namespace OpenRA.Mods.Common.Activities
return this; return this;
} }
state = DeliveryState.Land;
return this;
}
case DeliveryState.Land:
{
if (!CanDropHere())
{
state = DeliveryState.Transport;
return this;
}
// Make sure that the carried actor is on the ground before releasing it // Make sure that the carried actor is on the ground before releasing it
var localOffset = carryall.CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation));
var carryablePosition = self.CenterPosition + body.LocalToWorld(localOffset);
if (self.World.Map.DistanceAboveTerrain(carryablePosition) != WDist.Zero) if (self.World.Map.DistanceAboveTerrain(carryablePosition) != WDist.Zero)
{ QueueChild(self, new HeliLand(self, true), true);
QueueChild(self, new HeliLand(self, false, -new WDist(carryall.CarryableOffset.Z)), true);
return this;
}
state = carryall.Info.UnloadingDelay > 0 ? DeliveryState.Wait : DeliveryState.Release; // Pause briefly before releasing for visual effect
return this; if (carryall.Info.UnloadingDelay > 0)
}
case DeliveryState.Wait:
state = DeliveryState.Release;
QueueChild(self, new Wait(carryall.Info.UnloadingDelay, false), true); QueueChild(self, new Wait(carryall.Info.UnloadingDelay, false), true);
// Release carried actor
QueueChild(self, new CallFunc(Release));
QueueChild(self, new HeliFly(self, Target.FromPos(self.CenterPosition)));
return this; return this;
case DeliveryState.Release:
if (!CanDropHere())
{
state = DeliveryState.Transport;
return this;
}
Release();
state = DeliveryState.TakeOff;
return this;
case DeliveryState.TakeOff:
QueueChild(self, new HeliFly(self, Target.FromPos(self.CenterPosition)), true);
state = DeliveryState.Done;
return this;
case DeliveryState.Aborted:
carryall.UnreserveCarryable(self);
break;
}
return NextActivity;
} }
void Release() void Release()
{ {
self.Trait<Aircraft>().RemoveInfluence();
var localOffset = carryall.CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation)); var localOffset = carryall.CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation));
var targetPosition = self.CenterPosition + body.LocalToWorld(localOffset); var targetPosition = self.CenterPosition + body.LocalToWorld(localOffset);
var targetLocation = self.World.Map.CellContaining(targetPosition); var targetLocation = self.World.Map.CellContaining(targetPosition);
positionable.SetPosition(carryall.Carryable, targetLocation, SubCell.FullCell); carryall.Carryable.Trait<IPositionable>().SetPosition(carryall.Carryable, targetLocation, SubCell.FullCell);
// HACK: directly manipulate the turret facings to match the new orientation // HACK: directly manipulate the turret facings to match the new orientation
// This can eventually go away, when we make turret facings relative to the body // This can eventually go away, when we make turret facings relative to the body
var facingDelta = carryallFacing.Facing - carryableFacing.Facing; var carryableFacing = carryall.Carryable.Trait<IFacing>();
var facingDelta = facing.Facing - carryableFacing.Facing;
foreach (var t in carryall.Carryable.TraitsImplementing<Turreted>()) foreach (var t in carryall.Carryable.TraitsImplementing<Turreted>())
t.TurretFacing += facingDelta; t.TurretFacing += facingDelta;
carryableFacing.Facing = carryallFacing.Facing; carryableFacing.Facing = facing.Facing;
// Put back into world // Put back into world
self.World.AddFrameEndTask(w => self.World.AddFrameEndTask(w =>
{ {
var cargo = carryall.Carryable; var cargo = carryall.Carryable;
var carryable = carryall.Carryable.Trait<Carryable>();
w.Add(cargo); w.Add(cargo);
carryall.DetachCarryable(self); carryall.DetachCarryable(self);
carryable.UnReserve(cargo); carryable.UnReserve(cargo);

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Activities
readonly int delay; readonly int delay;
enum PickupState { Intercept, LockCarryable, MoveToCarryable, Turn, Land, Wait, Pickup, Aborted } enum PickupState { Intercept, LockCarryable, MoveToCarryable, Turn, Land, Wait, Pickup }
PickupState state; PickupState state;
@@ -49,6 +49,11 @@ namespace OpenRA.Mods.Common.Activities
state = PickupState.Intercept; state = PickupState.Intercept;
} }
protected override void OnFirstRun(Actor self)
{
carryall.ReserveCarryable(self, cargo);
}
public override Activity Tick(Actor self) public override Activity Tick(Actor self)
{ {
if (ChildActivity != null) if (ChildActivity != null)
@@ -67,7 +72,7 @@ namespace OpenRA.Mods.Common.Activities
return NextActivity; return NextActivity;
} }
if (carryall.State == Carryall.CarryallState.Idle) if (carryall.State != Carryall.CarryallState.Reserved)
return NextActivity; return NextActivity;
switch (state) switch (state)
@@ -78,9 +83,10 @@ namespace OpenRA.Mods.Common.Activities
return this; return this;
case PickupState.LockCarryable: case PickupState.LockCarryable:
state = PickupState.MoveToCarryable;
if (!carryable.LockForPickup(cargo, self)) if (!carryable.LockForPickup(cargo, self))
state = PickupState.Aborted; Cancel(self);
state = PickupState.MoveToCarryable;
return this; return this;
case PickupState.MoveToCarryable: case PickupState.MoveToCarryable:
@@ -129,19 +135,14 @@ namespace OpenRA.Mods.Common.Activities
} }
case PickupState.Wait: case PickupState.Wait:
state = PickupState.Pickup;
QueueChild(self, new Wait(delay, false), true); QueueChild(self, new Wait(delay, false), true);
state = PickupState.Pickup;
return this; return this;
case PickupState.Pickup: case PickupState.Pickup:
// Remove our carryable from world // Remove our carryable from world
Attach(self); Attach(self);
return NextActivity; return this;
case PickupState.Aborted:
// We got cancelled
carryall.UnreserveCarryable(self);
break;
} }
return NextActivity; return NextActivity;

View File

@@ -193,6 +193,8 @@ namespace OpenRA.Mods.Common.Traits
public bool ForceLanding { get; private set; } public bool ForceLanding { get; private set; }
CPos? landingCell; CPos? landingCell;
public WDist LandAltitude { get; private set; }
bool airborne; bool airborne;
bool cruising; bool cruising;
bool firstTick = true; bool firstTick = true;
@@ -216,6 +218,17 @@ namespace OpenRA.Mods.Common.Traits
SetPosition(self, init.Get<CenterPositionInit, WPos>()); SetPosition(self, init.Get<CenterPositionInit, WPos>());
Facing = init.Contains<FacingInit>() ? init.Get<FacingInit, int>() : Info.InitialFacing; Facing = init.Contains<FacingInit>() ? init.Get<FacingInit, int>() : Info.InitialFacing;
LandAltitude = info.LandAltitude;
}
public void AddLandingOffset(int offset)
{
LandAltitude += new WDist(offset);
}
public void SubtractLandingOffset(int offset)
{
LandAltitude -= new WDist(offset);
} }
public virtual IEnumerable<VariableObserver> GetVariableObservers() public virtual IEnumerable<VariableObserver> GetVariableObservers()
@@ -435,7 +448,7 @@ namespace OpenRA.Mods.Common.Traits
{ {
// Map.DistanceAboveTerrain(WPos pos) is called directly because Aircraft is an IPositionable trait // Map.DistanceAboveTerrain(WPos pos) is called directly because Aircraft is an IPositionable trait
// and all calls occur in Tick methods. // and all calls occur in Tick methods.
if (self.World.Map.DistanceAboveTerrain(CenterPosition) != Info.LandAltitude) if (self.World.Map.DistanceAboveTerrain(CenterPosition) != LandAltitude)
return null; // Not on the resupplier. return null; // Not on the resupplier.
return self.World.ActorMap.GetActorsAt(self.Location) return self.World.ActorMap.GetActorsAt(self.Location)
@@ -481,7 +494,7 @@ namespace OpenRA.Mods.Common.Traits
ReservedActor = null; ReservedActor = null;
MayYieldReservation = false; MayYieldReservation = false;
if (self.World.Map.DistanceAboveTerrain(CenterPosition).Length <= Info.LandAltitude.Length) if (self.World.Map.DistanceAboveTerrain(CenterPosition).Length <= LandAltitude.Length)
self.QueueActivity(new TakeOff(self)); self.QueueActivity(new TakeOff(self));
} }
@@ -591,7 +604,7 @@ namespace OpenRA.Mods.Common.Traits
protected virtual void OnBecomingIdle(Actor self) protected virtual void OnBecomingIdle(Actor self)
{ {
var atLandAltitude = self.World.Map.DistanceAboveTerrain(CenterPosition) == Info.LandAltitude; var atLandAltitude = self.World.Map.DistanceAboveTerrain(CenterPosition) == LandAltitude;
// Work-around to prevent players from accidentally canceling resupply by pressing 'Stop', // Work-around to prevent players from accidentally canceling resupply by pressing 'Stop',
// by re-queueing Resupply as long as resupply hasn't finished and aircraft is still on resupplier. // by re-queueing Resupply as long as resupply hasn't finished and aircraft is still on resupplier.

View File

@@ -35,13 +35,29 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Radius around the target drop location that are considered if the target tile is blocked.")] [Desc("Radius around the target drop location that are considered if the target tile is blocked.")]
public readonly WDist DropRange = WDist.FromCells(5); public readonly WDist DropRange = WDist.FromCells(5);
[Desc("Cursor to display when able to unload the passengers.")]
public readonly string UnloadCursor = "deploy";
[Desc("Cursor to display when unable to unload the passengers.")]
public readonly string UnloadBlockedCursor = "deploy-blocked";
[Desc("Allow moving and unloading with one order using force-move")]
public readonly bool AllowDropOff = false;
[Desc("Cursor to display when able to drop off the passengers at location.")]
public readonly string DropOffCursor = "ability";
[Desc("Cursor to display when unable to drop off the passengers at location.")]
public readonly string DropOffBlockedCursor = "move-blocked";
[VoiceReference] [VoiceReference]
public readonly string Voice = "Action"; public readonly string Voice = "Action";
public virtual object Create(ActorInitializer init) { return new Carryall(init.Self, this); } public virtual object Create(ActorInitializer init) { return new Carryall(init.Self, this); }
} }
public class Carryall : INotifyKilled, ISync, ITick, IRender, INotifyActorDisposing, IIssueOrder, IResolveOrder, IOrderVoice public class Carryall : INotifyKilled, ISync, ITick, IRender, INotifyActorDisposing, IIssueOrder, IResolveOrder,
IOrderVoice, IIssueDeployOrder
{ {
public enum CarryallState public enum CarryallState
{ {
@@ -52,9 +68,11 @@ namespace OpenRA.Mods.Common.Traits
public readonly CarryallInfo Info; public readonly CarryallInfo Info;
readonly AircraftInfo aircraftInfo; readonly AircraftInfo aircraftInfo;
readonly Aircraft aircraft;
readonly BodyOrientation body; readonly BodyOrientation body;
readonly IMove move; readonly IMove move;
readonly IFacing facing; readonly IFacing facing;
readonly Actor self;
// The actor we are currently carrying. // The actor we are currently carrying.
[Sync] public Actor Carryable { get; private set; } [Sync] public Actor Carryable { get; private set; }
@@ -74,9 +92,11 @@ namespace OpenRA.Mods.Common.Traits
State = CarryallState.Idle; State = CarryallState.Idle;
aircraftInfo = self.Info.TraitInfoOrDefault<AircraftInfo>(); aircraftInfo = self.Info.TraitInfoOrDefault<AircraftInfo>();
aircraft = self.Trait<Aircraft>();
body = self.Trait<BodyOrientation>(); body = self.Trait<BodyOrientation>();
move = self.Trait<IMove>(); move = self.Trait<IMove>();
facing = self.Trait<IFacing>(); facing = self.Trait<IFacing>();
this.self = self;
} }
void ITick.Tick(Actor self) void ITick.Tick(Actor self)
@@ -143,6 +163,7 @@ namespace OpenRA.Mods.Common.Traits
self.World.ScreenMap.AddOrUpdate(self); self.World.ScreenMap.AddOrUpdate(self);
CarryableOffset = OffsetForCarryable(self, carryable); CarryableOffset = OffsetForCarryable(self, carryable);
aircraft.AddLandingOffset(-CarryableOffset.Z);
return true; return true;
} }
@@ -152,6 +173,7 @@ namespace OpenRA.Mods.Common.Traits
self.World.ScreenMap.AddOrUpdate(self); self.World.ScreenMap.AddOrUpdate(self);
carryablePreview = null; carryablePreview = null;
aircraft.SubtractLandingOffset(-CarryableOffset.Z);
CarryableOffset = WVec.Zero; CarryableOffset = WVec.Zero;
} }
@@ -219,14 +241,22 @@ namespace OpenRA.Mods.Common.Traits
yield return b; yield return b;
} }
// Check if we can drop the unit at our current location.
public bool CanUnload()
{
var localOffset = CarryableOffset.Rotate(body.QuantizeOrientation(self, self.Orientation));
var targetCell = self.World.Map.CellContaining(self.CenterPosition + body.LocalToWorld(localOffset));
return Carryable != null && Carryable.Trait<IPositionable>().CanEnterCell(targetCell, self);
}
IEnumerable<IOrderTargeter> IIssueOrder.Orders IEnumerable<IOrderTargeter> IIssueOrder.Orders
{ {
get get
{ {
if (State != CarryallState.Carrying)
yield return new CarryallPickupOrderTargeter(); yield return new CarryallPickupOrderTargeter();
else yield return new DeployOrderTargeter("Unload", 10,
yield return new CarryallDeliverUnitTargeter(aircraftInfo, CarryableOffset); () => CanUnload() ? Info.UnloadCursor : Info.UnloadBlockedCursor);
yield return new CarryallDeliverUnitTargeter(aircraftInfo, Info, CarryableOffset);
} }
} }
@@ -238,9 +268,14 @@ namespace OpenRA.Mods.Common.Traits
return null; return null;
} }
void IResolveOrder.ResolveOrder(Actor self, Order order) Order IIssueDeployOrder.IssueDeployOrder(Actor self, bool queued)
{ {
if (State == CarryallState.Carrying) return new Order("Unload", self, queued);
}
bool IIssueDeployOrder.CanIssueDeployOrder(Actor self) { return true; }
void IResolveOrder.ResolveOrder(Actor self, Order order)
{ {
if (order.OrderString == "DeliverUnit") if (order.OrderString == "DeliverUnit")
{ {
@@ -254,21 +289,17 @@ namespace OpenRA.Mods.Common.Traits
} }
else if (order.OrderString == "Unload") else if (order.OrderString == "Unload")
{ {
var targetLocation = move.NearestMoveableCell(self.Location); if (!order.Queued && !CanUnload())
self.SetTargetLine(Target.FromCell(self.World, targetLocation), Color.Yellow); return;
self.QueueActivity(order.Queued, new DeliverUnit(self, targetLocation));
self.QueueActivity(order.Queued, new DeliverUnit(self));
} }
}
else
{
if (order.OrderString == "PickupUnit") if (order.OrderString == "PickupUnit")
{ {
if (order.Target.Type != TargetType.Actor) if (order.Target.Type != TargetType.Actor)
return; return;
if (!ReserveCarryable(self, order.Target.Actor))
return;
if (!order.Queued) if (!order.Queued)
self.CancelActivity(); self.CancelActivity();
@@ -276,7 +307,6 @@ namespace OpenRA.Mods.Common.Traits
self.QueueActivity(order.Queued, new PickupUnit(self, order.Target.Actor, Info.LoadingDelay)); self.QueueActivity(order.Queued, new PickupUnit(self, order.Target.Actor, Info.LoadingDelay));
} }
} }
}
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order) string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
{ {
@@ -327,41 +357,46 @@ namespace OpenRA.Mods.Common.Traits
class CarryallDeliverUnitTargeter : AircraftMoveOrderTargeter class CarryallDeliverUnitTargeter : AircraftMoveOrderTargeter
{ {
readonly AircraftInfo aircraftInfo; readonly AircraftInfo aircraftInfo;
readonly CarryallInfo info;
readonly WVec carryableOffset; readonly WVec carryableOffset;
public CarryallDeliverUnitTargeter(AircraftInfo aircraftInfo, WVec carryableOffset) public CarryallDeliverUnitTargeter(AircraftInfo aircraftInfo, CarryallInfo info, WVec carryableOffset)
: base(aircraftInfo) : base(aircraftInfo)
{ {
OrderID = "DeliverUnit"; OrderID = "DeliverUnit";
OrderPriority = 6; OrderPriority = 6;
this.carryableOffset = carryableOffset; this.carryableOffset = carryableOffset;
this.aircraftInfo = aircraftInfo; this.aircraftInfo = aircraftInfo;
this.info = info;
} }
public override bool CanTarget(Actor self, Target target, List<Actor> othersAtTarget, ref TargetModifiers modifiers, ref string cursor) public override bool CanTarget(Actor self, Target target, List<Actor> othersAtTarget, ref TargetModifiers modifiers, ref string cursor)
{ {
if (modifiers.HasModifier(TargetModifiers.ForceMove)) if (!info.AllowDropOff || !modifiers.HasModifier(TargetModifiers.ForceMove))
return false; return false;
cursor = info.DropOffCursor;
var type = target.Type; var type = target.Type;
if (type == TargetType.Actor && self == target.Actor)
{ if ((type == TargetType.Actor && target.Actor.Info.HasTraitInfo<BuildingInfo>())
var altitude = self.World.Map.DistanceAboveTerrain(self.CenterPosition);
if (altitude.Length - carryableOffset.Z < aircraftInfo.MinAirborneAltitude)
{
cursor = "deploy";
OrderID = "Unload";
return true;
}
}
else if ((type == TargetType.Actor && target.Actor.Info.HasTraitInfo<BuildingInfo>())
|| (target.Type == TargetType.FrozenActor && target.FrozenActor.Info.HasTraitInfo<BuildingInfo>())) || (target.Type == TargetType.FrozenActor && target.FrozenActor.Info.HasTraitInfo<BuildingInfo>()))
{ {
cursor = "move-blocked"; cursor = info.DropOffBlockedCursor;
return true; return true;
} }
return base.CanTarget(self, target, othersAtTarget, ref modifiers, ref cursor); var location = self.World.Map.CellContaining(target.CenterPosition);
var explored = self.Owner.Shroud.IsExplored(location);
cursor = self.World.Map.Contains(location) ?
(self.World.Map.GetTerrainInfo(location).CustomCursor ?? info.DropOffCursor) :
info.DropOffBlockedCursor;
IsQueued = modifiers.HasModifier(TargetModifiers.ForceQueue);
if (!explored && !aircraftInfo.MoveIntoShroud)
cursor = info.DropOffBlockedCursor;
return true;
} }
} }
} }