From 4759d393f8d73719184c90af8ea002a6678307ce Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 18 Jul 2021 17:21:38 -0700 Subject: [PATCH] Updated Squadrons and pilots (markdown) --- Squadrons-and-pilots.md | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/Squadrons-and-pilots.md b/Squadrons-and-pilots.md index a8b404f..51ade14 100644 --- a/Squadrons-and-pilots.md +++ b/Squadrons-and-pilots.md @@ -125,6 +125,10 @@ The `pilots` field defines AI pilot names that will be used before generating ra The `players` field operates the same as the `pilots` field, but the created pilots will be created as player pilots. + + +The `aircraft` field should match the variant name of the aircraft as specified in the unit data file. For more information about variant names, see https://github.com/dcs-liberation/dcs_liberation/wiki/Custom-Factions#aircraft-and-ground-unit-names. + The `bases` field is new in DCS Liberation 5.0 and can be used to override the default bases that the squadron will operate from. The defaults are set based on the aircraft type: Aircraft type | `shore` | `carrier` | `lha` @@ -136,24 +140,6 @@ Other | true | false | false This can be used for creating Marine Hornet squadrons as in the example above. -#### Aircraft in 4.x and newer - -The aircraft should match the variant name of the aircraft as specified in the unit data file. For more information about variant names, see https://github.com/dcs-liberation/dcs_liberation/wiki/Custom-Factions#aircraft-and-ground-unit-names. - -#### Aircraft in 3.x - -The aircraft should match the key (**the value in quotes**) of the aircraft found in `plane_map` in [planes.py](https://github.com/pydcs/dcs/blob/master/dcs/planes.py) or `helicopter_map` in [helicopters.py](https://github.com/pydcs/dcs/blob/master/dcs/helicopters.py). Note that for modded aircraft these are currently defined in [db.py](https://github.com/dcs-liberation/dcs_liberation/blob/develop/game/db.py#L159-L165) instead. If the code moves and that link becomes out of date, search for a section that looks similar to: - -```python -plane_map["A-4E-C"] = A_4E_C -plane_map["F-22A"] = F_22A -plane_map["MB-339PAN"] = MB_339PAN -plane_map["Su-57"] = Su_57 -plane_map["Hercules"] = Hercules -plane_map["JAS39Gripen"] = JAS39Gripen -plane_map["JAS39Gripen_AG"] = JAS39Gripen_AG -``` - ### Generated squadrons A squadron will be generated for any aircraft that does not have any predefined squadrons available. \ No newline at end of file