mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Add wooden handrail
Also replace open door with open gate for all gates.
This commit is contained in:
@@ -441,6 +441,28 @@ class ItemWoodLadder: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class ItemWoodHandRail: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_WOODRAIL;
|
||||
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_WOODRAIL_DESC;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemToolbox"};
|
||||
create = "WoodHandrail_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemWoodWall: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
|
||||
@@ -43,6 +43,15 @@ class ItemLog : CA_Magazine
|
||||
requiretools[] = {"ItemHatchet"};
|
||||
output[] = {{"PartWoodPile",4}};
|
||||
input[] = {{"ItemLog",1}};
|
||||
};
|
||||
class Crafting3
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_256;
|
||||
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemHatchet","ItemCrowbar"};
|
||||
output[] = {{"deer_stand_kit",1}};
|
||||
input[] = {{"ItemLog",8},{"ItemPlank",2},{"equip_nails",2}};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -76,7 +85,16 @@ class ItemPlank : CA_Magazine
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"equip_woodensplint",1}};
|
||||
input[] = {{"ItemPlank",1},{"equip_duct_tape",1},{"equip_string",1}};
|
||||
};
|
||||
};
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_255;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"bulk_empty",1}};
|
||||
input[] = {{"ItemPlank",2},{"PartGeneric",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -84,12 +102,12 @@ class PartWoodPile : CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
|
||||
type = 256;
|
||||
model = "\dayz_equip\models\woodPile.p3d";
|
||||
picture = "\dayz_equip\textures\equip_woodPile_ca.paa";
|
||||
displayName = $STR_EQUIP_NAME_40;
|
||||
descriptionShort = $STR_EQUIP_DESC_40;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
@@ -195,7 +213,7 @@ class PartWoodLumber: CA_Magazine
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_LUMBER;
|
||||
model = "\z\addons\dayz_epoch\models\planks.p3d";
|
||||
picture= "\z\addons\dayz_epoch\pictures\equip_wood_planks_CA.paa";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wood_planks_CA.paa";
|
||||
descriptionShort = $STR_EPOCH_LUMBER_DESC;
|
||||
|
||||
class ItemActions
|
||||
@@ -208,27 +226,15 @@ class PartWoodLumber: CA_Magazine
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"PartWoodPlywood",1}};
|
||||
input[] = {{"PartWoodLumber",2}};
|
||||
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_255;
|
||||
text = $STR_EPOCH_ACTION_WOODHANDRAIL;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"bulk_empty",1}};
|
||||
input[] = {{"PartWoodLumber",2},{"PartGeneric",1}};
|
||||
|
||||
};
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_256;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
||||
output[] = {{"deer_stand_kit",1}};
|
||||
input[] = {{"PartWoodLumber",8},{"PartWoodPile",2},{"equip_nails",2}};
|
||||
|
||||
output[] = {{"ItemWoodHandRail",2}};
|
||||
input[] = {{"PartWoodLumber",6},{"equip_nails",1}};
|
||||
};
|
||||
class Crafting3
|
||||
{
|
||||
@@ -287,7 +293,7 @@ class PartWoodPlywood: CA_Magazine
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_PLYWOOD;
|
||||
model = "\z\addons\dayz_epoch\models\plywood.p3d";
|
||||
picture= "\z\addons\dayz_epoch\pictures\equip_plywood_CA.paa";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_plywood_CA.paa";
|
||||
descriptionShort = $STR_EPOCH_PLYWOOD_DESC;
|
||||
|
||||
class ItemActions
|
||||
|
||||
@@ -491,7 +491,7 @@ class Land_DZE_WoodGate: Land_DZE_WoodDoor_Base {
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_OPEN_GATE;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
@@ -500,7 +500,7 @@ class Land_DZE_WoodGate: Land_DZE_WoodDoor_Base {
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_CLOSE_GATE;
|
||||
condition = "this animationPhase ""Open_door"" >= 0.5";
|
||||
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
|
||||
};
|
||||
@@ -538,7 +538,7 @@ class Land_DZE_WoodGateLocked: Land_DZE_WoodDoorLocked_Base {
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_OPEN_GATE;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
@@ -547,25 +547,25 @@ class Land_DZE_WoodGateLocked: Land_DZE_WoodDoorLocked_Base {
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_CLOSE_GATE;
|
||||
condition = "(this animationPhase ""Open_door"" == 1) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
|
||||
};
|
||||
class Lock_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_LOCK;
|
||||
displayName = $STR_BLD_ACTIONS_LOCKGATE;
|
||||
condition = "(this animationPhase ""Open_door"" == 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;
|
||||
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
|
||||
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""Open_door"" == 0) and (this animationPhase ""Open_latch"" == 0)";
|
||||
statement = "this animate [""Open_latch"", 1];PVDZE_handleSafeGear = [player,this,5,DZE_Lock_Door];publicVariableServer ""PVDZE_handleSafeGear"";";
|
||||
};
|
||||
class Unlock_Door_Dialog : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_UNLOCK;
|
||||
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
|
||||
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"";};";
|
||||
};
|
||||
@@ -788,7 +788,7 @@ class CinderGate_DZ: CinderWallDoor_DZ_Base {
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_OPEN_GATE;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
@@ -797,7 +797,7 @@ class CinderGate_DZ: CinderWallDoor_DZ_Base {
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_CLOSE_GATE;
|
||||
condition = "this animationPhase ""Open_door"" >= 0.5";
|
||||
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
|
||||
};
|
||||
@@ -835,7 +835,7 @@ class CinderGateLocked_DZ: CinderWallDoorLocked_DZ_Base {
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_OPEN_GATE;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
@@ -844,25 +844,25 @@ class CinderGateLocked_DZ: CinderWallDoorLocked_DZ_Base {
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
displayName = $STR_BLD_ACTIONS_CLOSE_GATE;
|
||||
condition = "(this animationPhase ""Open_door"" == 1) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
|
||||
};
|
||||
class Lock_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_LOCK;
|
||||
displayName = $STR_BLD_ACTIONS_LOCKGATE;
|
||||
condition = "(this animationPhase ""Open_door"" == 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;
|
||||
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
|
||||
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""Open_door"" == 0) and (this animationPhase ""Open_latch"" == 0)";
|
||||
statement = "this animate [""Open_latch"", 1];PVDZE_handleSafeGear = [player,this,5,DZE_Lock_Door];publicVariableServer ""PVDZE_handleSafeGear"";";
|
||||
};
|
||||
class Unlock_Door_Dialog : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_UNLOCK;
|
||||
displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
|
||||
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"";};";
|
||||
};
|
||||
|
||||
@@ -348,18 +348,7 @@ class WoodTriangleWall_DZ: ModularItems {
|
||||
armor = 1500;
|
||||
displayName = $STR_EPOCH_TRIANGLE_WOODWALL;
|
||||
GhostPreview = "Wood_Triangle_Wall_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_frame.p3d";
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
maintainBuilding[] = {{"PartWoodLumber",1}};
|
||||
};
|
||||
|
||||
class WoodStairs_DZ: ModularItems {
|
||||
@@ -404,6 +393,16 @@ class WoodStairsSans_DZ: ModularItems {
|
||||
GhostPreview = "WoodStairsSans_Preview_DZ";
|
||||
};
|
||||
|
||||
class WoodHandrail_DZ: ModularItems {
|
||||
scope = 2;
|
||||
offset[] = {0,1.5,0};
|
||||
model = "\z\addons\dayz_epoch_v\base_building\wood\railing\railing.p3d";
|
||||
armor = 300;
|
||||
displayName = $STR_EPOCH_WOODRAIL;
|
||||
maintainBuilding[] = {{"PartWoodLumber",1}};
|
||||
GhostPreview = "Wood_Handrail_Preview_DZ";
|
||||
};
|
||||
|
||||
class WoodGateFrame_DZ: ModularItems {
|
||||
scope = 2;
|
||||
offset[] = {0,3,0};
|
||||
|
||||
@@ -139,4 +139,9 @@ class Wood_Triangle_Wall_Preview_DZ: DZE_Ghost_Previews {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\wood\apex_tri\apex_tri.p3d";
|
||||
displayName = "Wood Triangle wall";
|
||||
};
|
||||
};
|
||||
class Wood_Handrail_Preview_DZ: DZE_Ghost_Previews {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\wood\railing\railing.p3d";
|
||||
displayName = "Wood Handrail";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user