16 Commits

Author SHA1 Message Date
Raffson
5fdf38c663
Format with updated black 2024-10-12 17:33:01 +02:00
MetalStormGhost
bfe008775d Implemented PretenseNameGenerator.pretense_trimmed_cp_name to remove Scandic characters from Pretense zone names. 2024-05-28 18:40:25 +03:00
MetalStormGhost
64b1410de8 Implemented support for player controllable carriers in Pretense campaigns. This functionality can be enabled or disabled in settings, because the controllable carriers in Pretense do not build and deploy AI missions autonomously, so the old functionality is retained.
Added new options in settings:
- Carriers steam into wind
- Navmesh to use for Pretense carrier zones
- Remove ground spawn statics, including invisible FARPs, at airbases.
- Percentage of randomly selected aircraft types (only for generated squadrons)
intended to allow the user to increase aircraft variety.

Will now store the ICLS channel and Link4 frequency in missiondata.py CarrierInfo.

Implemented artillery groups as Pretense garrisons. Artillery groups are spawned by the Artillery Bunker. Will now also ensure that the logistics units spawned as part of Pretense garrisons are actually capable of ammo resupply.

Fixed the Pretense generator generating a bit too many missions per squadron. Ground spawns: Also hot start aircraft which require ground crew support (ground air or chock removal) which might not be available at roadbases. Also, pretensetgogenerator.py will now correctly handle air defence units in ground_unit_of_class(). Added Roland groups in the Pretense generator.
2024-04-06 15:46:11 +03:00
MetalStormGhost
6e7844982d Ground unit presets are now generated from the coalition/faction definitions. 2024-02-06 11:02:14 +02:00
MetalStormGhost
1835743af0 Other coalition TGO spawns are now generated with the correct faction. 2024-02-06 10:59:25 +02:00
MetalStormGhost
18a421f78e Fixed the bug of not generating opposing force ground unit groups at Pretense zones. Added the country name to ground vehicle group names to avoid duplicates. 2024-02-06 10:58:44 +02:00
MetalStormGhost
6c2e14c6d9 Implemented generating amphibious units for Pretense unit groups. Amphibious units are selected out of a pre-defined list. Units which the faction has access to are preferred, but certain default unit types are selected as a fall-back to ensure that all the generated units can swim. 2024-02-06 10:58:43 +02:00
MetalStormGhost
9edb4ecc45 Implemented a list of units which will be removed from Pretense ground assault groups due to pathfinding problems. The units will just remain still instead of advancing. Also added one tank to each group and increased the maximum size of the groups to 5. Removed artillery units from the groups, similarly due to pathfinding problems. 2024-02-06 10:58:41 +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
1d6c8a2453 Now splits the generated Pretense group role properly in create_vehicle_group(). 2024-02-06 10:58:33 +02:00
MetalStormGhost
34fae51189 Fixed Pretense ground unit group id/name handling. 2024-02-06 10:58:30 +02:00
MetalStormGhost
c4effe88ee Implemented adding ground unit groups to pretense data containers. 2024-02-06 10:58:26 +02:00
MetalStormGhost
94d755e9a0 Cleaned up some of my recent Pretense code. 2024-02-06 10:58:21 +02:00
MetalStormGhost
d09cb70948 Will now generate ground units for the Pretense campaign. 2024-02-06 10:58:21 +02:00
MetalStormGhost
86e32b1990 Copied tgogenerator.py as a template/inheritance for generating Pretense campaigns from Retribution campaigns. 2024-02-06 10:58:21 +02:00