diff --git a/SQF/dayz_code/compile/player_switchModel.sqf b/SQF/dayz_code/compile/player_switchModel.sqf index 33c614bd6..46167cf79 100644 --- a/SQF/dayz_code/compile/player_switchModel.sqf +++ b/SQF/dayz_code/compile/player_switchModel.sqf @@ -208,4 +208,15 @@ diag_log str(getMagazineCargo unitBackpack _newUnit); _playerUID=getPlayerUID player; _playerObjName = format["player%1",_playerUID]; call compile format["%1 = player;",_playerObjName]; - publicVariable _playerObjName; \ No newline at end of file + publicVariable _playerObjName; + +//melee check + _wpnType = primaryWeapon player; + _ismelee = (gettext (configFile >> "CfgWeapons" >> _wpnType >> "melee")); + if (_ismelee == "true") then { + call dayz_meleeMagazineCheck; + }; + +//reveal all near objects. + {player reveal _x} forEach (nearestObjects [getPosATL player, ["All"], 75]); + //All is arbitrary and will need to be changed to ["AllVehicles","WeaponHolder","tentStorage"] ++ others (stashes etc.)