Revert attempt at improving convoy spawning

Unfortunately this quick fix didn't do the trick, we'll probably have to stick with #91
This commit is contained in:
Raffson 2023-06-04 12:39:58 +02:00
parent c559d6e2be
commit 2251018de2
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 0 additions and 18 deletions

View File

@ -7,7 +7,6 @@
* **[UI]** Added fuel selector in flight's edit window. * **[UI]** Added fuel selector in flight's edit window.
* **[Plugins]** Expose Splash Damage's "game_messages" option and set its default to false. * **[Plugins]** Expose Splash Damage's "game_messages" option and set its default to false.
* **[Mission Generation]** Improved AI SEAD capabilities, allowing for mixed loadouts using Decoys, ARMs & ASMs. * **[Mission Generation]** Improved AI SEAD capabilities, allowing for mixed loadouts using Decoys, ARMs & ASMs.
* **[Mission Generation]** Convoys now try to get moving immediately (with cone formation) to avoid taking a long time to form up to move on road. Credit to Farrago for this approach.
* **[Modding]** Support for A-7E Corsair II (presumed latest available version) * **[Modding]** Support for A-7E Corsair II (presumed latest available version)
* **[Squadrons]** Added many new squadron's by Adecarcer * **[Squadrons]** Added many new squadron's by Adecarcer
* **[Plugins]** Updated 'expl_table' in Splash Damage script. * **[Plugins]** Updated 'expl_table' in Splash Damage script.

View File

@ -11,7 +11,6 @@ from dcs.unitgroup import VehicleGroup
from game.dcs.groundunittype import GroundUnitType from game.dcs.groundunittype import GroundUnitType
from game.missiongenerator.groundforcepainter import GroundForcePainter from game.missiongenerator.groundforcepainter import GroundForcePainter
from game.theater import FrontLine
from game.transfers import Convoy from game.transfers import Convoy
from game.unitmap import UnitMap from game.unitmap import UnitMap
from game.utils import kph from game.utils import kph
@ -43,22 +42,6 @@ class ConvoyGenerator:
) )
if self.game.settings.convoys_travel_full_distance: if self.game.settings.convoys_travel_full_distance:
frontline = FrontLine(convoy.origin, convoy.destination)
# Add one waypoint with PointAction.Cone and then order the convoy on road.
# This is done to make the convoy start to move immediately, instead of
# waiting a long time for them to form up and actually start moving.
# Credit to Farrago for suggesting this.
group.add_waypoint(
frontline.segments[0].point_a,
speed=kph(40).kph,
move_formation=PointAction.Cone,
)
if len(frontline.segments) > 1:
group.add_waypoint(
frontline.segments[1].point_a,
speed=kph(40).kph,
move_formation=PointAction.OnRoad,
)
end_point = convoy.route_end end_point = convoy.route_end
else: else:
# convoys_travel_full_distance is disabled, so have the convoy only move the # convoys_travel_full_distance is disabled, so have the convoy only move the