Add upgradable little birds

Also:
- add manuals to upgrade all helicopters
- add an indicator on the manual description how many upgrades are available
This commit is contained in:
AirwavesMan
2020-08-23 13:58:59 +02:00
parent 049492ebf3
commit dbd001b471
7 changed files with 297 additions and 51 deletions

View File

@@ -17,21 +17,22 @@ VanillaSurvival[] =
VanillaConstruction[] =
{
// {Loot_MAGAZINE, 1, equip_scrapelectronics}, // Unused
// {Loot_MAGAZINE, 2, equip_1inch_metal_pipe}, // Unused
// {Loot_MAGAZINE, 2, equip_2inch_metal_pipe}, // Unused
// {Loot_VEHICLE, 2, WeaponHolder_ItemPickaxeBroken},
// {Loot_MAGAZINE, 5, ItemStone}, // Vanilla base building - foundations
// {Loot_MAGAZINE, 5, ItemStone}, // Epoch(Dayz Mod) fences, does not need to be spawned, can be harvested with pickaxes
// {Loot_WEAPON, 1, ItemDIY_wood}, // Vanilla base building
// {Loot_WEAPON, 1, ItemDIY_Gate} // Vanilla base building
// {Loot_MAGAZINE, 9, equip_metal_sheet_rusted}, // Unused
{Loot_MAGAZINE, 1, equip_scrapelectronics}, // Vehicle upgrade
{Loot_MAGAZINE, 1, equip_floppywire}, // Vehicle upgrade
{Loot_VEHICLE, 4, WeaponHolder_ItemPickaxe}, // Get ItemStone from rocks on the map for fence foundations.
{Loot_MAGAZINE, 9, ItemMetalSheet}, //Used for upgrade storage buildings and metal fences
{Loot_MAGAZINE, 9, ItemMetalSheet}, //Used for upgrade storage buildings and metal fences, vehicle upgrade
{Loot_MAGAZINE, 9, equip_metal_sheet}, //Used for upgrade storage buildings
{Loot_MAGAZINE, 4, ItemScrews}, //Used for upgrade storage buildings
{Loot_MAGAZINE, 4, ItemScrews}, //Used for upgrade storage buildings, vehicle upgrade
{Loot_MAGAZINE, 1, equip_hose}, // Need this to siphon gas with fuel container - very useful
{Loot_MAGAZINE, 1, equip_lever}, // Repair broken handles if dayz_toolBreaking enabled
{Loot_MAGAZINE, 1, ItemPlank}, // Used for upgrade storage buildings - craft a sling
{Loot_MAGAZINE, 1, ItemPlank}, // Used for upgrade storage buildings, craft a sling
{Loot_MAGAZINE, 1, equip_nails}, // Combine with baseball bat, upgrade storage buildings
{Loot_MAGAZINE, 1, equip_brick} // Used to sharpen tools if dayz_knifeDulling enabled
};

View File

