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