Add upgradable safes and lockboxes

- Safes and lockboxes can be upgraded now.
- A winter lockbox version was added too. The current model and icon will be replaced later for the new lockbox.
- Calling Child 308 on the DB has no room for storing coins, this is why we need to update coins and gear after swaping the object. Same for upgrade vehicle
This commit is contained in:
AirwavesMan
2020-09-12 01:18:57 +02:00
parent cff5d38574
commit 673c705aeb
12 changed files with 344 additions and 56 deletions

View File

@@ -263,6 +263,28 @@ class ItemVault: CA_Magazine
};
};
class ItemVault2: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "$STR_EPOCH_SAFE+";
model = "\z\addons\dayz_epoch\models\safe_onside.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_safe_ca.paa";
descriptionShort = $STR_EPOCH_SAFE_DESC;
class ItemActions
{
class Build
{
text = $STR_EPOCH_PLAYER_230;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "VaultStorage2Locked";
};
};
};
class ItemLockbox: CA_Magazine
{
scope = 2;
@@ -285,6 +307,72 @@ class ItemLockbox: CA_Magazine
};
};
class ItemLockbox2: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "$STR_EPOCH_LOCKBOX+";
model = "\z\addons\dayz_epoch\models\lockbox_mag.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_lockbox_CA.paa";
descriptionShort = $STR_EPOCH_LOCKBOX_DESC;
class ItemActions
{
class Build
{
text = $STR_EPOCH_PLAYER_231;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "LockboxStorage2Locked";
};
};
};
class ItemLockboxWinter: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_LOCKBOX;
model = "\z\addons\dayz_epoch\models\lockbox_mag.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_lockbox_CA.paa";
descriptionShort = $STR_EPOCH_LOCKBOX_DESC;
class ItemActions
{
class Build
{
text = $STR_EPOCH_PLAYER_231;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "LockboxStorageWinterLocked";
};
};
};
class ItemLockboxWinter2: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "$STR_EPOCH_LOCKBOX+";
model = "\z\addons\dayz_epoch\models\lockbox_mag.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_lockbox_CA.paa";
descriptionShort = $STR_EPOCH_LOCKBOX_DESC;
class ItemActions
{
class Build
{
text = $STR_EPOCH_PLAYER_231;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "LockboxStorageWinter2Locked";
};
};
};
class StashSmall_kit: CA_Magazine
{
scope = 2;