mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Use convoy spawn points defined by the campaign.
The start/end points of the waypoints that define the course of the front line also define the spawn points for convoys. Use them. https://github.com/Khopa/dcs_liberation/issues/824
This commit is contained in:
@@ -31,14 +31,9 @@ class ConvoyGenerator:
|
||||
self.generate_convoy_for(transfer)
|
||||
|
||||
def generate_convoy_for(self, transfer: RoadTransferOrder) -> None:
|
||||
# TODO: Add convoy spawn points to campaign so these can start on/near a road.
|
||||
# Groups that start with an on-road waypoint that are not on a road will move to
|
||||
# the road one at a time. Spawning them arbitrarily at the control point spawns
|
||||
# them on the runway (or in a FOB structure) and they'll take forever to get to
|
||||
# a road.
|
||||
origin = transfer.position.position
|
||||
next_hop = transfer.path()[0]
|
||||
destination = next_hop.position
|
||||
origin = transfer.position.convoy_spawns[next_hop]
|
||||
destination = next_hop.convoy_spawns[transfer.position]
|
||||
|
||||
group = self._create_mixed_unit_group(
|
||||
f"Convoy {next(self.count)}",
|
||||
|
||||
Reference in New Issue
Block a user