summaryrefslogtreecommitdiffstats
path: root/Common/Config/Core/Core_ACR.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
commita3a91d4f45b22fd487ecbc954ad979be5d03efdd (patch)
treea554ab159a347dcd6c00ca1c7c26c1ec3ac0a6bd /Common/Config/Core/Core_ACR.sqf
downloada2wf_chernarus-main.tar.gz
a2wf_chernarus-main.tar.bz2
a2wf_chernarus-main.zip
Diffstat (limited to 'Common/Config/Core/Core_ACR.sqf')
-rw-r--r--Common/Config/Core/Core_ACR.sqf97
1 files changed, 97 insertions, 0 deletions
diff --git a/Common/Config/Core/Core_ACR.sqf b/Common/Config/Core/Core_ACR.sqf
new file mode 100644
index 0000000..2da71ca
--- /dev/null
+++ b/Common/Config/Core/Core_ACR.sqf
@@ -0,0 +1,97 @@
+/* ACR Configuration */
+Private ['_c','_get','_i','_p','_z'];
+
+_c = [];
+_i = [];
+
+/* Infantry */
+_c = _c + ['CZ_Soldier_Light_DES_EP1'];
+_i = _i + [['','',125,4,-1,0,0,0.85,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_DES_EP1'];
+_i = _i + [['','',150,4,-1,0,0,0.85,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_B_DES_EP1'];
+_i = _i + [['','',150,4,-1,0,0,0.85,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_AT_DES_EP1'];
+_i = _i + [['','',310,5,-1,0,0,0.87,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_AMG_DES_EP1'];
+_i = _i + [['','',210,5,-1,1,0,0.85,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_MG_DES_EP1'];
+_i = _i + [['','',220,5,-1,0,0,0.86,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_Sniper_EP1'];
+_i = _i + [['','',280,5,-1,1,0,0.88,'Czech',[]]];
+
+_c = _c + ['CZ_Special_Forces_GL_DES_EP1'];
+_i = _i + [['','',290,5,-1,3,0,0.90,'Czech',[]]];
+
+_c = _c + ['CZ_Special_Forces_MG_DES_EP1'];
+_i = _i + [['','',310,5,-1,3,0,0.90,'Czech',[]]];
+
+_c = _c + ['CZ_Special_Forces_DES_EP1'];
+_i = _i + [['','',285,5,-1,3,0,0.89,'Czech',[]]];
+
+_c = _c + ['CZ_Special_Forces_Scout_DES_EP1'];
+_i = _i + [['','',305,5,-1,3,0,0.90,'Czech',[]]];
+
+_c = _c + ['CZ_Special_Forces_TL_DES_EP1'];
+_i = _i + [['','',310,5,-1,3,0,0.91,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_Pilot_EP1'];
+_i = _i + [['','',120,4,-1,0,0,0.86,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_Office_DES_EP1'];
+_i = _i + [['','',240,5,-1,1,0,0.88,'Czech',[]]];
+
+_c = _c + ['CZ_Soldier_SL_DES_EP1'];
+_i = _i + [['','',220,5,-1,2,0,0.87,'Czech',[]]];
+
+/* Light Vehicles */
+_c = _c + ['ATV_CZ_EP1'];
+_i = _i + [['','',175,15,-2,0,1,0,'Czech',[]]];
+
+_c = _c + ['HMMWV_M1151_M2_CZ_DES_EP1'];
+_i = _i + [['','',850,20,-2,0,1,0,'Czech',[]]];
+
+_c = _c + ['LandRover_CZ_EP1'];
+_i = _i + [['','',275,18,-2,0,1,0,'Czech',[]]];
+
+_c = _c + ['LandRover_Special_CZ_EP1'];
+_i = _i + [['','',700,20,-2,0,1,0,'Czech',[]]];
+
+/* Air Vehicles */
+_c = _c + ['Mi171Sh_CZ_EP1'];
+_i = _i + [['','',7600,35,-2,1,3,0,'Czech',[]]];
+
+_c = _c + ['Mi171Sh_rockets_CZ_EP1'];
+_i = _i + [['','',26500,40,-2,0,3,0,'Czech',[]]];
+
+for '_z' from 0 to (count _c)-1 do {
+ if (isClass (configFile >> 'CfgVehicles' >> (_c select _z))) then {
+ _get = (_c select _z) Call GetNamespace;
+ if (isNil '_get') then {
+ if ((_i select _z) select 0 == '') then {(_i select _z) set [0, [_c select _z,'displayName'] Call GetConfigInfo]};
+ if (typeName ((_i select _z) select 4) == 'SCALAR') then {
+ if (((_i select _z) select 4) == -2) then {
+ _ret = (_c select _z) Call Compile preprocessFile "Common\Functions\Common_GetConfigVehicleCrewSlot.sqf";
+ (_i select _z) set [4, _ret select 0];
+ (_i select _z) set [9, _ret select 1];
+ };
+ };
+ if (WF_Debug) then {(_i select _z) set [3,1]};
+ _p = if ((_c select _z) isKindOf 'Man') then {'portrait'} else {'picture'};
+ (_i select _z) set [1, [_c select _z,_p] Call GetConfigInfo];
+ [_c select _z,_i select _z] Call SetNamespace;
+ } else {
+ diag_log Format ["[WFBE (INIT)][frameno:%2 | ticktime:%3] Core_ACR: Duplicated Element found '%1'",(_c select _z),diag_frameno,diag_tickTime];
+ };
+ } else {
+ diag_log Format ["[WFBE (ERROR)][frameno:%2 | ticktime:%3] Core_ACR: Element '%1' is not a valid class.",(_c select _z),diag_frameno,diag_tickTime];
+ };
+};
+
+diag_log Format ["[WFBE (INIT)][frameno:%2 | ticktime:%3] Core_ACR: Initialization (%1 Elements) - [Done]",count _c,diag_frameno,diag_tickTime]; \ No newline at end of file