Skip to content

Auto purchase options

Dan Albert edited this page Apr 22, 2023 · 12 revisions

Auto-purchase options are available for players. There are three aspects which can each be enabled individually:

  • Runway repair
  • Front line reinforcement
  • Aircraft reinforcement

Each of these can be enabled during campaign creation and toggled later in the setting menu.

Each of these behaviors are the same as opfor uses.

Automatic runway repair

If enabled, damaged runways will automatically begin repairs if they are affordable.

Runway repairs will take precedence over front line and air unit reinforcement.

Front line reinforcement

Up to half of the budget remaining after repairing runways will be spent on units to reinforce front lines.

Reinforcements will first be purchased at control points with active front lines that have fewer than 30 units. Once all active front lines have at least 30 units, additional units will be assigned to all control points at random.

Aircraft reinforcement

Any remaining budget will be used to purchase aircraft.

Aircraft will be purchased to fulfill any missions that could not be planned due to lack of aircraft. This occurs in the order specified by the mission planner. The best aircraft for the job will be purchased. The preferences for each task type are defined in https://github.com/dcs-liberation/dcs_liberation/blob/develop/game/ato/ai_flight_planner_db.py.

When attempting to fulfill an order for a mission, the purchase will be attempted at the airfield in range of the target, with parking available, closest to the mission target. Airbases outside the enemy's threat zone will be preferred. This will result in more regular, safer, albeit longer flight plans.

Aircraft are selected to fit the unfulfilled missions. Liberation maintains a preferred list of aircraft for each mission type as well as a list of all capable aircraft. A random selection will be made from the preferred list first, but if empty or too expensive the capable list will be used.

If no capable aircraft in range can be purchased, the remaining budget will roll over to the next turn.

Clone this wiki locally