Connect auto-ATO disable option.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/315
This commit is contained in:
Dan Albert 2021-05-27 15:42:46 -07:00
parent 11a8ff7f70
commit bcccb3206d
2 changed files with 5 additions and 3 deletions

View File

@ -18,6 +18,7 @@ Saves from 2.5 are not compatible with 3.0.
* **[Flight Planner]** Taxi time estimation for airfields increased from 5 minutes to 8 minutes. * **[Flight Planner]** Taxi time estimation for airfields increased from 5 minutes to 8 minutes.
* **[Flight Planner]** Reduce expected error margin for flight plans from 10% to 5%. * **[Flight Planner]** Reduce expected error margin for flight plans from 10% to 5%.
* **[Flight Planner]** SEAD flights are scheduled one minute ahead of the package's TOT so that they can suppress the site ahead of the strike. * **[Flight Planner]** SEAD flights are scheduled one minute ahead of the package's TOT so that they can suppress the site ahead of the strike.
* **[Flight Planner]** Automatic ATO generation for the player's coalition can now be disabled in the settings.
* **[Payloads]** AI flights for most air to ground mission types (CAS excluded) will have their guns emptied to prevent strafing fully armed and operational battle stations. Gun-reliant airframes like A-10s and warbirds will keep their bullets. * **[Payloads]** AI flights for most air to ground mission types (CAS excluded) will have their guns emptied to prevent strafing fully armed and operational battle stations. Gun-reliant airframes like A-10s and warbirds will keep their bullets.
* **[Kneeboard]** ATC table overflow alleviated by wrapping long airfield names and splitting ATC frequency and channel into separate rows. * **[Kneeboard]** ATC table overflow alleviated by wrapping long airfield names and splitting ATC frequency and channel into separate rows.
* **[UI]** Added new web based map UI. This is mostly functional but many of the old display options are a WIP. Revert to the old map with --old-map. * **[UI]** Added new web based map UI. This is mostly functional but many of the old display options are a WIP. Revert to the old map with --old-map.

View File

@ -33,7 +33,7 @@ from .infos.information import Information
from .navmesh import NavMesh from .navmesh import NavMesh
from .procurement import AircraftProcurementRequest, ProcurementAi from .procurement import AircraftProcurementRequest, ProcurementAi
from .profiling import logged_duration from .profiling import logged_duration
from .settings import Settings from .settings import Settings, AutoAtoBehavior
from .squadrons import Pilot, AirWing from .squadrons import Pilot, AirWing
from .theater import ConflictTheater from .theater import ConflictTheater
from .theater.bullseye import Bullseye from .theater.bullseye import Bullseye
@ -408,8 +408,9 @@ class Game:
self.transfers.plan_transports() self.transfers.plan_transports()
with logged_duration("Mission planning"): with logged_duration("Mission planning"):
blue_planner = CoalitionMissionPlanner(self, is_player=True) if self.settings.auto_ato_behavior is not AutoAtoBehavior.Disabled:
blue_planner.plan_missions() blue_planner = CoalitionMissionPlanner(self, is_player=True)
blue_planner.plan_missions()
red_planner = CoalitionMissionPlanner(self, is_player=False) red_planner = CoalitionMissionPlanner(self, is_player=False)
red_planner.plan_missions() red_planner.plan_missions()