Advertisement
Guest User

Untitled

a guest
May 26th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. private ["_weapons","_class","_details","_acc","_master"];
  2. _weapons = [];
  3. _master = configFile >> "CfgWeapons";
  4. for "_i" from 0 to (count _master)-1 do
  5. {
  6. _class = _master select _i;
  7. if(isClass _class) then
  8. {
  9. _class = configName _class;
  10. _details = [_class] call CL3MOD_fnc_GearInteraction_Config;
  11. _acc = _details select 10;
  12. if(!(isNil "_acc"))then
  13. {
  14. if(typeName _acc == "ARRAY")then
  15. {
  16. if(count(_acc select 0) > 0)then
  17. {
  18. {
  19. if(!(_x in _weapons))then
  20. {
  21. _weapons pushBack (_x);
  22. };
  23. }forEach(_acc select 0);
  24. };
  25. if(count(_acc select 1) > 0)then
  26. {
  27. {
  28. if(!(_x in _weapons))then
  29. {
  30. _weapons pushBack (_x);
  31. };
  32. }forEach(_acc select 1);
  33. };
  34. if(count(_acc select 2) > 0)then
  35. {
  36. {
  37. if(!(_x in _weapons))then
  38. {
  39. _weapons pushBack (_x);
  40. };
  41. }forEach(_acc select 2);
  42. };
  43. };
  44. };
  45. };
  46. sleep 0.03;
  47. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement