mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Cleanup Banned weapon check
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user