replace tent class

This commit is contained in:
[VB]AWOL
2013-08-27 15:42:55 -05:00
parent 28e2c62c22
commit 12cf4b7f43
2 changed files with 2 additions and 0 deletions

View File

@@ -703,6 +703,7 @@ class FSM
" _countr = 0;" \n
" {" \n
" if (_x == ""BoltSteel"") then { _x = ""WoodenArrow"" }; // Convert BoltSteel to WoodenArrow" \n
" if (_x == ""ItemTent"") then { _x = ""ItemTentOld"" };" \n
" dayz_myBackpack addMagazineCargoGlobal [_x,(_backpackMagQty select _countr)];" \n
" _countr = _countr + 1;" \n
" } forEach _backpackMagTypes;" \n

View File

@@ -207,6 +207,7 @@ if (isServer and isNil "sm_done") then {
_countr = 0;
{
if (_x == "BoltSteel") then { _x = "WoodenArrow" }; // Convert BoltSteel to WoodenArrow
if (_x == "ItemTent") then { _x = "ItemTentOld" };
_isOK = isClass(configFile >> "CfgMagazines" >> _x);
if (_isOK) then {
_block = getNumber(configFile >> "CfgMagazines" >> _x >> "stopThis") == 1;