mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Halt sim on A2A contact.
https://github.com/dcs-liberation/dcs_liberation/issues/1681
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user