mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Delay player CV flight when their settings say so.
Fixes https://github.com/Khopa/dcs_liberation/issues/375 This also fixes a problem where we're spawning non-cold start planes in an uncontrolled state. The ME won't let us do this, so we probably shouldn't be doing that.
This commit is contained in:
parent
fa549fcf94
commit
8d485d5fa2
@ -1219,15 +1219,6 @@ class AircraftConflictGenerator:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def should_activate_late(flight: Flight) -> bool:
|
def should_activate_late(flight: Flight) -> bool:
|
||||||
if flight.client_count:
|
|
||||||
# Never delay players. Note that cold start player flights with
|
|
||||||
# AI members will still be marked as uncontrolled until the start
|
|
||||||
# trigger fires to postpone engine start.
|
|
||||||
#
|
|
||||||
# Player flights that start on the runway or in the air will start
|
|
||||||
# immediately, and AI flight members will not be delayed.
|
|
||||||
return False
|
|
||||||
|
|
||||||
if flight.start_type != "Cold":
|
if flight.start_type != "Cold":
|
||||||
# Avoid spawning aircraft in the air or on the runway until it's
|
# Avoid spawning aircraft in the air or on the runway until it's
|
||||||
# time for their mission. Also avoid burning through gas spawning
|
# time for their mission. Also avoid burning through gas spawning
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user