Dan Albert cb3bf56d84 Add a real CAS ingress point.
Putting the ingress point directly on one end of the FLOT means that AI
flights won't start searching and engaging targets until they reach that
point. If the front line has advanced toward the flight's departure
airfield, it might overfly targets on its way to the IP.

Instead, place an IP for CAS the same way we place any other IP. The AI
will fly to that and start searching from there.

This also:

* Removes the midpoint waypoint, since it didn't serve any real purpose
* Names the FLOT boundary waypoints for what they actually are

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2231.
2023-08-10 00:47:13 -07:00

36 lines
848 B
Python

from __future__ import annotations
from pathlib import Path
_dcs_saved_game_folder: Path | None = None
def set_dcs_save_game_directory(user_folder: Path) -> None:
global _dcs_saved_game_folder
_dcs_saved_game_folder = user_folder
if not save_dir().exists():
save_dir().mkdir(parents=True)
def base_path() -> str:
global _dcs_saved_game_folder
assert _dcs_saved_game_folder is not None
return str(_dcs_saved_game_folder)
def liberation_user_dir() -> Path:
"""The path to the Liberation user directory."""
return Path(base_path()) / "Liberation"
def save_dir() -> Path:
return liberation_user_dir() / "Saves"
def mission_path_for(name: str) -> Path:
return Path(base_path()) / "Missions" / name
def waypoint_debug_directory() -> Path:
return liberation_user_dir() / "Debug/Waypoints"