5015 Commits

Author SHA1 Message Date
MetalStormGhost
fbbc2536a1 Now generates one transport helicopter squadron for each control point which can operate one. Also implemented generating several Pretense cargo plane squadrons, defined by PRETENSE_AI_CARGO_PLANES_PER_SIDE. Cleaned up PretenseMissionGenerator.generate_air_units() a bit. 2024-02-06 10:58:38 +02:00
Raffson
6f4a12658d Formatting 2024-02-06 10:58:38 +02:00
MetalStormGhost
1bcecd5b3a Fixed not all generated flights getting inserted into Pretense data structures. 2024-02-06 10:58:37 +02:00
MetalStormGhost
7653866ddb Improved the typing of game.pretense_air 2024-02-06 10:58:37 +02:00
MetalStormGhost
ecaa68f32a Added naval units (supply/cargo/landing ships) to Pretense scripts. 2024-02-06 10:58:37 +02:00
MetalStormGhost
bd0deed16a Raise NoParkingSlotError instead of RuntimeError when running out of ground spawns. 2024-02-06 10:58:36 +02:00
MetalStormGhost
d890ef0808 Implemented generating player slots in the Pretense campaign. 2024-02-06 10:58:36 +02:00
MetalStormGhost
8520764308 Run aircraft_generator.generate_packages() only once per ATO, instead of multiple times. Fixed the duplicated flights issue. 2024-02-06 10:58:36 +02:00
MetalStormGhost
1e3f6baceb Changed tanker_tacan from "N/A" to 0.0 when the tanker is not compatible with TACAN, in order to avoid mission script errors. 2024-02-06 10:58:36 +02:00
MetalStormGhost
00bcd547d3 Implemented a separate generate_packages() method in PretenseAircraftGenerator to prevent generating the same ATO multiple times over. 2024-02-06 10:58:35 +02:00
Raffson
a30fb0f368 Blast through errors 2024-02-06 10:58:35 +02:00
Raffson
087a38d105 imports 2024-02-06 10:58:35 +02:00
MetalStormGhost
bc92a2ade3 Don't spawn flights for the other squadron in generate_pretense_aircraft(). 2024-02-06 10:58:34 +02:00
MetalStormGhost
bc27dc4621 Cleaned up some code. 2024-02-06 10:58:34 +02:00
MetalStormGhost
94c1455249 Now generates air units for both sides at airfields. 2024-02-06 10:58:34 +02:00
MetalStormGhost
4be122e11a Split the Pretense zone definition generation into separate methods: generate_pretense_zone_land() for land control points and generate_pretense_zone_sea() for carriers/LHAs. 2024-02-06 10:58:34 +02:00
MetalStormGhost
f7c6f14220 Fixed FlightType.AEWC and FlightType.REFUELING handling in generate_pretense_aircraft(). 2024-02-06 10:58:33 +02:00
MetalStormGhost
c7ec3283bd Added configuration constants for flights generated for Pretense. Fixed a bug which caused only one squadron per CP to be generated. Will now not generate Pretense cargo flights from Retribution off-map spawns, but instead will generate own air spawn points for them. Added a helper function initialize_pretense_data_structures(). 2024-02-06 10:58:33 +02:00
MetalStormGhost
1d6c8a2453 Now splits the generated Pretense group role properly in create_vehicle_group(). 2024-02-06 10:58:33 +02:00
MetalStormGhost
730b982247 Will now dynamically generate offmapZones for supply cargo aircraft. 2024-02-06 10:58:33 +02:00
MetalStormGhost
8aea905640 Cleaned up pretense/pretenseaircraftgenerator.py
Moved a lot of logic into proper methods and added comments for all of those methods.
2024-02-06 10:58:32 +02:00
MetalStormGhost
3809e28a6a Fixed conflicting types for cp in generate_mid_mission(). 2024-02-06 10:58:32 +02:00
MetalStormGhost
19984636e3 Converted closest_friendly_control_points_to from returning a tuple of the two closest control points to returning a list of all in sorted order. 2024-02-06 10:58:32 +02:00
MetalStormGhost
f4c5c96fba Fixed a type assignment in pretensecargo.py 2024-02-06 10:58:31 +02:00
MetalStormGhost
2e889325e1 Calling the constructor of MissionGenerator in PretenseMissionGenerator in unnecessary, so leaving it out. 2024-02-06 10:58:31 +02:00
MetalStormGhost
a787cd4f70 Disabled the base Retribution plugin in pretenseluagenerator.py and disabled adding zones for OffMapSpawns. 2024-02-06 10:58:31 +02:00
MetalStormGhost
a975e2c2dc Now connects more isolated zones in Pretense. 2024-02-06 10:58:30 +02:00
MetalStormGhost
ddc5709a17 Add CJTF factions to the coalitions in Pretense, if they're not being used in the Retribution campaign. 2024-02-06 10:58:30 +02:00
MetalStormGhost
34fae51189 Fixed Pretense ground unit group id/name handling. 2024-02-06 10:58:30 +02:00
MetalStormGhost
5621649f10 Also connect carrier and LHA control points to adjacent friendly points in Pretense. Enlarged the carrier trigger zones. 2024-02-06 10:58:29 +02:00
MetalStormGhost
f4a239aaad Split the init_body.lua script in two parts to facilitate dynamic JTAC spawning. 2024-02-06 10:58:29 +02:00
MetalStormGhost
46e7f89da9 PretenseFlightGroupSpawner method for spawning mid-mission flights and setting the appropriate Pretense names to them. 2024-02-06 10:58:29 +02:00
MetalStormGhost
b73a18b7b9 Implemented spawning of Pretense cargo aircraft. To support that, implemented a separate flight plan called PretenseCargoFlightPlan. Also, will now automatically generate transport squadrons for factions which don't have pre-defined squadrons for it, but have access to transport aircraft. 2024-02-06 10:58:29 +02:00
MetalStormGhost
4a859e00ae Add CJTF factions to the coalitions in Pretense, if they're not being used in the campaign. 2024-02-06 10:58:28 +02:00
MetalStormGhost
acf035697f Implemented dynamic outputting of JTAC units to the Pretense init script. 2024-02-06 10:58:28 +02:00
MetalStormGhost
04993ddf1b Split the init_body.lua script in two parts. 2024-02-06 10:58:28 +02:00
MetalStormGhost
93265040f6 First version of the generated Pretense campaign running in-game. 2024-02-06 10:58:27 +02:00
MetalStormGhost
d517b1cdeb Now clears Retribution triggers when generating a Pretense campaign. 2024-02-06 10:58:27 +02:00
MetalStormGhost
5687c15c21 Fixed missing return statement with isinstance(cp, OffMapSpawn). 2024-02-06 10:58:27 +02:00
MetalStormGhost
c4effe88ee Implemented adding ground unit groups to pretense data containers. 2024-02-06 10:58:26 +02:00
MetalStormGhost
ab76d18621 Deleted pretense/pretenseflightgroupconfigurator.py since it looks like it's not needed (at least for the time being). 2024-02-06 10:58:26 +02:00
MetalStormGhost
f7e618bd0f Tanker and AWACS frequency, TACAN and variant handling. 2024-02-06 10:58:26 +02:00
MetalStormGhost
73f7d94bda Dynamically generate Pretense air groups (pretense/pretenseluagenerator.py) 2024-02-06 10:58:26 +02:00
MetalStormGhost
33a2c27f5e Copied flightgroupconfigurator.py as a template/inheritance for generating Pretense campaigns from Retribution campaigns. 2024-02-06 10:58:25 +02:00
MetalStormGhost
17533399b3 Removed the reference to (nonexistent) NewPretenseWizard. 2024-02-06 10:58:25 +02:00
MetalStormGhost
cc713f089a First version of PretenseLuaGenerator, inherited from LuaGenerator 2024-02-06 10:58:25 +02:00
MetalStormGhost
84c20e8d81 ntentionally don't spawn anything at OffMapSpawns in Pretense 2024-02-06 10:58:24 +02:00
MetalStormGhost
c126d1dff7 Added newlines to Pretense init scripts. 2024-02-06 10:58:24 +02:00
MetalStormGhost
f500ec916e Split init.lua code into three pieces. 2024-02-06 10:58:24 +02:00
MetalStormGhost
842c2f8aaf Copied init.lua into init_header.lua, init_body.lua and init_footer.lua
The init.lua script will be generated by
 1. injecting the header, then
 2. generating the ZoneCommand zones, then
 3. generating ConnectionManager connections, then
 4. injecting init_body.lua, then
 5. generating sypply injection and finally by
 6. injecting init_footer.lua
2024-02-06 10:58:22 +02:00