mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-13 19:52:57 +03:00
Add concrete bunker
Models made by @Helion4
This commit is contained in:
@@ -8,6 +8,8 @@ Industrial[] =
|
||||
//Items
|
||||
{Loot_MAGAZINE, 2, MortarBucket},
|
||||
{Loot_MAGAZINE, 6, CinderBlocks},
|
||||
{Loot_MAGAZINE, 3, CementBag},
|
||||
{Loot_MAGAZINE, 2, ItemConcreteBlock},
|
||||
{Loot_MAGAZINE, 3, ItemRSJ},
|
||||
{Loot_MAGAZINE, 1, fuel_pump_kit},
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class metal_floor_half_kit: CA_Magazine
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_METALFLOORHALF;
|
||||
descriptionShort = $STR_EPOCH_METALFLOORHALF
|
||||
descriptionShort = $STR_EPOCH_METALFLOORHALF;
|
||||
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
|
||||
|
||||
@@ -622,6 +622,59 @@ class cinder_gate_kit_locked: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_bunker_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_CINDERBUNKER;
|
||||
descriptionShort = $STR_EPOCH_CINDERBUNKER_DESC;
|
||||
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemToolbox"};
|
||||
create = "Concrete_Bunker_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_239_1_2;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {};
|
||||
output[] = {{"cinder_bunker_kit_locked",1}};
|
||||
input[] = {{"cinder_bunker_kit",1},{"ItemComboLock",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_bunker_kit_locked: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_CINDERBUNKERLOCKED;
|
||||
descriptionShort = $STR_EPOCH_CINDERBUNKER_LOCKED_DESC;
|
||||
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemToolbox"};
|
||||
create = "Concrete_Bunker_Locked_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class metal_drawbridge_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
@@ -1445,7 +1498,6 @@ class ItemWoodGateFrame: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
class ItemWoodGate: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
@@ -1581,6 +1633,4 @@ class door_locked_kit: CA_Magazine
|
||||
create = "DoorLocked_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
@@ -12,31 +12,31 @@ class ItemStone: CA_Magazine
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_BLD_name_WoodenFence_1_foundation;
|
||||
text = $STR_EPOCH_ACTION_CONCRETE_BLOCK;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemEtool"};
|
||||
output[] = {{"ItemConcreteBlock",1}};
|
||||
input[] = {{"ItemStone",6},{"CementBag",1}};
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_BLD_name_WoodenFence_1_foundation;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"woodfence_foundation_kit",1}};
|
||||
input[] = {{"ItemStone",8},{"MortarBucket",1},{"ItemPlank",1}};
|
||||
};
|
||||
class Crafting1
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_BLD_name_MetalFence_1_foundation;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"metalfence_foundation_kit",1}};
|
||||
input[] = {{"ItemStone",8},{"MortarBucket",1},{"ItemRSJ",1}};
|
||||
};
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_BLD_name_WoodenGate_Foundation;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"woodfence_gate_foundation_kit",1}};
|
||||
input[] = {{"ItemLog",4}};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -49,6 +49,19 @@ class ItemConcreteBlock: CA_Magazine
|
||||
picture = "\z\addons\dayz_buildings\equip\concreteblock.paa";
|
||||
model = "z\addons\dayz_buildings\models\concreteblock.p3d";
|
||||
descriptionShort = $STR_BLD_desc_ItemConcreteBlock;//"Concrete Block"
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_ACTION_CONCRETE_BUNKER;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_bunker_kit",1}};
|
||||
input[] = {{"full_cinder_wall_kit",3},{"ItemConcreteBlock",5},{"equip_metal_sheet",3},{"ItemScrews",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CinderBlocks: CA_Magazine
|
||||
@@ -157,4 +170,17 @@ class CementBag: CA_Magazine
|
||||
descriptionShort = $STR_ITEM_DESC_CEMENT_BAG;
|
||||
picture = "\dayz_epoch_c\icons\equipment\ItemCementBag.paa";
|
||||
model = "\z\addons\dayz_epoch_w\items\cement_bag.p3d";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_ACTION_CONCRETE_BLOCK;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemEtool"};
|
||||
output[] = {{"ItemConcreteBlock",1}};
|
||||
input[] = {{"ItemStone",6},{"CementBag",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -52,6 +52,15 @@ class ItemLog : CA_Magazine
|
||||
requiretools[] = {"ItemToolbox","ItemHatchet","ItemCrowbar"};
|
||||
output[] = {{"deer_stand_kit",1}};
|
||||
input[] = {{"ItemLog",8},{"ItemPlank",2},{"equip_nails",2}};
|
||||
};
|
||||
class Crafting4
|
||||
{
|
||||
text = $STR_BLD_name_WoodenGate_Foundation;
|
||||
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"woodfence_gate_foundation_kit",1}};
|
||||
input[] = {{"ItemLog",6}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -9,7 +9,8 @@ class Category_50 {
|
||||
class bulk_PartGeneric {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {8,"ItemGoldBar"};};
|
||||
class PartPlywoodPack {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
|
||||
class PartPlankPack {type = "trade_items";buy[] = {1,"ItemSilverBar10oz"};sell[] = {5,"ItemSilverBar"};};
|
||||
class ItemConcreteBlock {type = "trade_items";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};};
|
||||
class ItemConcreteBlock {type = "trade_items";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};};
|
||||
class CementBag {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
|
||||
class CinderBlocks {type = "trade_items";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};};
|
||||
class MortarBucket {type = "trade_items";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};};
|
||||
class ItemRSJ {type = "trade_items";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};};
|
||||
|
||||
@@ -9,7 +9,8 @@ class Category_50 {
|
||||
class bulk_PartGeneric {type = "trade_items";buy[] = {800,"worth"};sell[] = {800,"worth"};};
|
||||
class PartPlywoodPack {type = "trade_items";buy[] = {20,"worth"};sell[] = {10,"worth"};};
|
||||
class PartPlankPack {type = "trade_items";buy[] = {10,"worth"};sell[] = {5,"worth"};};
|
||||
class ItemConcreteBlock {type = "trade_items";buy[] = {-1000,"worth"};sell[] = {500,"worth"};};
|
||||
class ItemConcreteBlock {type = "trade_items";buy[] = {1000,"worth"};sell[] = {500,"worth"};};
|
||||
class CementBag {type = "trade_items";buy[] = {400,"worth"};sell[] = {200,"worth"};};
|
||||
class CinderBlocks {type = "trade_items";buy[] = {1000,"worth"};sell[] = {500,"worth"};};
|
||||
class MortarBucket {type = "trade_items";buy[] = {1000,"worth"};sell[] = {500,"worth"};};
|
||||
class ItemRSJ {type = "trade_items";buy[] = {1000,"worth"};sell[] = {500,"worth"};};
|
||||
|
||||
@@ -247,6 +247,113 @@ class CinderGarageOpenTopFrame_DZ: ModularItems {
|
||||
};
|
||||
};
|
||||
|
||||
class Concrete_Bunker_DZ: CinderWallDoor_DZ_Base {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\cinder\bunker\bunker_01.p3d";
|
||||
offset[] = {0,4,0};
|
||||
displayName = $STR_EPOCH_CINDERBUNKER;
|
||||
upgradeBuilding[] = {"Concrete_Bunker_Locked_DZ",{},{{"ItemComboLock",1}}};
|
||||
GhostPreview = "Concrete_Bunker_Preview_DZ";
|
||||
class AnimationSources
|
||||
{
|
||||
class raise_all
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 4;
|
||||
initPhase = 0;
|
||||
};
|
||||
class rollers
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 1;
|
||||
initPhase = 0;
|
||||
};
|
||||
};
|
||||
class UserActions
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
condition = "(this animationPhase ""raise_all"" < 0.5)";
|
||||
statement = "this animate [""raise_all"", 1];this animate [""rollers"", 1];";
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
condition = "(this animationPhase ""raise_all"" >= 0.5)";
|
||||
statement = "this animate [""raise_all"", 0];this animate [""rollers"", 0];";
|
||||
};
|
||||
};
|
||||
};
|
||||
class Concrete_Bunker_Locked_DZ: CinderWallDoorLocked_DZ_Base {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\cinder\bunker\bunker_01_locked.p3d";
|
||||
offset[] = {0,4,0};
|
||||
displayName = $STR_EPOCH_CINDERBUNKERLOCKED;
|
||||
GhostPreview = "Concrete_Bunker_Preview_DZ";
|
||||
downgradeBuilding[] = {"Concrete_Bunker_DZ",{{"ItemComboLock",1}}};
|
||||
class AnimationSources
|
||||
{
|
||||
class raise_all
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 4;
|
||||
initPhase = 0;
|
||||
};
|
||||
class rollers
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 1;
|
||||
initPhase = 0;
|
||||
};
|
||||
class Open_latch
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 1;
|
||||
initPhase = 0;
|
||||
};
|
||||
};
|
||||
class UserActions
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
condition = "(this animationPhase ""raise_all"" == 0) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "this animate [""raise_all"", 1];";
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
condition = "(this animationPhase ""raise_all"" == 1) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "this animate [""raise_all"", 0];";
|
||||
};
|
||||
class Lock_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_LOCK;
|
||||
condition = "(this animationPhase ""raise_all"" == 0) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate [""Open_latch"", 0]";
|
||||
};
|
||||
class Unlock_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_UNLOCK;
|
||||
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""raise_all"" == 0) and (this animationPhase ""Open_latch"" == 0)";
|
||||
statement = "this animate [""Open_latch"", 1]";
|
||||
};
|
||||
class Unlock_Door_Dialog : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_UNLOCK;
|
||||
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
|
||||
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* Model not finshed
|
||||
class HeliNest_DZ: ModularItems {
|
||||
scope = 2;
|
||||
|
||||
@@ -203,4 +203,9 @@ class GlassFloor_Preview_DZ: DZE_Ghost_Previews {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\floors\glass_floor_ghost.p3d";
|
||||
displayName = "Glass Floor Preview";
|
||||
};
|
||||
class Concrete_Bunker_Preview_DZ: DZE_Ghost_Previews {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\cinder\bunker\bunker_01_ghost.p3d";
|
||||
displayName = "Concrete Bunker Preview";
|
||||
};
|
||||
Reference in New Issue
Block a user