Add DayZ Mod fences and gates

Epoch has its own DayZ Mod fence versions now. The old fences can still be used. The new fences have a full upgrade and snap  support. all gates work with the door management too.
This commit is contained in:
AirwavesMan
2020-06-18 15:53:28 +02:00
parent bfa16b499e
commit 3724a1f385
16 changed files with 1717 additions and 29 deletions

View File

@@ -15,7 +15,38 @@ class SnapBuilding {
"WoodFloorQuarter_DZ",
"WoodFloorHalf_DZ",
"WoodFloor_DZ",
"MetalFloor_DZ"
"MetalFloor_DZ",
"WoodenFence_1_frame_DZ",
"WoodenFence_1_foundation_DZ",
"WoodenFence_quaterpanel_DZ",
"WoodenFence_halfpanel_DZ",
"WoodenFence_thirdpanel_DZ",
"WoodenFence_1_DZ",
"WoodenFence_2_DZ",
"WoodenFence_3_DZ",
"WoodenFence_4_DZ",
"WoodenFence_5_DZ",
"WoodenFence_6_DZ",
"WoodenFence_7_DZ",
"MetalFence_1_foundation_DZ",
"MetalFence_1_frame_DZ",
"MetalFence_halfpanel_DZ",
"MetalFence_thirdpanel_DZ",
"MetalFence_1_DZ",
"MetalFence_2_DZ",
"MetalFence_3_DZ",
"MetalFence_4_DZ",
"MetalFence_5_DZ",
"MetalFence_6_DZ",
"MetalFence_7_DZ",
"WoodenGate_foundation_DZ",
"WoodenGate_1_DZ",
"WoodenGate_2_DZ",
"WoodenGate_3_DZ",
"WoodenGate_4_DZ",
"MetalFence_ghost_DZ",
"WoodenFence_ghost_DZ",
"WoodenGate_ghost_DZ"
};
radius = 5;
};
@@ -123,7 +154,38 @@ class SnapBuilding {
"CinderWallDoorSmallLocked_DZ",
"CinderWallHalf_DZ",
"CinderWallDoorSmall_DZ",
"MetalFloor_DZ"
"MetalFloor_DZ",
"WoodenFence_1_frame_DZ",
"WoodenFence_1_foundation_DZ",
"WoodenFence_quaterpanel_DZ",
"WoodenFence_halfpanel_DZ",
"WoodenFence_thirdpanel_DZ",
"WoodenFence_1_DZ",
"WoodenFence_2_DZ",
"WoodenFence_3_DZ",
"WoodenFence_4_DZ",
"WoodenFence_5_DZ",
"WoodenFence_6_DZ",
"WoodenFence_7_DZ",
"MetalFence_1_foundation_DZ",
"MetalFence_1_frame_DZ",
"MetalFence_halfpanel_DZ",
"MetalFence_thirdpanel_DZ",
"MetalFence_1_DZ",
"MetalFence_2_DZ",
"MetalFence_3_DZ",
"MetalFence_4_DZ",
"MetalFence_5_DZ",
"MetalFence_6_DZ",
"MetalFence_7_DZ",
"WoodenGate_foundation_DZ",
"WoodenGate_1_DZ",
"WoodenGate_2_DZ",
"WoodenGate_3_DZ",
"WoodenGate_4_DZ",
"MetalFence_ghost_DZ",
"WoodenFence_ghost_DZ",
"WoodenGate_ghost_DZ"
};
radius = 7;
};
@@ -404,4 +466,379 @@ class SnapBuilding {
};
class VaultStorage: VaultStorageLocked {};
class Woodenfence {
snapTo[] = {
"WoodFloorQuarter_DZ",
"WoodFloorHalf_DZ",
"WoodFloor_DZ",
"WoodStairs_DZ",
"WoodStairsSans_DZ",
"WoodSmallWallDoor_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_WoodDoor",
"Land_DZE_WoodDoorLocked",
"WoodLargeWall_DZ",
"Land_DZE_LargeWoodDoor",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallThird_DZ",
"CinderWall_DZ",
"CinderWallDoorway_DZ",
"CinderWallDoorLocked_DZ",
"CinderWallDoor_DZ",
"CinderWallSmallDoorway_DZ",
"CinderWallDoorSmallLocked_DZ",
"CinderWallHalf_DZ",
"CinderWallDoorSmall_DZ",
"MetalFloor_DZ",
"WoodenFence_1_frame_DZ",
"WoodenFence_1_foundation_DZ",
"WoodenFence_quaterpanel_DZ",
"WoodenFence_halfpanel_DZ",
"WoodenFence_thirdpanel_DZ",
"WoodenFence_1_DZ",
"WoodenFence_2_DZ",
"WoodenFence_3_DZ",
"WoodenFence_4_DZ",
"WoodenFence_5_DZ",
"WoodenFence_6_DZ",
"WoodenFence_7_DZ",
"MetalFence_1_foundation_DZ",
"MetalFence_1_frame_DZ",
"MetalFence_halfpanel_DZ",
"MetalFence_thirdpanel_DZ",
"MetalFence_1_DZ",
"MetalFence_2_DZ",
"MetalFence_3_DZ",
"MetalFence_4_DZ",
"MetalFence_5_DZ",
"MetalFence_6_DZ",
"MetalFence_7_DZ",
"WoodenGate_foundation_DZ",
"WoodenGate_1_DZ",
"WoodenGate_2_DZ",
"WoodenGate_3_DZ",
"WoodenGate_4_DZ",
"MetalFence_ghost_DZ",
"WoodenFence_ghost_DZ",
"WoodenGate_ghost_DZ"
};
radius = 10;
};
class WoodenFence_1_foundation_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_1_frame_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_quaterpanel_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_halfpanel_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_thirdpanel_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_1_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_2_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_3_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_4_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_5_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_6_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_7_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenFence_ghost_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenGate_foundation_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenGate_1_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenGate_2_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenGate_3_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenGate_4_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class WoodenGate_ghost_DZ: Woodenfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, -0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, -0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.6,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class Metalfence {
snapTo[] = {
"WoodFloorQuarter_DZ",
"WoodFloorHalf_DZ",
"WoodFloor_DZ",
"WoodStairs_DZ",
"WoodStairsSans_DZ",
"WoodSmallWallDoor_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_WoodDoor",
"Land_DZE_WoodDoorLocked",
"WoodLargeWall_DZ",
"Land_DZE_LargeWoodDoor",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallThird_DZ",
"CinderWall_DZ",
"CinderWallDoorway_DZ",
"CinderWallDoorLocked_DZ",
"CinderWallDoor_DZ",
"CinderWallSmallDoorway_DZ",
"CinderWallDoorSmallLocked_DZ",
"CinderWallHalf_DZ",
"CinderWallDoorSmall_DZ",
"MetalFloor_DZ",
"WoodenFence_1_frame_DZ",
"WoodenFence_1_foundation_DZ",
"WoodenFence_quaterpanel_DZ",
"WoodenFence_halfpanel_DZ",
"WoodenFence_thirdpanel_DZ",
"WoodenFence_1_DZ",
"WoodenFence_2_DZ",
"WoodenFence_3_DZ",
"WoodenFence_4_DZ",
"WoodenFence_5_DZ",
"WoodenFence_6_DZ",
"WoodenFence_7_DZ",
"MetalFence_1_foundation_DZ",
"MetalFence_1_frame_DZ",
"MetalFence_halfpanel_DZ",
"MetalFence_thirdpanel_DZ",
"MetalFence_1_DZ",
"MetalFence_2_DZ",
"MetalFence_3_DZ",
"MetalFence_4_DZ",
"MetalFence_5_DZ",
"MetalFence_6_DZ",
"MetalFence_7_DZ",
"WoodenGate_foundation_DZ",
"WoodenGate_1_DZ",
"WoodenGate_2_DZ",
"WoodenGate_3_DZ",
"WoodenGate_4_DZ",
"MetalFence_ghost_DZ",
"WoodenFence_ghost_DZ",
"WoodenGate_ghost_DZ"
};
radius = 10;
};
class MetalFence_1_foundation_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_1_frame_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_halfpanel_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_thirdpanel_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.535, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_1_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 1.78042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_2_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_3_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 2.68042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_4_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_5_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_6_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_7_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalFence_ghost_DZ: Metalfence {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_LEFT},
{2.575, 0, 0.95,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0, 0, 3.58042,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
};

