mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-17 21:52:56 +03:00
Add a new cinder garage version
Models made by @Helion4
This commit is contained in:
@@ -64,7 +64,7 @@ class full_cinder_wall_kit: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_door_kit: CA_Magazine
|
||||
class cinder_door_frame_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -84,6 +84,37 @@ class cinder_door_kit: CA_Magazine
|
||||
create = "CinderWallSmallDoorway_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_238;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_door_kit",1}};
|
||||
input[] = {{"cinder_door_frame_kit",1},{"ItemPole",1},{"ItemTankTrap",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_door_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_BLOCKDOORWAY;
|
||||
descriptionShort = $STR_EPOCH_BLOCKDOORWAY_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 = "CinderWallDoorSmall_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_239;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
@@ -117,6 +148,37 @@ class cinder_door_kit_locked: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_garage_frame_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_BLOCKGARAGEDOORWAY;
|
||||
descriptionShort = $STR_EPOCH_BLOCKGARAGEDOORWAY_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 = "CinderWallDoorway_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_240;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_garage_kit",1}};
|
||||
input[] = {{"cinder_garage_frame_kit",1},{"ItemPole",3},{"ItemTankTrap",3}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_garage_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
@@ -170,6 +232,90 @@ class cinder_garage_kit_locked: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_garage_top_open_frame_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_CINDEROPENTOPGARAGEFRAME;
|
||||
descriptionShort = $STR_EPOCH_CINDEROPENTOPGARAGEFRAME_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 = "CinderGarageOpenTopFrame_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_240;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_garage_top_open_kit",1}};
|
||||
input[] = {{"cinder_garage_top_open_frame_kit",1},{"ItemPole",3},{"ItemTankTrap",3}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_garage_top_open_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_CINDEROPENTOPGARAGEDOOR;
|
||||
descriptionShort = $STR_EPOCH_CINDEROPENTOPGARAGEDOOR_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 = "CinderGarageOpenTop_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_239;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {};
|
||||
output[] = {{"cinder_garage_top_open_kit_locked",1}};
|
||||
input[] = {{"cinder_garage_top_open_kit",1},{"ItemComboLock",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_garage_top_open_kit_locked: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_CINDEROPENTOPGARAGEDOORLOCKED;
|
||||
descriptionShort = $STR_EPOCH_CINDEROPENTOPGARAGEDOORLOCKED_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 = "CinderGarageOpenTopLocked_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class cinder_gate_frame_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
@@ -189,6 +335,15 @@ class cinder_gate_frame_kit: CA_Magazine
|
||||
require[] = {"ItemToolbox"};
|
||||
create = "CinderGateFrame_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_239_1_1;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_gate_kit",1}};
|
||||
input[] = {{"cinder_gate_frame_kit",1},{"equip_metal_sheet",6},{"ItemRSJ",2},{"ItemScrews",2}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -74,37 +74,46 @@ class CinderBlocks: CA_Magazine
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_253;
|
||||
text = $STR_EPOCH_PLAYER_252_1;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_garage_kit",1}};
|
||||
input[] = {{"CinderBlocks",3},{"MortarBucket",1},{"ItemTankTrap",1}};
|
||||
};
|
||||
output[] = {{"full_cinder_wall_kit",1}};
|
||||
input[] = {{"CinderBlocks",7},{"MortarBucket",2}};
|
||||
};
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_234;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_door_kit",1}};
|
||||
output[] = {{"cinder_door_frame_kit",1}};
|
||||
input[] = {{"CinderBlocks",4},{"MortarBucket",1},{"ItemTankTrap",1}};
|
||||
};
|
||||
};
|
||||
class Crafting3
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_252_1;
|
||||
text = $STR_EPOCH_PLAYER_253;
|
||||
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"full_cinder_wall_kit",1}};
|
||||
input[] = {{"CinderBlocks",7},{"MortarBucket",2}};
|
||||
output[] = {{"cinder_garage_frame_kit",1}};
|
||||
input[] = {{"CinderBlocks",3},{"MortarBucket",1},{"ItemTankTrap",1}};
|
||||
};
|
||||
class Crafting4
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_253_1;
|
||||
text = $STR_EPOCH_PLAYER_253_1_1;
|
||||
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_garage_top_open_frame_kit",1}};
|
||||
input[] = {{"CinderBlocks",4},{"MortarBucket",1}};
|
||||
};
|
||||
class Crafting5
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_253_1;
|
||||
script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"cinder_gate_frame_kit",1}};
|
||||
input[] = {{"CinderBlocks",8},{"MortarBucket",4}};
|
||||
};
|
||||
|
||||
@@ -974,6 +974,111 @@ class CinderGateLocked_DZ: CinderWallDoorLocked_DZ_Base {
|
||||
};
|
||||
};
|
||||
|
||||
class CinderGarageOpenTop_DZ: CinderWallDoor_DZ_Base {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\cindergarage_notop.p3d";
|
||||
displayName = $STR_EPOCH_CINDEROPENTOPGARAGEDOOR;
|
||||
GhostPreview = "CinderGarageOpenTop_Preview_DZ";
|
||||
upgradeBuilding[] = {"CinderGarageOpenTopLocked_DZ",{},{{"ItemComboLock",1}}};
|
||||
class AnimationSources
|
||||
{
|
||||
class doorl
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 4;
|
||||
initPhase = 0;
|
||||
};
|
||||
class doorR
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 4;
|
||||
initPhase = 0;
|
||||
};
|
||||
};
|
||||
class UserActions
|
||||
{
|
||||
class Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_O_DOOR;
|
||||
onlyforplayer = true;
|
||||
position = "Door_knopf";
|
||||
radius = 3;
|
||||
condition = "this animationPhase ""doorl"" < 0.5";
|
||||
statement = "this animate [""doorl"", 1];this animate [""doorR"", 1];";
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
condition = "this animationPhase ""doorl"" >= 0.5";
|
||||
statement = "this animate [""doorl"", 0];this animate [""doorR"", 0];";
|
||||
};
|
||||
};
|
||||
};
|
||||
class CinderGarageOpenTopLocked_DZ: CinderWallDoorLocked_DZ_Base {
|
||||
scope = 2;
|
||||
model = "\z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\locked_cindergarage_notop.p3d";
|
||||
displayName = $STR_EPOCH_CINDEROPENTOPGARAGEDOORLOCKED;
|
||||
GhostPreview = "CinderGarageOpenTop_Preview_DZ";
|
||||
downgradeBuilding[] = {"CinderGarageOpenTop_DZ",{{"ItemComboLock",1}}};
|
||||
class AnimationSources
|
||||
{
|
||||
class doorl
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 4;
|
||||
initPhase = 0;
|
||||
};
|
||||
class doorR
|
||||
{
|
||||
source = "user";
|
||||
animPeriod = 4;
|
||||
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 ""doorl"" == 0) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "this animate [""doorl"", 1];this animate [""doorR"", 1];";
|
||||
};
|
||||
class Close_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_DN_OUT_C_DOOR;
|
||||
condition = "(this animationPhase ""doorl"" == 1) and (this animationPhase ""Open_latch"" == 1)";
|
||||
statement = "this animate [""doorl"", 0];this animate [""doorR"", 0];";
|
||||
};
|
||||
class Lock_Door : Open_Door
|
||||
{
|
||||
displayName = $STR_EPOCH_DOORS_LOCK;
|
||||
condition = "(this animationPhase ""doorl"" == 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 ""doorl"" == 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;
|
||||
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"";};";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
Vanilla DayZ buildables are defined in \dayz_buildings\configs\
|
||||
Only included here to overwrite vanilla ItemPadlock with Epoch ItemComboLock
|
||||
|
||||
@@ -100,4 +100,27 @@ class CinderGateFrame_DZ: ModularItems {
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CinderGarageOpenTopFrame_DZ: ModularItems {
|
||||
scope = 2;
|
||||
offset[] = {0,2,0};
|
||||
model = "\z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\cindergarage_notop_frame.p3d";
|
||||
armor = 3000;
|
||||
displayName = $STR_EPOCH_CINDEROPENTOPGARAGEDOORWAY;
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
upgradeBuilding[] = {"CinderGarageOpenTop_DZ",{"ItemToolbox"},{{"ItemPole",3},{"ItemTankTrap",3}}};
|
||||
GhostPreview = "CinderGarageOpenTop_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d";
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -160,3 +160,8 @@ class Wood_GarageOpenTop_Preview_DZ: DZE_Ghost_Previews {
|
||||
model = "\z\addons\dayz_epoch_v\base_building\wood\garage_notop\wood_garage_notop_frame.p3d";
|
||||
displayName = "WoodGarage open top Preview";
|
||||
};
|
||||
class CinderGarageOpenTop_Preview_DZ: DZE_Ghost_Previews {
|
||||
scope = 2;
|
||||
model = "z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\cindergarage_notop_ghost.p3d";
|
||||
displayName = "Cinder Garage open top Preview";
|
||||
};
|
||||
Reference in New Issue
Block a user