Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private["_Debug","_cur_cfg_type","_classname","_picture","_Attachment_Array","_cfgWeapons"];
- _cfgWeapons = configFile >> "CfgWeapons";
- _Attachment_Array = [];
- _Debug = 1;
- for "_i" from 0 to (count _cfgWeapons)-1 do
- {
- _cur_cfg = _cfgWeapons select _i;
- if (isClass _cur_cfg) then
- {
- _classname = configName _cur_cfg;
- _cur_cfg_type = getNumber(_cur_cfg >> "type");
- _picture = getText(_cur_cfg >> "picture");
- if (_cur_cfg_type == 131072 && _picture != "" && !(_classname in _Attachment_Array) && ((["acc_", _classname] call BIS_fnc_inString) || (["optic_", _classname] call BIS_fnc_inString) || (["muzzle_", _classname] call BIS_fnc_inString))) then {
- _Attachment_Array set[count _Attachment_Array, _classname];
- };
- };
- };
- _Attachment_Array sort true;
- if (isServer) then
- {
- copyToClipboard str _Attachment_Array;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement