Randomly offset mid-mission spawns.

This is what we do for the old in-air starts too. It's not perfect but
it's not a regression either.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1754
This commit is contained in:
Dan Albert 2021-11-18 17:06:12 -08:00
parent a94db0ec43
commit 9c0f72921f

View File

@ -128,6 +128,7 @@ class FlightGroupSpawner:
)
speed = self.flight.state.estimate_speed()
pos = self.flight.state.estimate_position()
pos += Point(random.randint(100, 1000), random.randint(100, 1000))
alt, alt_type = self.flight.state.estimate_altitude()
group = self.mission.flight_group(
country=self.country,