mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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())
|
||||
activation_trigger.add_action(AITaskPush(group.id, len(group.tasks)))
|
||||
self.m.triggerrules.triggers.append(activation_trigger)
|
||||
print("ADD TRIG CTRL")
|
||||
else:
|
||||
group.late_activation = True
|
||||
activation_trigger = TriggerOnce(Event.NoEvent, "LiberationActivationTriggerForGroup" + str(group.id))
|
||||
@ -390,11 +389,9 @@ class AircraftConflictGenerator:
|
||||
|
||||
def generate_planned_flight(self, cp, country, flight:Flight):
|
||||
try:
|
||||
if flight.client_count == 0:
|
||||
if flight.client_count == 0 and self.game.perf_ai_parking_start:
|
||||
flight.start_type = "Warm"
|
||||
|
||||
print(flight.start_type)
|
||||
|
||||
if flight.start_type == "In Flight":
|
||||
group = self._generate_group(
|
||||
name=namegen.next_unit_name(country, cp.id, flight.unit_type),
|
||||
@ -404,7 +401,6 @@ class AircraftConflictGenerator:
|
||||
client_count=0,
|
||||
at=cp.position)
|
||||
else:
|
||||
|
||||
st = StartType.Runway
|
||||
if flight.start_type == "Cold":
|
||||
st = StartType.Cold
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user