This commit is contained in:
[VB]AWOL
2014-03-29 13:19:01 -05:00
parent 514d21bdea
commit 82b35d4a02
3 changed files with 8 additions and 12 deletions

View File

@@ -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;
};
};
}; };

View File

@@ -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;
};
};
}; };

View File

@@ -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;