mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Adding support for backpack descriptions
This commit is contained in:
@@ -97,6 +97,13 @@ _isMagazine = {
|
|||||||
_return
|
_return
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_isBackpack = {
|
||||||
|
private ["_item","_return"];
|
||||||
|
_item = _this select 0;
|
||||||
|
_return = (str(configfile >> "cfgVehicles" >> _item) != "");
|
||||||
|
_return
|
||||||
|
};
|
||||||
|
|
||||||
_IDCsArray = [
|
_IDCsArray = [
|
||||||
[107],
|
[107],
|
||||||
[121],
|
[121],
|
||||||
@@ -421,6 +428,11 @@ private ["_inputItem","_return"];
|
|||||||
_return = (_name);
|
_return = (_name);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ([_inputItem] call _isBackpack) then {
|
||||||
|
_name = getText(configfile >> "cfgVehicles" >> _inputItem >> "descriptionShort");
|
||||||
|
_return = ( _name);
|
||||||
|
};
|
||||||
|
|
||||||
_return
|
_return
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -439,6 +451,11 @@ _itemName = {
|
|||||||
_return = ( _name);
|
_return = ( _name);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ([_item] call _isBackpack) then {
|
||||||
|
_name = getText(configfile >> "cfgVehicles" >> _item >> "displayName");
|
||||||
|
_return = ( _name);
|
||||||
|
};
|
||||||
|
|
||||||
_return
|
_return
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user