1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* MVD Configuration */
private ["_c","_get","_i","_p"];
_c = [];
_i = [];
/* Infantry */
_c = _c + ['MVD_Soldier_GL'];
_i = _i + [['','',310,7,-1,3,0,0.98,'MVD',[]]];
_c = _c + ['MVD_Soldier_MG'];
_i = _i + [['','',320,7,-1,3,0,0.98,'MVD',[]]];
_c = _c + ['MVD_Soldier_Marksman'];
_i = _i + [['','',330,7,-1,3,0,0.99,'MVD',[]]];
_c = _c + ['MVD_Soldier_AT'];
_i = _i + [['','',345,7,-1,3,0,0.99,'MVD',[]]];
_c = _c + ['MVD_Soldier_Sniper'];
_i = _i + [['','',350,7,-1,3,0,0.99,'MVD',[]]];
_c = _c + ['MVD_Soldier_TL'];
_i = _i + [['','',360,7,-1,3,0,1.0,'MVD',[]]];
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_MVD: Duplicated Element found '%1'",(_c select _z),diag_frameno,diag_tickTime];
};
} else {
diag_log Format ["[WFBE (ERROR)][frameno:%2 | ticktime:%3] Core_MVD: Element '%1' is not a valid class.",(_c select _z),diag_frameno,diag_tickTime];
};
};
diag_log Format ["[WFBE (INIT)][frameno:%2 | ticktime:%3] Core_RU: Initialization (%1 Elements) - [Done]",count _c,diag_frameno,diag_tickTime];
|