Overhaul Land activity:

- Landing on an actor is no longer blocked by the underlying terrain
- Land in a nearby cell if the requested location is blocked
- Internally manages the fixed-wing landing sequence
- ProductionAirdrop transport waits until the exit is free before landing
This commit is contained in:
tovl
2019-06-30 11:56:26 +00:00
committed by reaperrr
parent ff9db0bf7a
commit adecd4ca87
7 changed files with 257 additions and 186 deletions

View File

@@ -177,19 +177,7 @@ namespace OpenRA.Mods.Common.Scripting
}
}
if (aircraft.Info.VTOL)
{
if (destination != entryPath.Last())
Move(transport, destination);
transport.QueueActivity(new Turn(transport, aircraft.Info.InitialFacing));
transport.QueueActivity(new Land(transport));
}
else
{
transport.QueueActivity(new Land(transport, Target.FromCell(transport.World, destination)));
}
transport.QueueActivity(new Land(transport, Target.FromCell(transport.World, destination), facing: aircraft.Info.InitialFacing));
transport.QueueActivity(new Wait(15));
}