Cleanup Banned weapon check

This commit is contained in:
Skaronator
2014-02-09 17:23:55 +01:00
parent 30960d1325
commit 1ad5570552

View File

@@ -179,11 +179,8 @@ if (isServer and isNil "sm_done") then {
}; };
_isOK = isClass(configFile >> "CfgWeapons" >> _x); _isOK = isClass(configFile >> "CfgWeapons" >> _x);
if (_isOK) then { if (_isOK) then {
_block = getNumber(configFile >> "CfgWeapons" >> _x >> "stopThis") == 1;
if (!_block) then {
_object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)]; _object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)];
}; };
};
_countr = _countr + 1; _countr = _countr + 1;
} forEach _objWpnTypes; } forEach _objWpnTypes;
@@ -196,11 +193,8 @@ if (isServer and isNil "sm_done") then {
if (_x == "ItemTent") then { _x = "ItemTentOld" }; if (_x == "ItemTent") then { _x = "ItemTentOld" };
_isOK = isClass(configFile >> "CfgMagazines" >> _x); _isOK = isClass(configFile >> "CfgMagazines" >> _x);
if (_isOK) then { if (_isOK) then {
_block = getNumber(configFile >> "CfgMagazines" >> _x >> "stopThis") == 1;
if (!_block) then {
_object addMagazineCargoGlobal [_x,(_objWpnQty select _countr)]; _object addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];
}; };
};
_countr = _countr + 1; _countr = _countr + 1;
} forEach _objWpnTypes; } forEach _objWpnTypes;
@@ -211,11 +205,8 @@ if (isServer and isNil "sm_done") then {
{ {
_isOK = isClass(configFile >> "CfgVehicles" >> _x); _isOK = isClass(configFile >> "CfgVehicles" >> _x);
if (_isOK) then { if (_isOK) then {
_block = getNumber(configFile >> "CfgVehicles" >> _x >> "stopThis") == 1;
if (!_block) then {
_object addBackpackCargoGlobal [_x,(_objWpnQty select _countr)]; _object addBackpackCargoGlobal [_x,(_objWpnQty select _countr)];
}; };
};
_countr = _countr + 1; _countr = _countr + 1;
} forEach _objWpnTypes; } forEach _objWpnTypes;
}; };