View File

@@ -7,6 +7,7 @@ Industrial[] =
//Items
{Loot_MAGAZINE, 2, MortarBucket},
{Loot_MAGAZINE, 6, CinderBlocks},
{Loot_MAGAZINE, 3, ItemRSJ},
{Loot_MAGAZINE, 3, ItemGenerator},
{Loot_MAGAZINE, 1, fuel_pump_kit},

View File

@@ -20,18 +20,18 @@ VanillaConstruction[] =
// {Loot_MAGAZINE, 1, equip_scrapelectronics}, // Unused
// {Loot_MAGAZINE, 2, equip_1inch_metal_pipe}, // Unused
// {Loot_MAGAZINE, 2, equip_2inch_metal_pipe}, // Unused
// {Loot_WEAPON, 1, WeaponHolder_ItemPickaxe}, // Get ItemStone from rocks on the map - no function in Epoch.
// {Loot_WEAPON, 2, WeaponHolder_ItemPickaxeBroken},
// {Loot_VEHICLE, 2, WeaponHolder_ItemPickaxeBroken},
// {Loot_MAGAZINE, 5, ItemStone}, // Vanilla base building - foundations
// {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, 9, ItemMetalSheet}, //Used for upgrade storage buildings
{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, equip_metal_sheet}, //Used for upgrade storage buildings
{Loot_MAGAZINE, 4, ItemScrews}, //Used for upgrade storage buildings
{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

@@ -0,0 +1,615 @@
class woodfence_foundation_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_1_foundation;
descriptionShort = $STR_BLD_name_WoodenFence_1_foundation;
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","ItemEtool"};
create = "WoodenFence_1_foundation_DZ";
};
};
};
class woodfence_frame_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_1_frame;
descriptionShort = $STR_BLD_name_WoodenFence_1_frame;
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","ItemEtool"};
create = "WoodenFence_1_frame_DZ";
};
};
};
class woodfence_quaterpanel_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_quaterpanel;
descriptionShort = $STR_BLD_name_WoodenFence_quaterpanel;
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","ItemEtool"};
create = "WoodenFence_quaterpanel_DZ";
};
};
};
class woodfence_halfpanel_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_halfpanel;
descriptionShort = $STR_BLD_name_WoodenFence_halfpanel;
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","ItemEtool"};
create = "WoodenFence_halfpanel_DZ";
};
};
};
class woodfence_thirdpanel_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_thirdpanel;
descriptionShort = $STR_BLD_name_WoodenFence_thirdpanel;
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","ItemEtool"};
create = "WoodenFence_thirdpanel_DZ";
};
};
};
class woodfence_1_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_1;
descriptionShort = $STR_BLD_name_WoodenFence_1;
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","ItemEtool"};
create = "WoodenFence_1_DZ";
};
};
};
class woodfence_2_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_2;
descriptionShort = $STR_BLD_name_WoodenFence_2;
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","ItemEtool"};
create = "WoodenFence_2_DZ";
};
};
};
class woodfence_3_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_3;
descriptionShort = $STR_BLD_name_WoodenFence_3;
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","ItemEtool"};
create = "WoodenFence_3_DZ";
};
};
};
class woodfence_4_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_4;
descriptionShort = $STR_BLD_name_WoodenFence_4;
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","ItemEtool"};
create = "WoodenFence_4_DZ";
};
};
};
class woodfence_5_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_5;
descriptionShort = $STR_BLD_name_WoodenFence_5;
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","ItemEtool"};
create = "WoodenFence_5_DZ";
};
};
};
class woodfence_6_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_6;
descriptionShort = $STR_BLD_name_WoodenFence_6;
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","ItemEtool"};
create = "WoodenFence_6_DZ";
};
};
};
class woodfence_7_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenFence_7;
descriptionShort = $STR_BLD_name_WoodenFence_7;
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","ItemEtool"};
create = "WoodenFence_7_DZ";
};
};
};
class metalfence_foundation_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_1_foundation;
descriptionShort = $STR_BLD_name_MetalFence_1_foundation;
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","ItemEtool"};
create = "MetalFence_1_foundation_DZ";
};
};
};
class metalfence_frame_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_1_frame;
descriptionShort = $STR_BLD_name_MetalFence_1_frame;
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","ItemEtool"};
create = "MetalFence_1_frame_DZ";
};
};
};
class metalfence_halfpanel_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_halfpanel;
descriptionShort = $STR_BLD_name_MetalFence_halfpanel;
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","ItemEtool"};
create = "MetalFence_halfpanel_DZ";
};
};
};
class metalfence_thirdpanel_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_thirdpanel;
descriptionShort = $STR_BLD_name_MetalFence_thirdpanel;
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","ItemEtool"};
create = "MetalFence_thirdpanel_DZ";
};
};
};
class metalfence_1_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_1;
descriptionShort = $STR_BLD_name_MetalFence_1;
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","ItemEtool"};
create = "MetalFence_1_DZ";
};
};
};
class metalfence_2_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_2;
descriptionShort = $STR_BLD_name_MetalFence_2;
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","ItemEtool"};
create = "MetalFence_2_DZ";
};
};
};
class metalfence_3_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_3;
descriptionShort = $STR_BLD_name_MetalFence_3;
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","ItemEtool"};
create = "MetalFence_3_DZ";
};
};
};
class metalfence_4_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_4;
descriptionShort = $STR_BLD_name_MetalFence_4;
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","ItemEtool"};
create = "MetalFence_4_DZ";
};
};
};
class metalfence_5_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_5;
descriptionShort = $STR_BLD_name_MetalFence_5;
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","ItemEtool"};
create = "MetalFence_5_DZ";
};
};
};
class metalfence_6_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_6;
descriptionShort = $STR_BLD_name_MetalFence_6;
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","ItemEtool"};
create = "MetalFence_6_DZ";
};
};
};
class metalfence_7_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_MetalFence_7;
descriptionShort = $STR_BLD_name_MetalFence_7;
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","ItemEtool"};
create = "MetalFence_7_DZ";
};
};
};
class woodfence_gate_foundation_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenGate_Foundation;
descriptionShort = $STR_BLD_name_WoodenGate_Foundation;
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","ItemEtool"};
create = "WoodenGate_foundation_DZ";
};
};
};
class woodfence_gate_1_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenGate_1;
descriptionShort = $STR_BLD_name_WoodenGate_1;
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","ItemEtool"};
create = "WoodenGate_1_DZ";
};
};
};
class woodfence_gate_2_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenGate_2;
descriptionShort = $STR_BLD_name_WoodenGate_2;
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","ItemEtool"};
create = "WoodenGate_2_DZ";
};
};
};
class woodfence_gate_3_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenGate_3;
descriptionShort = $STR_BLD_name_WoodenGate_3;
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","ItemEtool"};
create = "WoodenGate_3_DZ";
};
};
};
class woodfence_gate_4_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_WoodenGate_4;
descriptionShort = $STR_BLD_name_WoodenGate_4;
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","ItemEtool"};
create = "WoodenGate_4_DZ";
};
};
};

View File

@@ -59,6 +59,7 @@ class CfgMagazines
#include "Buildings\Camonets.hpp"
#include "Buildings\Sandbag.hpp"
#include "Buildings\ModularBuilding.hpp"
#include "Buildings\Fences.hpp"
#include "Buildings\Storage.hpp"
#include "Buildings\Tent.hpp"
#include "Buildings\Misc.hpp"

View File

@@ -7,9 +7,40 @@ class ItemStone: CA_Magazine
picture = "\z\addons\dayz_buildings\equip\rocks.paa";
model = "z\addons\dayz_buildings\models\rocks.p3d";
descriptionShort = $STR_BLD_desc_ItemStone;//"Rough Stone"
class ItemActions
{
class Crafting
{
text = $STR_BLD_name_WoodenFence_1_foundation;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"woodfence_foundation_kit",1}};
input[] = {{"ItemStone",8},{"MortarBucket",1},{"ItemPlank",1}};
};
class Crafting1
{
text = $STR_BLD_name_MetalFence_1_foundation;
script = ";['Crafting1','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_WoodenFence_1_foundation;
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"woodfence_gate_foundation_kit",1}};
input[] = {{"ItemLog",4}};
};
};
};
class ItemConcreteBlock: CA_Magazine //Construection,indestrial
class ItemConcreteBlock: CA_Magazine
{
scope = 2;
count = 1;

View File

@@ -52,13 +52,12 @@ class Category_35 {
class equip_hose {type = "trade_items";buy[] = {6,"ItemSilverBar"};sell[] = {3,"ItemSilverBar"};};
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,"ItemSilverBar10oz"};sell[] = {2,"ItemSilverBar10oz"};};
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_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"};};
class ItemRSJ {type = "trade_items";buy[] = {8,"ItemSilverBar10oz"};sell[] = {4,"ItemSilverBar10oz"};};
class equip_2inch_metal_pipe {type = "trade_items";buy[] = {8,"ItemSilverBar"};sell[] = {4,"ItemSilverBar"};};
class ItemWire {type = "trade_items";buy[] = {6,"ItemSilverBar"};sell[] = {3,"ItemSilverBar"};};
class ItemSandbag {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class ItemTankTrap {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};

View File

@@ -12,6 +12,7 @@ class Category_50 {
class ItemConcreteBlock {type = "trade_items";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {5,"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"};};
class ItemFuelBarrelEmpty {type = "trade_items";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class ItemFuelBarrel {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
};

View File

@@ -0,0 +1,263 @@
class WoodenGate_ghost_DZ: NonStrategic
{
scope = 2;
displayName = $STR_BLD_name_WoodenGate_1_ghost;
model = "z\addons\dayz_buildings\models\gates\gate_wood_ghost.p3d";
armor = 1000;
};
class WoodenGate_foundation_DZ: DZE_Housebase
{
scope = 2;
displayName = $STR_BLD_name_WoodenGate_Foundation;
model = "z\addons\dayz_buildings\models\gates\gate0_dzam.p3d";
armor = 1000;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 8;
GhostPreview = "WoodenGate_ghost_DZ";
offset[] = {0,4,2};
upgradeBuilding[] = {"WoodenGate_1_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",8},{"equip_nails",1},{"ItemComboLock",1}}};
};
class WoodenGate_1_DZ: DZE_Housebase
{
scope = 2;
displayName = $STR_BLD_name_WoodenGate_1;
model = "z\addons\dayz_buildings\models\gates\gate1_dzam.p3d";
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 8;
offset[] = {0,4,0};
armor = 2000;
upgradeBuilding[] = {"WoodenGate_2_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",10},{"equip_nails",1}}};
class AnimationSources {
class DoorR {
source = "User";
animPeriod = 3;
initPhase = 0;
};
class DoorL {
source = "User";
animPeriod = 3;
initPhase = 0;
};
};
class UserActions {
class Lock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_LOCKGATE;
condition = "this animationPhase 'DoorR' >= 0.7";
statement = "[this,'combo_locked',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 0];this animate ['DoorL', 0]";
};
class Unlock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "(!keypadCancel && DZE_Lock_Door == (this getvariable['CharacterID','0'])) && (this animationPhase 'DoorR' < 0.3)";
statement = "[this,'combo_unlock',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,5,GateMethod];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 1];this animate ['DoorL', 1];GateMethod = nil;";
};
class Unlock_Door_Dialog
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
};
lockable = 3;
};
class WoodenGate_2_DZ: DZE_Housebase
{
scope = 2;
displayName = $STR_BLD_name_WoodenGate_2;
model = "z\addons\dayz_buildings\models\gates\gate2_dzam.p3d";
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 8;
offset[] = {0,4,0};
armor = 2500;
upgradeBuilding[] = {"WoodenGate_3_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",10},{"equip_nails",1}}};
class AnimationSources {
class DoorR {
source = "User";
animPeriod = 3;
initPhase = 0;
};
class DoorL {
source = "User";
animPeriod = 3;
initPhase = 0;
};
};
class UserActions {
class Lock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_LOCKGATE;
condition = "this animationPhase 'DoorR' >= 0.7";
statement = "[this,'combo_locked',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 0];this animate ['DoorL', 0]";
};
class Unlock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "(!keypadCancel && DZE_Lock_Door == (this getvariable['CharacterID','0'])) && (this animationPhase 'DoorR' < 0.3)";
statement = "[this,'combo_unlock',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,5,GateMethod];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 1];this animate ['DoorL', 1];GateMethod = nil;";
};
class Unlock_Door_Dialog
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
};
lockable = 3;
};
class WoodenGate_3_DZ: DZE_Housebase
{
scope = 2;
displayName = $STR_BLD_name_WoodenGate_3;
model = "z\addons\dayz_buildings\models\gates\gate3_dzam.p3d";
armor = 3000;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 8;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenGate_4_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",10},{"equip_nails",1}}};
class AnimationSources {
class DoorR {
source = "User";
animPeriod = 3;
initPhase = 0;
};
class DoorL {
source = "User";
animPeriod = 3;
initPhase = 0;
};
};
class UserActions {
class Lock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_LOCKGATE;
condition = "this animationPhase 'DoorR' >= 0.7";
statement = "[this,'combo_locked',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 0];this animate ['DoorL', 0]";
};
class Unlock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "(!keypadCancel && DZE_Lock_Door == (this getvariable['CharacterID','0'])) && (this animationPhase 'DoorR' < 0.3)";
statement = "[this,'combo_unlock',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,5,GateMethod];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 1];this animate ['DoorL', 1];GateMethod = nil;";
};
class Unlock_Door_Dialog
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
};
lockable = 3;
};
class WoodenGate_4_DZ: DZE_Housebase
{
armor = 3500;
scope = 2;
displayName = $STR_BLD_name_WoodenGate_4;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 8;
offset[] = {0,4,0};
model = "z\addons\dayz_buildings\models\gates\gate4_dzam.p3d";
class AnimationSources {
class DoorR {
source = "User";
animPeriod = 3;
initPhase = 0;
};
class DoorL {
source = "User";
animPeriod = 3;
initPhase = 0;
};
};
class UserActions {
class Lock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_LOCKGATE;
condition = "this animationPhase 'DoorR' >= 0.7";
statement = "[this,'combo_locked',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 0];this animate ['DoorL', 0]";
};
class Unlock_Door
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "(!keypadCancel && DZE_Lock_Door == (this getvariable['CharacterID','0'])) && (this animationPhase 'DoorR' < 0.3)";
statement = "[this,'combo_unlock',0,false] spawn dayz_zombieSpeak;PVDZE_handleSafeGear = [player,this,5,GateMethod];publicVariableServer ""PVDZE_handleSafeGear"";this animate ['DoorR', 1];this animate ['DoorL', 1];GateMethod = nil;";
};
class Unlock_Door_Dialog
{
radius = 3;
position = "Door";
onlyForPlayer = 1;
priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
};
lockable = 3;
};

