mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Possible to setup whether AI should starts from parking or not.
This commit is contained in:
parent
b219b2a71b
commit
16a096d288
@ -372,7 +372,6 @@ class AircraftConflictGenerator:
|
|||||||
group.add_trigger_action(StartCommand())
|
group.add_trigger_action(StartCommand())
|
||||||
activation_trigger.add_action(AITaskPush(group.id, len(group.tasks)))
|
activation_trigger.add_action(AITaskPush(group.id, len(group.tasks)))
|
||||||
self.m.triggerrules.triggers.append(activation_trigger)
|
self.m.triggerrules.triggers.append(activation_trigger)
|
||||||
print("ADD TRIG CTRL")
|
|
||||||
else:
|
else:
|
||||||
group.late_activation = True
|
group.late_activation = True
|
||||||
activation_trigger = TriggerOnce(Event.NoEvent, "LiberationActivationTriggerForGroup" + str(group.id))
|
activation_trigger = TriggerOnce(Event.NoEvent, "LiberationActivationTriggerForGroup" + str(group.id))
|
||||||
@ -390,11 +389,9 @@ class AircraftConflictGenerator:
|
|||||||
|
|
||||||
def generate_planned_flight(self, cp, country, flight:Flight):
|
def generate_planned_flight(self, cp, country, flight:Flight):
|
||||||
try:
|
try:
|
||||||
if flight.client_count == 0:
|
if flight.client_count == 0 and self.game.perf_ai_parking_start:
|
||||||
flight.start_type = "Warm"
|
flight.start_type = "Warm"
|
||||||
|
|
||||||
print(flight.start_type)
|
|
||||||
|
|
||||||
if flight.start_type == "In Flight":
|
if flight.start_type == "In Flight":
|
||||||
group = self._generate_group(
|
group = self._generate_group(
|
||||||
name=namegen.next_unit_name(country, cp.id, flight.unit_type),
|
name=namegen.next_unit_name(country, cp.id, flight.unit_type),
|
||||||
@ -404,7 +401,6 @@ class AircraftConflictGenerator:
|
|||||||
client_count=0,
|
client_count=0,
|
||||||
at=cp.position)
|
at=cp.position)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
st = StartType.Runway
|
st = StartType.Runway
|
||||||
if flight.start_type == "Cold":
|
if flight.start_type == "Cold":
|
||||||
st = StartType.Cold
|
st = StartType.Cold
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user