@@ -495,6 +495,69 @@ class ItemTankTNK: CA_Magazine
};
};
class ItemHeliAVE: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_VEHUP_AVE_HELI;
model = "\z\addons\dayz_epoch\models\doc_Up2.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_docup2_ca.paa";
descriptionShort = $STR_EPOCH_VEHUP_AVE_HELI_DESC;
sfx = "document";
class ItemActions
{
class Upgrades
{
text = $STR_EPOCH_PLAYER_UPGRADEV;
script = "spawn player_upgradeVehicle;";
};
};
};
class ItemHeliLRK: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_VEHUP_LRK_HELI;
model = "\z\addons\dayz_epoch\models\doc_Up3.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_docup3_ca.paa";
descriptionShort = $STR_EPOCH_VEHUP_LRK_HELI_DESC;
sfx = "document";
class ItemActions
{
class Upgrades
{
text = $STR_EPOCH_PLAYER_UPGRADEV;
script = "spawn player_upgradeVehicle;";
};
};
};
class ItemHeliTNK: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_VEHUP_TNK_HELI;
model = "\z\addons\dayz_epoch\models\doc_Up4.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_docup4_ca.paa";
descriptionShort = $STR_EPOCH_VEHUP_TNK_HELI_DESC;
sfx = "document";
class ItemActions
{
class Upgrades
{
text = $STR_EPOCH_PLAYER_UPGRADEV;
script = "spawn player_upgradeVehicle;";
};
};
};
class Blueprint_01: CA_Magazine
{
scope = 2;

View File

@@ -30,6 +30,7 @@ class Category_34 {
class ItemSledge {type = "trade_weapons";buy[] = {8,"ItemSilverBar10oz"};sell[] = {4,"ItemSilverBar10oz"};};
class MeleeSledge {type = "trade_weapons";buy[] = {-8,"ItemSilverBar10oz"};sell[] = {4,"ItemSilverBar10oz"};};
class ItemKeyKit {type = "trade_weapons";buy[] = {1,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class ItemSolder_DZE {type = "trade_weapons";buy[] = {6,"ItemGoldBar"};sell[] = {3,"ItemGoldBar"};};
class ChainSaw {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class ChainSawB {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class ChainSawG {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
@@ -53,8 +54,8 @@ class Category_35 {
class equip_lever {type = "trade_items";buy[] = {6,"ItemSilverBar"};sell[] = {3,"ItemSilverBar"};};
class equip_nails {type = "trade_items";buy[] = {2,"ItemSilverBar"};sell[] = {1,"ItemSilverBar"};};
class ItemScrews {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class equip_scrapelectronics {type = "trade_items";buy[] = {-4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class equip_floppywire {type = "trade_items";buy[] = {-4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class equip_scrapelectronics {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class equip_floppywire {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class equip_metal_sheet {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
class equip_1inch_metal_pipe {type = "trade_items";buy[] = {6,"ItemSilverBar"};sell[] = {3,"ItemSilverBar"};};
class equip_2inch_metal_pipe {type = "trade_items";buy[] = {8,"ItemSilverBar"};sell[] = {4,"ItemSilverBar"};};

View File

@@ -30,6 +30,7 @@ class Category_34 {
class ItemSledge {type = "trade_weapons";buy[] = {80,"worth"};sell[] = {40,"worth"};};
class MeleeSledge {type = "trade_weapons";buy[] = {-1,"worth"};sell[] = {40,"worth"};};
class ItemKeyKit {type = "trade_weapons";buy[] = {100,"worth"};sell[] = {100,"worth"};};
class ItemSolder_DZE {type = "trade_weapons";buy[] = {600,"worth"};sell[] = {300,"worth"};};
class ChainSaw {type = "trade_weapons";buy[] = {400,"worth"};sell[] = {100,"worth"};};
class ChainSawB {type = "trade_weapons";buy[] = {400,"worth"};sell[] = {100,"worth"};};
class ChainSawG {type = "trade_weapons";buy[] = {400,"worth"};sell[] = {100,"worth"};};
@@ -53,8 +54,8 @@ class Category_35 {
class equip_lever {type = "trade_items";buy[] = {6,"worth"};sell[] = {3,"worth"};};
class equip_nails {type = "trade_items";buy[] = {2,"worth"};sell[] = {1,"worth"};};
class ItemScrews {type = "trade_items";buy[] = {400,"worth"};sell[] = {200,"worth"};};
class equip_scrapelectronics {type = "trade_items";buy[] = {-1,"worth"};sell[] = {200,"worth"};};
class equip_floppywire {type = "trade_items";buy[] = {-1,"worth"};sell[] = {200,"worth"};};
class equip_scrapelectronics {type = "trade_items";buy[] = {400,"worth"};sell[] = {200,"worth"};};
class equip_floppywire {type = "trade_items";buy[] = {400,"worth"};sell[] = {200,"worth"};};
class equip_metal_sheet {type = "trade_items";buy[] = {20,"worth"};sell[] = {10,"worth"};};
class equip_1inch_metal_pipe {type = "trade_items";buy[] = {6,"worth"};sell[] = {3,"worth"};};
class equip_2inch_metal_pipe {type = "trade_items";buy[] = {8,"worth"};sell[] = {4,"worth"};};

View File

@@ -2,7 +2,7 @@ class AH6J_EP1;
class AH6J_EP1_DZ: AH6J_EP1
{
scope = 2;
displayName = $STR_VEH_NAME_AH6J;
displayName = "$STR_VEH_NAME_AH6J";
vehicleClass = "DayZ Epoch Vehicles";
crew = "";
typicalCargo[] = {};
@@ -25,19 +25,56 @@ class AH6J_EP1_DZ: AH6J_EP1
{
killed = "_this call BIS_Effects_EH_Killed;";
fired = "_this call BIS_Effects_EH_Fired;";
};
};
};
class AH6J_EP1_DZE: AH6J_EP1_DZ
{
scope = 2;
displayName = $STR_VEH_NAME_AH6J;
displayName = "$STR_VEH_NAME_AH6J";
magazines[] = {"60Rnd_CMFlareMagazine","60Rnd_CMFlareMagazine"};
class Upgrades
{
ItemHeliAVE[] = {"AH6J_EP1_DZE1",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliAVE",1},{"equip_metal_sheet",5},{"ItemScrews",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}};
};
};
class AH6J_EP1_DZE1: AH6J_EP1_DZE
{
displayName = "$STR_VEH_NAME_AH6J+";
original = "AH6J_EP1_DZE";
armor = 70;
damageResistance = 0.02078;
class Upgrades
{
ItemHeliLRK[] = {"AH6J_EP1_DZE2",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliLRK",1},{"PartGeneric",2},{"ItemScrews",1},{"ItemWoodCrateKit",1},{"ItemGunRackKit",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}};
};
};
class AH6J_EP1_DZE2: AH6J_EP1_DZE1
{
displayName = "$STR_VEH_NAME_AH6J++";
transportMaxWeapons = 20;
transportMaxMagazines = 80;
transportmaxbackpacks = 8;
class Upgrades
{
ItemHeliTNK[] = {"AH6J_EP1_DZE3",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliTNK",1},{"PartFueltank",2},{"PartGeneric",2},{"ItemFuelBarrel",1},{"ItemTinBar",1},{"equip_scrapelectronics",1},{"equip_floppywire",1}}};
};
};
class AH6J_EP1_DZE3: AH6J_EP1_DZE2
{
displayName = "$STR_VEH_NAME_AH6J+++";
fuelCapacity = 500;
};
class AH6X_EP1;
class AH6X_DZ: AH6X_EP1 {
displayname = $STR_VEH_NAME_AH6X;
displayname = "$STR_VEH_NAME_AH6X";
vehicleClass = "DayZ Epoch Vehicles";
model = "dayz_vehicles\helicopters\greybird\greybird.p3d";
scope = 2;
@@ -63,4 +100,41 @@ class AH6X_DZ: AH6X_EP1 {
{
killed = "_this call BIS_Effects_EH_Killed;";
};
class Upgrades
{
ItemHeliAVE[] = {"AH6X_DZE1",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliAVE",1},{"equip_metal_sheet",5},{"ItemScrews",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}};
};
};
class AH6X_DZE1: AH6X_DZ
{
displayName = "$STR_VEH_NAME_AH6X+";
original = "AH6X_DZ";
armor = 70;
damageResistance = 0.02078;
class Upgrades
{
ItemHeliLRK[] = {"AH6X_DZE2",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliLRK",1},{"PartGeneric",2},{"ItemScrews",1},{"ItemWoodCrateKit",1},{"ItemGunRackKit",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}};
};
};
class AH6X_DZE2: AH6X_DZE1
{
displayName = "$STR_VEH_NAME_AH6X++";
transportMaxWeapons = 20;
transportMaxMagazines = 80;
transportmaxbackpacks = 8;
class Upgrades
{
ItemHeliTNK[] = {"AH6X_DZE3",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliTNK",1},{"PartFueltank",2},{"PartGeneric",2},{"ItemFuelBarrel",1},{"ItemTinBar",1},{"equip_scrapelectronics",1},{"equip_floppywire",1}}};
};
};
class AH6X_DZE3: AH6X_DZE2
{
displayName = "$STR_VEH_NAME_AH6X+++";
fuelCapacity = 500;
};

View File

@@ -21,4 +21,41 @@ class MH6J_DZ: MH6J_EP1
fuelCapacity = 242;
class Turrets {};
supplyRadius = 1.3;
class Upgrades
{
ItemHeliAVE[] = {"MH6J_DZE1",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliAVE",1},{"equip_metal_sheet",5},{"ItemScrews",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}};
};
};
class MH6J_DZE1: MH6J_DZ
{
displayName = "$STR_VEH_NAME_MH6J+";
original = "MH6J_DZ";
armor = 70;
damageResistance = 0.02078;
class Upgrades
{
ItemHeliLRK[] = {"MH6J_DZE2",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliLRK",1},{"PartGeneric",2},{"ItemScrews",1},{"ItemWoodCrateKit",1},{"ItemGunRackKit",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}};
};
};
class MH6J_DZE2: MH6J_DZE1
{
displayName = "$STR_VEH_NAME_MH6J++";
transportMaxWeapons = 20;
transportMaxMagazines = 80;
transportmaxbackpacks = 8;
class Upgrades
{
ItemHeliTNK[] = {"MH6J_DZE3",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliTNK",1},{"PartFueltank",2},{"PartGeneric",2},{"ItemFuelBarrel",1},{"ItemTinBar",1},{"equip_scrapelectronics",1},{"equip_floppywire",1}}};
};
};
class MH6J_DZE3: MH6J_DZE2
{
displayName = "$STR_VEH_NAME_MH6J+++";
fuelCapacity = 500;
};