diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:38:09 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:38:09 +0300 |
| commit | a3a91d4f45b22fd487ecbc954ad979be5d03efdd (patch) | |
| tree | a554ab159a347dcd6c00ca1c7c26c1ec3ac0a6bd /Common/Config/Core/Core_FR.sqf | |
| download | a2wf_chernarus-main.tar.gz a2wf_chernarus-main.tar.bz2 a2wf_chernarus-main.zip | |
Diffstat (limited to 'Common/Config/Core/Core_FR.sqf')
| -rw-r--r-- | Common/Config/Core/Core_FR.sqf | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/Common/Config/Core/Core_FR.sqf b/Common/Config/Core/Core_FR.sqf new file mode 100644 index 0000000..c5ca87e --- /dev/null +++ b/Common/Config/Core/Core_FR.sqf @@ -0,0 +1,81 @@ +/* FR Configuration */
+private ["_c","_get","_i","_p"];
+
+_c = [];
+_i = [];
+
+/* Infantry */
+_c = _c + ['FR_GL'];
+_i = _i + [['','',260,6,-1,2,0,0.98,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Corpsman'];
+_i = _i + [['','',270,6,-1,2,0,0.98,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Commander'];
+_i = _i + [['','',295,6,-1,2,0,1.00,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_TL'];
+_i = _i + [['','',285,6,-1,2,0,1.00,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Assault_R'];
+_i = _i + [['','',280,6,-1,2,0,0.99,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Assault_GL'];
+_i = _i + [['','',285,6,-1,2,0,0.99,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_AR'];
+_i = _i + [['','',290,6,-1,2,0,0.98,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_R'];
+_i = _i + [['','',300,6,-1,2,0,0.98,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Sapper'];
+_i = _i + [['','',310,6,-1,2,0,0.98,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_AC'];
+_i = _i + [['','',320,6,-1,2,0,1.0,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Marksman'];
+_i = _i + [['','',340,6,-1,2,0,0.99,'USMC Force Recon',[]]];
+
+/* Infantry - Special Characters */
+_c = _c + ['FR_Cooper'];
+_i = _i + [['','',400,6,-1,3,0,1.0,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Miles'];
+_i = _i + [['','',400,6,-1,3,0,1.0,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_OHara'];
+_i = _i + [['','',400,6,-1,3,0,1.0,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Rodriguez'];
+_i = _i + [['','',400,6,-1,3,0,1.0,'USMC Force Recon',[]]];
+
+_c = _c + ['FR_Sykes'];
+_i = _i + [['','',400,6,-1,3,0,1.0,'USMC Force Recon',[]]];
+
+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_FR: Duplicated Element found '%1'",(_c select _z),diag_frameno,diag_tickTime];
+ };
+ } else {
+ diag_log Format ["[WFBE (ERROR)][frameno:%2 | ticktime:%3] Core_FR: Element '%1' is not a valid class.",(_c select _z),diag_frameno,diag_tickTime];
+ };
+};
+
+diag_log Format ["[WFBE (INIT)][frameno:%2 | ticktime:%3] Core_FR: Initialization (%1 Elements) - [Done]",count _c,diag_frameno,diag_tickTime];
\ No newline at end of file |