View File

@@ -0,0 +1,161 @@
class MetalFence_ghost_DZ: NonStrategic
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence_ghost.p3d";
displayName = $STR_BLD_name_MetalFence_ghost;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
destrType = "DestructNo";
armor = 1000;
vehicleClass = "DayZ Epoch Buildables";
};
class MetalFence_1_foundation_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence1_foundation.p3d";
displayName = $STR_BLD_name_MetalFence_1_foundation;
icon = "\ca\data\data\Unknown_object.paa";
GhostPreview = "MetalFence_ghost_DZ";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_1_frame_DZ",{"ItemToolbox","ItemSledge"},{{"ItemPlank",4},{"ItemRSJ",1}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 1000;
destrType = "DestructBuilding";
};
class MetalFence_1_frame_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence1_stage1.p3d";
displayName = $STR_BLD_name_MetalFence_1_frame;
icon = "\ca\data\data\Unknown_object.paa";
GhostPreview = "MetalFence_ghost_DZ";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_halfpanel_DZ",{"ItemToolbox","ItemSledge"},{{"ItemMetalSheet",3},{"ItemScrews",1}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 1500;
destrType = "DestructBuilding";
};
class MetalFence_halfpanel_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence1_stage2.p3d";
displayName = $STR_BLD_name_MetalFence_halfpanel;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_thirdpanel_DZ",{"ItemToolbox","ItemSledge"},{{"ItemMetalSheet",3},{"ItemScrews",1}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 2000;
destrType = "DestructBuilding";
};
class MetalFence_thirdpanel_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence1_stage3.p3d";
displayName = $STR_BLD_name_MetalFence_thirdpanel;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_1_DZ",{"ItemToolbox","ItemSledge"},{{"ItemMetalSheet",3},{"ItemScrews",1}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 2500;
destrType = "DestructBuilding";
};
class MetalFence_1_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence1.p3d";
displayName = $STR_BLD_name_MetalFence_1;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_2_DZ",{"ItemToolbox","ItemSledge"},{{"ItemMetalSheet",4},{"ItemScrews",1},{"ItemRSJ",2}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 3000;
destrType = "DestructBuilding";
};
class MetalFence_2_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence2.p3d";
displayName = $STR_BLD_name_MetalFence_2;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_3_DZ",{"ItemToolbox","ItemSledge"},{{"ItemMetalSheet",4},{"ItemScrews",1},{"ItemRSJ",2}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 3500;
destrType = "DestructBuilding";
};
class MetalFence_3_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence3.p3d";
displayName = $STR_BLD_name_MetalFence_3;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_4_DZ",{"ItemToolbox","ItemSledge"},{{"ItemScrews",1},{"ItemRSJ",4}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 4000;
destrType = "DestructBuilding";
};
class MetalFence_4_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence4.p3d";
displayName = $STR_BLD_name_MetalFence_4;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_5_DZ",{"ItemToolbox","ItemSledge"},{{"ItemScrews",1},{"ItemRSJ",2}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 4500;
destrType = "DestructBuilding";
};
class MetalFence_5_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence5.p3d";
displayName = $STR_BLD_name_MetalFence_5;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_6_DZ",{"ItemToolbox","ItemSledge"},{{"ItemScrews",1},{"ItemPole",4},{"equip_metal_sheet",4}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 5000;
destrType = "DestructBuilding";
};
class MetalFence_6_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence6.p3d";
displayName = $STR_BLD_name_MetalFence_6;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"MetalFence_7_DZ",{"ItemToolbox","ItemSledge"},{{"ItemScrews",1},{"ItemPole",6},{"PartGeneric",2}}};
vehicleClass = "DayZ Epoch Buildables";
armor = 5500;
destrType = "DestructBuilding";
};
class MetalFence_7_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\metal_fence7.p3d";
displayName = $STR_BLD_name_MetalFence_7;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
ladders[]={{"ladderstart","ladderend"}};
vehicleClass = "DayZ Epoch Buildables";
armor = 5500;
destrType = "DestructBuilding";
};

View File

@@ -0,0 +1,172 @@
class WoodenFence_ghost_DZ: NonStrategic
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence_wood_ghost.p3d";
displayName = $STR_BLD_name_WoodenFence_ghost;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
destrType = "DestructNo";
armor = 1000;
vehicleClass = "DayZ Epoch Buildables";
};
class WoodenFence_1_foundation_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence1_ground.p3d";
displayName = $STR_BLD_name_WoodenFence_1_foundation;
GhostPreview = "WoodenFence_ghost_DZ";
armor = 1000;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_1_frame_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",4},{"equip_nails",1}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_1_frame_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence1_frame.p3d";
displayName = $STR_BLD_name_WoodenFence_1_frame;
GhostPreview = "WoodenFence_ghost_DZ";
armor = 1200;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_quaterpanel_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",4},{"equip_nails",1}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_quaterpanel_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence1_stage1.p3d";
displayName = $STR_BLD_name_WoodenFence_quaterpanel;
armor = 1400;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_halfpanel_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",4},{"equip_nails",1}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_halfpanel_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence1_stage2.p3d";
displayName = $STR_BLD_name_WoodenFence_halfpanel;
armor = 1600;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_thirdpanel_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",4},{"equip_nails",1}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_thirdpanel_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence1_stage3.p3d";
displayName = $STR_BLD_name_WoodenFence_thirdpanel;
armor = 1800;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_1_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",4},{"equip_nails",1}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_1_DZ: ModularItems
{
scope = 2;
model = "z\addons\dayz_buildings\models\fence1.p3d";
displayName = $STR_BLD_name_WoodenFence_1;
armor = 2000;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_2_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",8},{"equip_nails",2}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_2_DZ: ModularItems
{
scope = 2;
armor = 2200;
model = "z\addons\dayz_buildings\models\fence2.p3d";
displayName = $STR_BLD_name_WoodenFence_2;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_3_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",8},{"equip_nails",2}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_3_DZ: ModularItems
{
scope = 2;
armor = 2400;
model = "z\addons\dayz_buildings\models\fence3.p3d";
displayName = $STR_BLD_name_WoodenFence_3;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_4_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemPlank",8},{"equip_nails",2}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_4_DZ: ModularItems
{
scope = 2;
armor = 2600;
model = "z\addons\dayz_buildings\models\fence4.p3d";
displayName = $STR_BLD_name_WoodenFence_4;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_5_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemLog",5},{"equip_nails",2}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_5_DZ: ModularItems
{
scope = 2;
armor = 2800;
model = "z\addons\dayz_buildings\models\fence5.p3d";
displayName = $STR_BLD_name_WoodenFence_5;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_6_DZ",{"ItemToolbox","ItemHatchet"},{{"PartWoodPlywood",4},{"ItemPlank",2},{"equip_nails",2}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_6_DZ: ModularItems
{
scope = 2;
armor = 3000;
model = "z\addons\dayz_buildings\models\fence6.p3d";
displayName = $STR_BLD_name_WoodenFence_6;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
upgradeBuilding[] = {"WoodenFence_7_DZ",{"ItemToolbox","ItemHatchet"},{{"ItemWoodLadder",1},{"equip_nails",1}}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};
class WoodenFence_7_DZ: ModularItems
{
scope = 2;
armor = 3000;
model = "z\addons\dayz_buildings\models\fence7.p3d";
displayName = $STR_BLD_name_WoodenFence_7;
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
offset[] = {0,4,0};
ladders[] = {{"ladderstart","ladderend"}};
vehicleClass = "DayZ Epoch Buildables";
destrType = "DestructBuilding";
};

View File

@@ -481,6 +481,9 @@ class CfgVehicles
#include "Buildables\Doors.hpp"
#include "Buildables\ModularBuilding.hpp"
#include "Buildables\ModularWrecks.hpp"
#include "Buildables\FencesWood.hpp"
#include "Buildables\FencesMetal.hpp"
#include "Buildables\FencesGates.hpp"
#include "Buildables\Misc.hpp"
//Loot Container