Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _cfgWeapons = configFile >> "cfgWeapons";
- _primary = [];
- _handgun = [];
- _secondary = [];
- for "_i" from 0 to (count _cfgWeapons) - 1 do{
- _weapon = _cfgWeapons select _i;
- if (isClass _weapon) then {
- _cName = configName(_weapon);
- _dName = (configFile >> "cfgWeapons" >> _cName >> "displayName") call BIS_fnc_GetCfgData;
- _type = (configFile >> "cfgWeapons" >> _cName >> "type") call BIS_fnc_GetCfgData;
- if (_dName == "" || _cName == "" || _dName == "Rifle" || _cName == "Rifle") then {
- } else {
- switch (_type) do {
- case 0:{};
- case 1:{ _primary pushback [_cName, _dName];};
- case 2:{ _handgun pushback [_cName, _dName];};
- case 4:{ _secondary pushback [_cName, _dName];};
- default {};
- };
- };
- };
- };
- _arr = ["Primary", _primary] + ["Secondary", _secondary] + ["Handgun", _handgun];
- copyToClipboard str(_arr);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement