mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Handle another error case in generate_at_cp_helipad + align helos heading with their slot
This commit is contained in:
parent
c4937e95e9
commit
5412487178
@ -564,6 +564,7 @@ class AircraftConflictGenerator:
|
||||
# Note : A bit dirty, need better support in pydcs
|
||||
group.points[0].action = PointAction.FromGroundArea
|
||||
group.points[0].type = "TakeOffGround"
|
||||
group.units[0].heading = helipad.heading
|
||||
if start_type != "Cold":
|
||||
group.points[0].action = PointAction.FromGroundAreaHot
|
||||
group.points[0].type = "TakeOffGroundHot"
|
||||
@ -575,11 +576,14 @@ class AircraftConflictGenerator:
|
||||
if helipad is not None:
|
||||
helipad.occupied = True
|
||||
group.units[1 + i].position = Point(helipad.x, helipad.y)
|
||||
group.units[1 + i].heading = helipad.heading
|
||||
else:
|
||||
raise RuntimeError(
|
||||
f"Control Point {cp.name} does not have enough helipads"
|
||||
)
|
||||
return group
|
||||
else:
|
||||
raise RuntimeError(f"Control Point {cp.name} does not have enough helipads")
|
||||
|
||||
def _add_radio_waypoint(
|
||||
self,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user