CfgGroups – Arma 2
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Horizontoc}}" to "{{TOC|horizontal}}") |
Lou Montana (talk | contribs) m (Remove Horizontoc usage) |
||
Line 905: | Line 905: | ||
local _cfgGroups = configFile >> "CfgGroups"; | local _cfgGroups = configFile >> "CfgGroups"; | ||
"{{<nowiki/> | "{{<nowiki/>TOC|horizontal}}" call _addLine; | ||
for "_sideindex" from 0 to (count _cfgGroups -1) do | for "_sideindex" from 0 to (count _cfgGroups -1) do |
Revision as of 16:01, 29 December 2020
BLUFOR
config: West
USMC
config: USMC
Infantry
config: Infantry
|
Rifle Squad
Composition:config: USMC_InfSquad
|
Fire Team
Composition:config: USMC_FireTeam
|
Fire Team (MG)
Composition:config: USMC_FireTeam_MG
|
Fire Team (AT)
Composition:config: USMC_FireTeam_AT
|
Fire Team (Support)
Composition:config: USMC_FireTeam_Support
|
---|---|---|---|---|---|
Heavy AT Team
Composition:config: USMC_HeavyATTeam
|
Sniper Team
Composition:config: USMC_SniperTeam
|
Force Recon Team
Composition:config: USMC_FRTeam
|
Razor Team
Composition:config: USMC_FRTeam_Razor
| ||
Motorized Infantry
config: Motorized
|
Motorized Section
Composition:config: USMC_MotInfSection
|
Motorized Section (AT)
Composition:config: USMC_MotInfSection_AT
| |||
Mechanized Infantry
config: Mechanized
|
Mechanized Rifle Squad
Composition:config: USMC_MechInfSquad
|
Recon Section
Composition:config: USMC_MechReconSection
| |||
Armor
config: Armored
|
Tank Platoon
Composition:config: USMC_TankPlatoon
| ||||
Air
config: Air
|
AH-1Z Squadron
Composition:config: USMC_AH1ZSquadron
|
UH-1Y Squadron
Composition:config: USMC_UH1YSquadron
|
MV-22 Squadron
Composition:config: USMC_MV22Squadron
|
MQ-9 Squadron
Composition:config: USMC_MQ9Squadron
|
F-35B Squadron
Composition:config: USMC_F35Squadron
|
AV-8B Fighter Squadron
Composition:config: USMC_AV8BFighterSquadron
|
AV-8B Bomber Squadron
Composition:config: USMC_AV8BBomberSquadron
|
CDF
config: CDF
Infantry
config: Infantry
|
Infantry Squad
Composition:config: CDF_InfSquad
|
Weapons Squad
Composition:config: CDF_InfSquad_Weapons
|
Infantry Section (AT)
Composition:config: CDF_InfSection_AT
|
Infantry Section (AA)
Composition:config: CDF_InfSection_AA
|
Infantry Section (MG)
Composition:config: CDF_InfSection_MG
|
---|---|---|---|---|---|
Patrol
Composition:config: CDF_InfSection_Patrol
|
Sniper Team
Composition:config: CDF_SniperTeam
| ||||
Motorized Infantry
config: Motorized
|
Motorized Infantry Squad
Composition:config: CDF_MotInfSquad
|
Motorized Infantry Patrol
Composition:config: CDF_MotInfSection
|
Motorized Weapons Section
Composition:config: CDF_MotInfSection_Weapons
| ||
Mechanized Infantry
config: Mechanized
|
Mechanized Rifle Squad
Composition:config: CDF_MechInfSquad
|
Mechanized Recon Section
Composition:config: CDF_MechReconSection
|
Mechanized Recon Section (AT)
Composition:config: CDF_MechATSection
| ||
Armor
config: Armored
|
Tank Platoon
Composition:config: CDF_TankPlatoon
| ||||
Air
config: Air
|
Mi-24D Squadron
Composition:config: CDF_Mi24DSquadron
|
Mi-8 Squadron
Composition:config: CDF_Mi8Squadron
|
OPFOR
config: East
Russia
config: RU
Infantry
config: Infantry
|
Infantry Squad
Composition:config: RU_InfSquad
|
Infantry Section
Composition:config: RU_InfSection
|
Infantry Section (AT)
Composition:config: RU_InfSection_AT
|
Infantry Section (AA)
Composition:config: RU_InfSection_AA
|
Infantry Section (MG)
Composition:config: RU_InfSection_MG
|
---|---|---|---|---|---|
Sniper Team
Composition:config: RU_SniperTeam
|
Spetsnaz Team
Composition:config: RUS_ReconTeam
|
MVD Assault Team
Composition:config: MVD_AssaultTeam
| |||
Motorized Infantry
config: Motorized
|
Motorized Infantry Squad
Composition:config: RU_MotInfSquad
|
Motorized Recon Section
Composition:config: RU_MotInfSection_Recon
|
Motorized Patrol
Composition:config: RU_MotInfSection_Patrol
| ||
Mechanized Infantry
config: Mechanized
|
Motor Rifles (BMP)
Composition:config: RU_MechInfSquad_1
|
Motor Rifles (BTR)
Composition:config: RU_MechInfSquad_2
| |||
Armor
config: Armored
|
Tank Platoon
Composition:config: RU_TankPlatoon
| ||||
Air
config: Air
|
Mi-24V Squadron
Composition:config: RU_Mi24VSquadron
|
Mi-24P Squadron
Composition:config: RU_Mi24PSquadron
|
Pchela-1T Squadron
Composition:config: RU_Pchela1TSquadron
|
Ka-52 Squadron
Composition:config: RU_Ka52Squadron
|
Mi-8 Squadron
Composition:config: RU_Mi8Squadron
|
Su-34 Fighter Squadron
Composition:config: RU_Su34FighterSquadron
|
Insurgents
config: INS
Infantry
config: Infantry
|
Group
Composition:config: INS_InfSquad
|
Weapons Group
Composition:config: INS_InfSquad_Weapons
|
AT Team
Composition:config: INS_InfSection_AT
|
AA Team
Composition:config: INS_InfSection_AA
|
Sniper Team
Composition:config: INS_SniperTeam
|
---|---|---|---|---|---|
Militia
Composition:config: INS_MilitiaSquad
| |||||
Motorized Infantry
config: Motorized
|
Motorized Group
Composition:config: INS_MotInfSquad
|
Technicals
Composition:config: INS_MotInfSection
| |||
Mechanized Infantry
config: Mechanized
|
Mechanized Group
Composition:config: INS_MechInfSquad
|
Mechanized Patrol
Composition:config: INS_MechInfSection
|
Mechanized Section (AT)
Composition:config: INS_MechInfSection_AT
| ||
Armor
config: Armored
|
Tank Section
Composition:config: INS_TankSection
| ||||
Air
config: Air
|
Mi-8 Squadron
Composition:config: INS_Mi8Squadron
|
Independent
config: Guerrila
Guerillas
config: GUE
Infantry
config: Infantry
|
Group
Composition:config: GUE_InfSquad
|
Group (Assault)
Composition:config: GUE_InfSquad_Assault
|
Group (Weapons)
Composition:config: GUE_InfSquad_Weapons
|
Patrol 1
Composition:config: GUE_InfTeam_1
|
Patrol 2
Composition:config: GUE_InfTeam_2
|
---|---|---|---|---|---|
AT Team
Composition:config: GUE_InfTeam_AT
|
AA Team
Composition:config: GUE_GrpInf_TeamAA
|
Sniper Team
Composition:config: GUE_GrpInf_TeamSniper
|
Militia
Composition:config: GUE_MilitiaSquad
| ||
Motorized Infantry
config: Motorized
|
Technicals
Composition:config: GUE_MotInfSection
|
Motorized Group
Composition:config: GUE_MotInfSquad
| |||
Mechanized Infantry
config: Mechanized
|
Mechanized Patrol
Composition:config: GUE_MechInfSection
|
Mechanized Group
Composition:config: GUE_MechInfSquad
| |||
Armor
config: Armored
|
Tank Section
Composition:config: GUE_TankSection
|
Civilian
config: Civilian
Civilians
config: CIV
Civilian Groups
config: Infantry
|
Crowd
Composition:config: CIV_Crowd
|
City people 1
Composition:config: CIV_City_1
|
City people 2
Composition:config: CIV_City_2
|
Village people 1
Composition:config: CIV_Village_1
|
Village people 2
Composition:config: CIV_Village_2
|
---|
- Export function
local _result = ""; local _addLine = { _result = _result + _this + (toString [10]); }; local _maxGroupWidth = 5; local _cfgGroups = configFile >> "CfgGroups"; "{{TOC|horizontal}}" call _addLine; for "_sideindex" from 0 to (count _cfgGroups -1) do { // side level local _sideConfig = _cfgGroups select _sideindex; if (isClass _sideConfig) then { if (_sideindex > 0) then { "" call _addLine; }; "" call _addLine; "== " + getText (_sideConfig >> "name") + " ==" call _addLine; "" call _addLine; "config: " + configName _sideConfig call _addLine; "" call _addLine; for "_factionindex" from 0 to count _sideConfig -1 do { // faction level local _factionConfig = _sideConfig select _factionindex; if (isClass _factionConfig) then { "=== " + getText (_factionConfig >> "name") + " ===" call _addLine; "" call _addLine; "config: " + configName _factionConfig call _addLine; "" call _addLine; "{| class=""wikitable""" call _addLine; for "_grouptypeindex" from 0 to count _factionConfig -1 do { // groupType level local _groupTypeConfig = _factionConfig select _grouptypeindex; if (isClass _groupTypeConfig) then { local _count = 0; for "_cnt" from 0 to count _groupTypeConfig -1 do { if (isClass (_groupTypeConfig select _cnt)) then { _count = _count + 1; }; }; local _groupLines = ceil (_count / _maxGroupWidth); "|- style=""vertical-align: top""" call _addLine; "! style=""vertical-align: middle; white-space: pre""" + (["", format [" rowspan=""%1""", _groupLines]] select (_groupLines > 1)) + " | " + getText (_groupTypeConfig >> "name") call _addLine; "<div style=""font-weight: normal"">config: " + configName _groupTypeConfig + "</div>" call _addLine; local _groupRow = 1; for "_groupindex" from 0 to count _groupTypeConfig -1 do { // group level local _groupConfig = _groupTypeConfig select _groupindex; if (isClass _groupConfig) then { "| <div style=""white-space: pre"">" + getText(_groupConfig >> "name") + "<br>config: " + configName _groupConfig + "</div>" call _addLine; "Composition:<div style=""" + (["", "columns: 2; "] select (count _groupConfig > 600 /* if needed */)) + "font-size: small"" class=""mw-collapsible mw-collapsed""><div style=""margin-right: 5em; padding-top: 1em"">" call _addLine; for "_unitindex" from 0 to count _groupConfig -1 do { local _unitClass = _groupConfig select _unitindex; if (isClass _unitClass) then { ("# " + getText (_unitClass >> "vehicle")) call _addLine; }; }; "</div></div>" call _addLine; _groupRow = _groupRow + 1; if (_groupRow > _maxGroupWidth) then { "|-" call _addLine; _groupRow = 1; }; }; }; "|-" call _addLine; }; }; "|}" call _addLine; }; }; }; }; "" call _addLine; "" call _addLine; "[[Category: CfgGroups]]" call _addLine; "" call _addLine; copyToClipboard _result; _result;↑ Back to spoiler's top