Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_weapons","_class","_details","_acc","_master"];
- _weapons = [];
- _master = configFile >> "CfgWeapons";
- for "_i" from 0 to (count _master)-1 do
- {
- _class = _master select _i;
- if(isClass _class) then
- {
- _class = configName _class;
- _details = [_class] call CL3MOD_fnc_GearInteraction_Config;
- _acc = _details select 10;
- if(!(isNil "_acc"))then
- {
- if(typeName _acc == "ARRAY")then
- {
- if(count(_acc select 0) > 0)then
- {
- {
- if(!(_x in _weapons))then
- {
- _weapons pushBack (_x);
- };
- }forEach(_acc select 0);
- };
- if(count(_acc select 1) > 0)then
- {
- {
- if(!(_x in _weapons))then
- {
- _weapons pushBack (_x);
- };
- }forEach(_acc select 1);
- };
- if(count(_acc select 2) > 0)then
- {
- {
- if(!(_x in _weapons))then
- {
- _weapons pushBack (_x);
- };
- }forEach(_acc select 2);
- };
- };
- };
- };
- sleep 0.03;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement