mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
fixed #1166
This commit is contained in:
@@ -29,10 +29,5 @@ class LockboxStorage: Land_A_tent {
|
||||
class WeaponHolder_ItemLockbox: WeaponHolder {
|
||||
scope = 2;
|
||||
displayName = "Lockbox";
|
||||
class transportmagazines {
|
||||
class _xx_ItemLockbox {
|
||||
magazine = "ItemLockbox";
|
||||
count = 1;
|
||||
};
|
||||
};
|
||||
seedItem = "ItemLockbox";
|
||||
};
|
||||
@@ -31,10 +31,5 @@ class VaultStorageLocked: Land_A_tent {
|
||||
class WeaponHolder_ItemVault: WeaponHolder {
|
||||
scope = 2;
|
||||
displayName = "Safe";
|
||||
class transportmagazines {
|
||||
class _xx_ItemVault {
|
||||
magazine = "ItemVault";
|
||||
count = 1;
|
||||
};
|
||||
};
|
||||
seedItem = "ItemVault";
|
||||
};
|
||||
@@ -13,6 +13,7 @@ _obj = _this;
|
||||
_packedClass = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "packedClass");
|
||||
_text = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "displayName");
|
||||
|
||||
|
||||
// Silently exit if object no longer exists
|
||||
if(isNull _obj or !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||
|
||||
@@ -81,6 +82,11 @@ if(!isNull _obj and alive _obj) then {
|
||||
// Empty weapon holder
|
||||
_holder = _bag;
|
||||
|
||||
// add seed item
|
||||
_itemOut = getText(configFile >> "CfgVehicles" >> _packedClass >> "seedItem");
|
||||
_countOut = 1;
|
||||
_holder addMagazineCargoGlobal[_itemOut, _countOut];
|
||||
|
||||
//Add weapons
|
||||
_objWpnTypes = _weapons select 0;
|
||||
_objWpnQty = _weapons select 1;
|
||||
|
||||
Reference in New Issue
Block a user