CfgGroups – Arma 2: Operation Arrowhead
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix code) |
||
Line 1,333: | Line 1,333: | ||
; Export function: | ; Export function: | ||
<spoiler text="Show code"> | <spoiler text="Show code"> | ||
local _result = ""; | |||
local _addLine = { | |||
_result = _result + _this + (toString [10]); | _result = _result + _this + (toString [10]); | ||
}; | }; | ||
local _maxGroupWidth = 5; | |||
local _cfgGroups = configFile >> "CfgGroups"; | |||
"{{<nowiki/>Horizontoc}}" call _addLine; | "{{<nowiki/>Horizontoc}}" call _addLine; | ||
for "_sideindex" from 0 to (count _cfgGroups -1) do | for "_sideindex" from 0 to (count _cfgGroups -1) do | ||
{ // side level | { // side level | ||
local _sideConfig = _cfgGroups select _sideindex; | |||
if (isClass _sideConfig) then | if (isClass _sideConfig) then | ||
{ | { | ||
if (_sideindex > 0) then | if (_sideindex > 0) then | ||
{ | { | ||
Line 1,373: | Line 1,363: | ||
{ // faction level | { // faction level | ||
local _factionConfig = _sideConfig select _factionindex; | |||
if (isClass _factionConfig) then | if (isClass _factionConfig) then | ||
Line 1,386: | Line 1,376: | ||
{ // groupType level | { // groupType level | ||
local _groupTypeConfig = _factionConfig select _grouptypeindex; | |||
if (isClass _groupTypeConfig) then | 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; }; }; | 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: top""" call _addLine; | ||
Line 1,399: | Line 1,389: | ||
"<div style=""font-weight: normal"">config: " + configName _groupTypeConfig + "</div>" 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 | for "_groupindex" from 0 to count _groupTypeConfig -1 do | ||
{ // group level | { // group level | ||
local _groupConfig = _groupTypeConfig select _groupindex; | |||
if (isClass _groupConfig) then | if (isClass _groupConfig) then | ||
Line 1,414: | Line 1,404: | ||
for "_unitindex" from 0 to count _groupConfig -1 do | for "_unitindex" from 0 to count _groupConfig -1 do | ||
{ | { | ||
local _unitClass = _groupConfig select _unitindex; | |||
if (isClass _unitClass) then | if (isClass _unitClass) then | ||
{ | { |
Revision as of 00:05, 3 June 2020
BLUFOR
config: West
U.S. Army
config: BIS_US
Infantry
config: Infantry
|
Rifle Squad
Composition:config: US_RifleSquad
|
Weapons Squad
Composition:config: US_WeaponsSquad
|
Team
Composition:config: US_Team
|
Team (MG)
Composition:config: US_TeamMG
|
Team (AT)
Composition:config: US_TeamAT
|
---|---|---|---|---|---|
Team (Support)
Composition:config: US_TeamSupport
|
Heavy AT Team
Composition:config: US_HeavyATTeam
|
Sniper Team
Composition:config: US_SniperTeam
|
Delta Force Team
Composition:config: US_DeltaForceTeam
| ||
Motorized Infantry
config: Motorized
|
Motorized Section
Composition:config: US_MotorizedSection
|
Motorized Section (AT)
Composition:config: US_MotorizedSectionAT
|
Delta Patrol (ATV)
Composition:config: US_DeltaPatrolATV
|
Delta Patrol (HMMMX)
Composition:config: US_DeltaPatrolHMMWV
| |
Mechanized Infantry
config: Mechanized
|
Mechanized Infantry Squad (ICV M2)
Composition:config: US_MechanizedInfantrySquadICVM2
|
Mechanized Infantry Squad (ICV MK19)
Composition:config: US_MechanizedInfantrySquadICVMK19
|
Mechanized Recon Section
Composition:config: US_MechanizedReconSection
| ||
Armor
config: Armored
|
Stryker MGS Platoon
Composition:config: US_MGSPlatoon
|
M1A2 Platoon
Composition:config: US_M1A2Platoon
|
M1A1 Platoon
Composition:config: US_M1A1Platoon
|
M1A2 Section
Composition:config: US_M1A2Section
| |
Air
config: Air
|
A-10 flight
Composition:config: US_A10Flight
|
AH-64D flight
Composition:config: US_AH64DFlight
|
AH-6J flight
Composition:config: US_AH6JFlight
|
AH-6X flight
Composition:config: US_AH6XFlight
|
C-130J flight
Composition:config: US_C130JFlight
|
CH-47F flight
Composition:config: US_CH47FFlight
|
MH-6J flight
Composition:config: US_MH6JFlight
|
MQ-9 flight
Composition:config: US_MQ9Flight
|
UH-60M flight
Composition:config: US_UH60MFlight
|
ACR
config: BIS_CZ
Infantry
config: Infantry
|
Infantry Patrol
Composition:config: ACR_InfantryPatrol
|
Special Forces Team
Composition:config: ACR_SpecialForcesTeam
|
Team (woodland)
Composition:config: ACR_InfantryTeam_WDL
|
Team (desert)
Composition:config: ACR_InfantryTeam_DST
|
Infantry patrol (woodland)
Composition:config: ACR_InfantryPatrol_WDL
|
---|---|---|---|---|---|
Motorized Infantry
config: Motorized
|
Motorized Patrol
Composition:config: ACR_MotorizedPatrol
|
Special Forces Patrol (Land Rover)
Composition:config: ACR_SpecialForcesPatrolLandRover
|
Special Forces Patrol (ATV)
Composition:config: ACR_SpecialForcesPatrolATV
|
Inf. section (woodland)
Composition:config: ACR_MotorizedSection_WDL
|
Inf. section (desert)
Composition:config: ACR_MotorizedSection_DST
|
Patrol (woodland)
Composition:config: ACR_MechanizedRecon_WDL
| |||||
Air
config: Air
|
Mi-171Sh flight
Composition:config: ACR_Mi171ShFlight
|
Mi-171Sh (rockets) flight
Composition:config: ACR_Mi171Sh_RocketsFlight
|
Germany
config: BIS_GER
Infantry
config: Infantry
|
KSK Team
Composition:config: KSKTeam
|
---|
BAF
config: BIS_BAF_MTP
Infantry (MTP)
config: Infantry
|
Section
Composition:config: BAF_Section_MTP
|
Fireteam
Composition:config: BAF_Fireteam_MTP
|
Fireteam (support)
Composition:config: BAF_Support_MTP
|
Fireteam (MG)
Composition:config: BAF_MG_MTP
|
Fireteam (AT)
Composition:config: BAF_AT_MTP
|
---|---|---|---|---|---|
Tankbusters
Composition:config: BAF_HAT_MTP
|
Sniper Team
Composition:config: BAF_Snipers_MTP
|
Sniper Team (night)
Composition:config: BAF_SnipersN_MTP
| |||
Infantry (desert)
config: Infantry_DDPM
|
Section
Composition:config: BAF_Section_DDPM
|
Fireteam
Composition:config: BAF_Fireteam_DDPM
|
Fireteam (support)
Composition:config: BAF_Support_DDPM
|
Fireteam (MG)
Composition:config: BAF_MG_DDPM
|
Fireteam (AT)
Composition:config: BAF_AT_DDPM
|
Tankbusters
Composition:config: BAF_HAT_DDPM
| |||||
Infantry (woodland)
config: Infantry_W
|
Section
Composition:config: BAF_Section_W
|
Fireteam
Composition:config: BAF_Fireteam_W
|
Fireteam (support)
Composition:config: BAF_Support_W
|
Fireteam (MG)
Composition:config: BAF_MG_W
|
Fireteam (AT)
Composition:config: BAF_AT_W
|
Tankbusters
Composition:config: BAF_HAT_W
|
Sniper Team
Composition:config: BAF_Snipers_W
|
Sniper Team (night)
Composition:config: BAF_SnipersN_W
| |||
Motorized Infantry
config: Motorized_MTP
|
Motorized Patrol (desert)
Composition:config: BAF_MPatrol_MTP
|
Jackal Team (desert)
Composition:config: BAF_MTeam_MTP
|
Jackal Section (desert)
Composition:config: BAF_MSection_MTP
|
Motorized Patrol (woodland)
Composition:config: BAF_MPatrol_W
|
Jackal Team (woodland)
Composition:config: BAF_MTeam_W
|
Jackal Section (woodland)
Composition:config: BAF_MSection_W
| |||||
Mechanized Infantry
config: Mechanized
|
Mech. Inf. Section (desert)
Composition:config: BAF_MechSec_MTP
|
Mech. AT Section (desert)
Composition:config: BAF_MechAT_MTP
|
Mech. Inf. Section (woodland)
Composition:config: BAF_MechSec_W
|
Mech. AT Section (woodland)
Composition:config: BAF_MechAT_W
| |
Armour
config: Armored
|
Warrior Platoon (desert)
Composition:config: BAF_WPlatoon_MTP
|
Warrior Platoon (woodland)
Composition:config: BAF_WPlatoon_W
| |||
Air
config: Air
|
Chinook HC4 Squadron
Composition:config: BAF_CH47FFlight
|
Wildcat AH11 Squadron
Composition:config: BAF_AW159LynxFlight
|
Apache AH1 Squadron
Composition:config: BAF_AH1DFlight
|
Merlin HC3 Squadron
Composition:config: BAF_HC3DMerlinFlight
|
OPFOR
config: East
Takistan Army
config: BIS_TK
Infantry
config: Infantry
|
Infantry Squad
Composition:config: TK_InfantrySquad
|
Infantry Section
Composition:config: TK_InfantrySection
|
Infantry Section (AT)
Composition:config: TK_InfantrySectionAT
|
Infantry Section (AA)
Composition:config: TK_InfantrySectionAA
|
Infantry Section (MG)
Composition:config: TK_InfantrySectionMG
|
---|---|---|---|---|---|
Sniper Team
Composition:config: TK_SniperTeam
|
Special Purpose Squad
Composition:config: TK_SpecialPurposeSquad
| ||||
Motorized Infantry
config: Motorized
|
Motorized Infantry Squad
Composition:config: TK_MotorizedInfanterySquad
|
Motorized Recon Section
Composition:config: TK_MotorizedReconSection
|
Motorized Patrol
Composition:config: TK_MotorizedPatrol
| ||
Mechanized Infantry
config: Mechanized
|
Mechanized Infantry Squad (BMP-2)
Composition:config: TK_MechanizedInfantrySquadBMP2
|
Mechanized Infantry Squad (BTR-60)
Composition:config: TK_MechanizedInfantrySquadBTR60
|
Mechanized Special Squad
Composition:config: TK_MechanizedSpecialSquad
|
Mechanized Recon Section
Composition:config: TK_MechanizedReconSection
|
Mechanized Recon Section (AT)
Composition:config: TK_MechanizedReconSectionAT
|
Armor
config: Armored
|
T-72 Platoon
Composition:config: TK_T72Platoon
|
T-55 Platoon
Composition:config: TK_T55Platoon
|
T-34 Platoon
Composition:config: TK_T34Platoon
| ||
Air
config: Air
|
An-2 flight
Composition:config: TK_An2Flight
|
Mi-24D flight
Composition:config: TK_Mi24_DFlight
|
Mi-8 flight
Composition:config: TK_Mi_17Flight
|
Su-25 flight
Composition:config: TK_Su25Flight
|
UH-1H flight
Composition:config: TK_UH1HFlight
|
Takistani Republican Militia
config: BIS_TK_INS
Infantry
config: Infantry
|
Militia Group
Composition:config: TK_INS_Group
|
Militia Patrol
Composition:config: TK_INS_Patrol
|
Militia Team (AA)
Composition:config: TK_INS_AATeam
|
Militia Team (AT)
Composition:config: TK_INS_ATTeam
|
---|---|---|---|---|
Motorized Infantry
config: Motorized
|
Technicals
Composition:config: TK_INS_Technicals
|
Motorized Group
Composition:config: TK_INS_MotorizedGroup
|
Motorized Patrol (BTR-40)
Composition:config: TK_INS_MotorizedPatrolBTR40
|
Independent
config: Guerrila
Guerillas (Takistan)
config: BIS_TK_GUE
Infantry
config: Infantry
|
Group
Composition:config: TK_GUE_Group
|
Group (Weapons)
Composition:config: TK_GUE_GroupWeapons
|
Patrol
Composition:config: TK_GUE_Patrol
|
Team (AT)
Composition:config: TK_GUE_ATTeam
|
Team (AA)
Composition:config: TK_GUE_AATeam
|
---|---|---|---|---|---|
Sniper Team
Composition:config: TK_GUE_SniperTeam
| |||||
Motorized Infantry
config: Motorized
|
Technicals
Composition:config: TK_GUE_Technicals
|
Motorized Group
Composition:config: TK_GUE_MotorizedGroup
|
Motorized Patrol (BTR-40)
Composition:config: TK_GUE_MotorizedPatrol
| ||
Mechanized Infantry
config: Mechanized
|
Mechanized Patrol
Composition:config: TK_GUE_MechanizedPatrol
|
Mechanized Group (BTR-40)
Composition:config: TK_GUE_MechanizedGroup
| |||
Armor
config: Armored
|
T-55 Section
Composition:config: TK_GUE_T55Section
|
T-34 Platoon
Composition:config: TK_GUE_T34Platoon
| |||
Air
config: Air
|
UH-1H Squadron
Composition:config: TK_GUE_UH1HFlight
|
UNO
config: BIS_UN
Infantry
config: Infantry
|
Infantry Patrol
Composition:config: UN_Patrol
| |
---|---|---|
Motorized Infantry
config: Motorized
|
Motorized Patrol
Composition:config: UN_MotorizedPatrol
| |
Mechanized Infantry
config: Mechanized
|
Mechanized Patrol (BMP-2)
Composition:config: UN_MechanizedPatrolBMP2
|
Mechanized Patrol (M113)
Composition:config: UN_MechanizedPatrolM113
|
PMC
config: PMC_BAF
Infantry
config: Infantry
|
VIP Bodyguard
Composition:config: PMC_VIP_Bodyguard
|
Field Security Patrol
Composition:config: PMC_Field_Security_Patrol
|
Field Security Team
Composition:config: PMC_Field_Security_Team
|
Security Detail
Composition:config: PMC_Security_Detail
|
Security Specialists
Composition:config: PMC_Security_Specialists
|
---|---|---|---|---|---|
Field Support Team
Composition:config: PMC_Field_Support_Team
|
Team Sword
Composition:config: PMC_Team_Sword
| ||||
Motorized Infantry
config: Motorized
|
Patrol
Composition:config: PMC_Patrol
|
Tactical Patrol
Composition:config: PMC_Tactical_Patrol
|
Armored Patrol
Composition:config: PMC_Armored_Patrol
|
Civilian
config: Civilian
Takistanis
config: BIS_TK_CIV
Civilian Groups
config: Infantry
|
Crowd 1
Composition:config: TK_CIV_Crowd1
|
Crowd 2
Composition:config: TK_CIV_Crowd2
|
---|
- Export function
local _result = ""; local _addLine = { _result = _result + _this + (toString [10]); }; local _maxGroupWidth = 5; local _cfgGroups = configFile >> "CfgGroups"; "{{Horizontoc}}" 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