From 57fb8ed4302c0705408fda804014548ff21058b9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 18 Jun 2021 20:38:43 -0700 Subject: [PATCH] Updated Squadrons and pilots (markdown) --- Squadrons-and-pilots.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/Squadrons-and-pilots.md b/Squadrons-and-pilots.md index 0733d1f..4e4cf46 100644 --- a/Squadrons-and-pilots.md +++ b/Squadrons-and-pilots.md @@ -86,7 +86,7 @@ name: VFA-113 nickname: Stingers country: USA role: Strike Fighter -aircraft: FA-18C_hornet +aircraft: F/A-18C Hornet (Lot 20) livery: VFA-113 mission_types: - Anti-ship @@ -110,17 +110,7 @@ players: - Corran Horn ``` -The country and aircraft fields will be used to match squadrons that are found against the squadrons being used. The country should be spelled exactly as it would be in a faction file. Factions that use Combined Joint Task Forces nations will have access to all squadrons with matching aircraft. 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 -``` +The country and aircraft fields will be used to match squadrons that are found against the squadrons being used. The country should be spelled exactly as it would be in a faction file. Factions that use Combined Joint Task Forces nations will have access to all squadrons with matching aircraft. The `role` field is currently non-functional. The `role` field will later be shown in the UI as information for the player. @@ -132,6 +122,24 @@ 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. +#### 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