17 Commits

Author SHA1 Message Date
MetalStormGhost
cbd230862f Air-start supersonic AI aircraft if the campaign is being flown in a WWII terrain. This will improve these terrains' use in cold war campaigns.
Air-start AI fixed wing (non-VTOL) aircraft if the campaign is being flown in the South Atlantic terrain and the airfield is one of the Harrier-only ones in East Falklands. This will help avoid AI aircraft from smashing into the end of the runway and exploding.
2024-05-04 09:26:02 +03:00
MetalStormGhost
de0802a3c2 Implemented new options in settings:
- Pretense: Extra friendly zone connections - Add connections from each zone to this many closest friendly zones, which don't have an existing supply route defined in the campaign.
- Number of cargo planes per side
- Number of AI SEAD flights per control point / zone
- Number of AI CAS flights per control point / zone
- Number of AI BAI flights per control point / zone
- Number of AI Strike flights per control point / zone
- Number of AI BARCAP flights per control point / zone
- Number of AI aircraft per flight
- Number of player flights per aircraft type at each base
- Number of AI cargo planes per side

Implemented CAS helo mission handling for Pretense. Implemented separate pretense_air_groups container for storing/referencing Flight objects. Tweaked the supply costs of SAM sites and Command centers. Will no longer generate player air starts at roadbases either. Restored the missing DEAD flights to Pretense. Removed spawning of frontline units and moved the JTAC spawning to pretensemissiongenerator.py
2024-02-06 10:59:21 +02:00
MetalStormGhost
a3575995bd Restored compatibility of the Pretense generator after the timedelta -> datetime change and other changes caused by the Liberation merge/sync. 2024-02-06 10:58:44 +02:00
MetalStormGhost
9d9740cdb3 Added missing generation of AI BAI flights. Player flight groups are now generated as single-ship groups to support the Pretense missions for all players. Moved repetitive code in PretenseFlightGroupSpawner to insert_into_pretense() method. Disabled spawning of air assault statics by PretenseFlightGroupConfigurator since they are unnecessary in Pretense. 2024-02-06 10:58:39 +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
d890ef0808 Implemented generating player slots in the Pretense campaign. 2024-02-06 10:58:36 +02:00
Raffson
087a38d105 imports 2024-02-06 10:58:35 +02:00
MetalStormGhost
94c1455249 Now generates air units for both sides at airfields. 2024-02-06 10:58:34 +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
3809e28a6a Fixed conflicting types for cp in generate_mid_mission(). 2024-02-06 10:58:32 +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
5687c15c21 Fixed missing return statement with isinstance(cp, OffMapSpawn). 2024-02-06 10:58:27 +02:00
MetalStormGhost
73f7d94bda Dynamically generate Pretense air groups (pretense/pretenseluagenerator.py) 2024-02-06 10:58:26 +02:00
MetalStormGhost
84c20e8d81 ntentionally don't spawn anything at OffMapSpawns in Pretense 2024-02-06 10:58:24 +02:00
MetalStormGhost
676e4dcebf Implemented generating trigger zones for supply routes, theater ground objects and helicopter supply points. Implemented name generator for Pretense air units. 2024-02-06 10:58:20 +02:00
MetalStormGhost
d6ab4e9891 Copied flightgroupspawner.py as a template/inheritance for generating Pretense campaigns from Retribution campaigns. 2024-02-06 10:58:20 +02:00