mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
parent
a94db0ec43
commit
9c0f72921f
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user