diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index 9621dfc41..7814123cc 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -432,6 +432,15 @@ if (!isDedicated) then { endLoadingScreen; }; + dayz_meleeMagazineCheck = { + private["_meleeNum","_magType"]; + _magType = ([] + getArray (configFile >> "CfgWeapons" >> _wpnType >> "magazines")) select 0; + _meleeNum = ({_x == _magType} count magazines player); + if (_meleeNum < 1) then { + player addMagazine _magType; + }; + }; + dayz_originalPlayer = player; progressLoadingScreen 0.8; @@ -543,4 +552,4 @@ if (!isDedicated) then { eh_localCleanup = {}; }; -initialized = true; \ No newline at end of file +initialized = true;