Halt sim on A2A contact.

https://github.com/dcs-liberation/dcs_liberation/issues/1681
This commit is contained in:
Dan Albert
2021-10-27 00:45:39 -07:00
parent 9839787b6d
commit b2cbf4b6f4
13 changed files with 202 additions and 64 deletions

View File

@@ -11,6 +11,7 @@ from ..starttype import StartType
if TYPE_CHECKING:
from game.ato.flight import Flight
from game.settings import Settings
from game.sim.aircraftengagementzones import AircraftEngagementZones
class StartUp(FlightState):
@@ -31,7 +32,7 @@ class StartUp(FlightState):
def spawn_type(self) -> StartType:
return StartType.COLD
def should_halt_sim(self) -> bool:
def should_halt_sim(self, enemy_aircraft_coverage: AircraftEngagementZones) -> bool:
if (
self.flight.client_count > 0
and self.settings.player_mission_interrupts_sim_at is StartType.COLD