Fixed AI aircraft do not start datalink.

This commit is contained in:
Khopa 2020-08-05 01:04:44 +02:00
parent 66d7435ed6
commit 91cf192d2e
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@
* **[Mission Generator]** Base defense units were not controllable with Combined Arms
* **[Mission Generator]** Tanker speed was too low
* **[Mission Generator]** Tanker TACAN settings were wrong
* **[Mission Generator]** AI aircraft should start datalink (EPLRS)
* **[Mission Generator]** Fixed all flights starting "In flight" after playing a few missions (parking slot reset issue)
* **[Mission Script/Performance]** Mission lua script will not listen to weapons fired event anymore and register every fired weapons. This should improve performance especially in WW2 scenarios or when rocket artillery is firing.
* **[Campaign Generator]** Carrier name will now not appear for faction who do not have carriers

View File

@ -429,6 +429,12 @@ class AircraftConflictGenerator:
group.points[0].tasks.append(OptRTBOnBingoFuel(True))
if hasattr(flight.unit_type, 'eplrs'):
if flight.unit_type.eplrs:
group.points[0].tasks.append(EPLRS(group.id))
for i, point in enumerate(flight.points):
if not point.only_for_player or (point.only_for_player and flight.client_count > 0):
pt = group.add_waypoint(Point(point.x, point.y), point.alt)