Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. private["_Debug","_cur_cfg_type","_classname","_picture","_Attachment_Array","_cfgWeapons"];
  2. _cfgWeapons = configFile >> "CfgWeapons";
  3. _Attachment_Array = [];
  4. _Debug = 1;
  5. for "_i" from 0 to (count _cfgWeapons)-1 do
  6. {
  7. _cur_cfg = _cfgWeapons select _i;
  8.  
  9. if (isClass _cur_cfg) then
  10. {
  11. _classname = configName _cur_cfg;
  12. _cur_cfg_type = getNumber(_cur_cfg >> "type");
  13. _picture = getText(_cur_cfg >> "picture");
  14. 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 {
  15.  
  16. _Attachment_Array set[count _Attachment_Array, _classname];
  17. };
  18. };
  19. };
  20. _Attachment_Array sort true;
  21.  
  22. if (isServer) then
  23. {
  24. copyToClipboard str _Attachment_Array;
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement