Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. _cfgWeapons = configFile >> "cfgWeapons";
  2. _primary = [];
  3. _handgun = [];
  4. _secondary = [];
  5. for "_i" from 0 to (count _cfgWeapons) - 1 do{
  6. _weapon = _cfgWeapons select _i;
  7. if (isClass _weapon) then {
  8. _cName = configName(_weapon);
  9. _dName = (configFile >> "cfgWeapons" >> _cName >> "displayName") call BIS_fnc_GetCfgData;
  10. _type = (configFile >> "cfgWeapons" >> _cName >> "type") call BIS_fnc_GetCfgData;
  11.  
  12. if (_dName == "" || _cName == "" || _dName == "Rifle" || _cName == "Rifle") then {
  13.  
  14. } else {
  15. switch (_type) do {
  16. case 0:{};
  17. case 1:{ _primary pushback [_cName, _dName];};
  18. case 2:{ _handgun pushback [_cName, _dName];};
  19. case 4:{ _secondary pushback [_cName, _dName];};
  20. default {};
  21. };
  22. };
  23. };
  24. };
  25.  
  26. _arr = ["Primary", _primary] + ["Secondary", _secondary] + ["Handgun", _handgun];
  27. copyToClipboard str(_arr);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement