diff --git a/SQF/dayz_code/system/handleGear.sqf b/SQF/dayz_code/system/handleGear.sqf index 2aca86ca5..14f045992 100644 --- a/SQF/dayz_code/system/handleGear.sqf +++ b/SQF/dayz_code/system/handleGear.sqf @@ -97,6 +97,13 @@ _isMagazine = { _return }; +_isBackpack = { + private ["_item","_return"]; + _item = _this select 0; + _return = (str(configfile >> "cfgVehicles" >> _item) != ""); + _return +}; + _IDCsArray = [ [107], [121], @@ -421,6 +428,11 @@ private ["_inputItem","_return"]; _return = (_name); }; + if ([_inputItem] call _isBackpack) then { + _name = getText(configfile >> "cfgVehicles" >> _inputItem >> "descriptionShort"); + _return = ( _name); + }; + _return }; @@ -439,6 +451,11 @@ _itemName = { _return = ( _name); }; + if ([_item] call _isBackpack) then { + _name = getText(configfile >> "cfgVehicles" >> _item >> "displayName"); + _return = ( _name); + }; + _return };