mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
modular base building wreck models by Paul Tomany
This commit is contained in:
@@ -87,7 +87,7 @@ class Land_DZE_WoodDoor_Base: DZE_Housebase {
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "CA\Structures\Ruins\rubble_wood_02"; /* path to the object*/
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_frame.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
@@ -117,7 +117,7 @@ class Land_DZE_WoodDoorLocked_Base: DZE_Housebase {
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "CA\Structures\Ruins\rubble_wood_02"; /* path to the object*/
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_frame.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
@@ -141,6 +141,19 @@ class CinderWallDoor_DZ_Base: DZE_Housebase {
|
||||
scope = 2; /* Display it in the editor? 1 = No, 2 = Yes */
|
||||
offset[] = {0,1.5,0};
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CinderWallDoorLocked_DZ_Base: DZE_Housebase {
|
||||
@@ -156,14 +169,58 @@ class CinderWallDoorLocked_DZ_Base: DZE_Housebase {
|
||||
offset[] = {0,1.5,0};
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
lockable = 3;
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* Same name as stated in the Class DestructionEffects, but an "Land_" added infront*/
|
||||
class Land_rubble_wood_02 : ruins {
|
||||
class Land_wood_wreck_frame : ruins {
|
||||
scope = 1;
|
||||
model = "CA\Structures\Ruins\rubble_wood_02.p3d";
|
||||
model = "\z\addons\dayz_epoch\models\wood_wreck_frame.p3d";
|
||||
displayName = "Wood Wall ruins";
|
||||
};
|
||||
class Land_wood_wreck_third : ruins {
|
||||
scope = 1;
|
||||
model = "\z\addons\dayz_epoch\models\wood_wreck_third.p3d";
|
||||
displayName = "Wood Wall 1/3 ruins";
|
||||
};
|
||||
|
||||
class Land_wood_wreck_half : ruins {
|
||||
scope = 1;
|
||||
model = "\z\addons\dayz_epoch\models\wood_wreck_half.p3d";
|
||||
displayName = "Wood Floor 1/2 ruins";
|
||||
};
|
||||
|
||||
class Land_wood_wreck_floor : ruins {
|
||||
scope = 1;
|
||||
model = "\z\addons\dayz_epoch\models\wood_wreck_floor.p3d";
|
||||
displayName = "Wood Floor ruins";
|
||||
};
|
||||
|
||||
class Land_wood_wreck_quarter : ruins {
|
||||
scope = 1;
|
||||
model = "\z\addons\dayz_epoch\models\wood_wreck_quarter.p3d";
|
||||
displayName = "Wood Floor 1/4 ruins";
|
||||
};
|
||||
|
||||
class Land_wreck_cinder: ruins {
|
||||
scope = 1;
|
||||
model = "\z\addons\dayz_epoch\models\wreck_cinder.p3d";
|
||||
displayName = "Cinder wall ruins";
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Your doorsegment is derivated from the normal wall.*/
|
||||
class Land_DZE_WoodDoor: Land_DZE_WoodDoor_Base {
|
||||
|
||||
@@ -1632,6 +1632,19 @@ class CfgVehicles {
|
||||
upgradeBuilding[] = {"CinderWall_DZ",{{"CinderBlocks",4},{"MortarBucket",1}}};
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
GhostPreview = "CinderWallHalf_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
class CinderWall_DZ: ModularItems
|
||||
{
|
||||
@@ -1647,6 +1660,19 @@ class CfgVehicles {
|
||||
vehicleClass = "Fortifications";
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
GhostPreview = "CinderWall_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CinderWallDoorway_DZ: ModularItems
|
||||
@@ -1664,6 +1690,19 @@ class CfgVehicles {
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
upgradeBuilding[] = {"CinderWallDoor_DZ",{{"ItemPole",3},{"ItemTankTrap",3}}};
|
||||
GhostPreview = "CinderWallDoorway_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CinderWallSmallDoorway_DZ: ModularItems
|
||||
@@ -1680,7 +1719,20 @@ class CfgVehicles {
|
||||
vehicleClass = "Fortifications";
|
||||
maintainBuilding[] = {{"MortarBucket",1}};
|
||||
upgradeBuilding[] = {"CinderWallDoorSmall_DZ",{{"ItemPole",1},{"ItemTankTrap",1}}};
|
||||
GhostPreview = "CinderWallSmallDoorway_Preview_DZ"; // todo change this
|
||||
GhostPreview = "CinderWallSmallDoorway_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class WoodFloor_DZ: ModularItems
|
||||
@@ -1697,6 +1749,19 @@ class CfgVehicles {
|
||||
vehicleClass = "Fortifications";
|
||||
maintainBuilding[] = {{"PartWoodLumber",4}};
|
||||
GhostPreview = "WoodFloor_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_floor.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
class WoodFloorHalf_DZ: ModularItems
|
||||
{
|
||||
@@ -1713,6 +1778,19 @@ class CfgVehicles {
|
||||
maintainBuilding[] = {{"PartWoodLumber",2}};
|
||||
constructioncount = 2;
|
||||
GhostPreview = "WoodFloorHalf_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_half.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
class WoodFloorQuarter_DZ: ModularItems
|
||||
{
|
||||
@@ -1729,6 +1807,19 @@ class CfgVehicles {
|
||||
maintainBuilding[] = {{"PartWoodLumber",1}};
|
||||
constructioncount = 1;
|
||||
GhostPreview = "WoodFloorQuarter_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_quarter.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class WoodLargeWall_DZ: ModularItems
|
||||
@@ -1746,6 +1837,18 @@ class CfgVehicles {
|
||||
upgradeBuilding[] = {"WoodLargeWallWin_DZ",{{"PartGlass",1}}};
|
||||
maintainBuilding[] = {{"PartWoodPlywood",1},{"PartWoodLumber",1}};
|
||||
GhostPreview = "WoodLargeWall_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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class WoodLargeWallDoor_DZ: ModularItems
|
||||
@@ -1763,6 +1866,18 @@ class CfgVehicles {
|
||||
maintainBuilding[] = {{"PartWoodPlywood",1},{"PartWoodLumber",1}};
|
||||
upgradeBuilding[] = {"Land_DZE_LargeWoodDoor",{{"PartWoodPlywood",1},{"PartWoodLumber",1}}};
|
||||
GhostPreview = "WoodLargeWallDoor_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;
|
||||
};
|
||||
};
|
||||
};
|
||||
class WoodLargeWallWin_DZ: ModularItems
|
||||
{
|
||||
@@ -1778,6 +1893,18 @@ class CfgVehicles {
|
||||
vehicleClass = "Fortifications";
|
||||
maintainBuilding[] = {{"PartWoodPlywood",1},{"PartWoodLumber",1}};
|
||||
GhostPreview = "WoodLargeWallWin_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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class WoodSmallWall_DZ: ModularItems
|
||||
@@ -1795,6 +1922,18 @@ class CfgVehicles {
|
||||
maintainBuilding[] = {{"PartWoodPlywood",1},{"PartWoodLumber",1}};
|
||||
upgradeBuilding[] = {"WoodSmallWallWin_DZ",{{"PartGlass",1}}};
|
||||
GhostPreview = "WoodSmallWall_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;
|
||||
};
|
||||
};
|
||||
};
|
||||
class WoodSmallWallThird_DZ: ModularItems
|
||||
{
|
||||
@@ -1811,6 +1950,18 @@ class CfgVehicles {
|
||||
maintainBuilding[] = {{"PartWoodLumber",1}};
|
||||
constructioncount = 1;
|
||||
GhostPreview = "WoodSmallWallThird_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_third.p3d";
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class WoodSmallWallWin_DZ: ModularItems
|
||||
@@ -1827,6 +1978,18 @@ class CfgVehicles {
|
||||
vehicleClass = "Fortifications";
|
||||
maintainBuilding[] = {{"PartWoodPlywood",1},{"PartWoodLumber",1}};
|
||||
GhostPreview = "WoodSmallWallWin_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;
|
||||
};
|
||||
};
|
||||
};
|
||||
class WoodSmallWallDoor_DZ: ModularItems
|
||||
{
|
||||
@@ -1843,6 +2006,19 @@ class CfgVehicles {
|
||||
upgradeBuilding[] = {"Land_DZE_WoodDoor",{{"PartWoodPlywood",1},{"PartWoodLumber",1}}};
|
||||
maintainBuilding[] = {{"PartWoodPlywood",1},{"PartWoodLumber",1}};
|
||||
GhostPreview = "WoodSmallWallDoor_Preview_DZ";
|
||||
class DestructionEffects : DestructionEffects
|
||||
{
|
||||
class Ruin1
|
||||
{
|
||||
simulation = "ruin";
|
||||
type = "\z\addons\dayz_epoch\models\wood_wreck_frame.p3d"; /* path to the object*/
|
||||
/* Warning, if you use a custom rubble model, it has to be defined in the cfgvehicles (see below)*/
|
||||
position = "";
|
||||
intensity = 1;
|
||||
interval = 1;
|
||||
lifeTime = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
class WoodStairs_DZ: ModularItems
|
||||
{
|
||||
@@ -1904,7 +2080,7 @@ class CfgVehicles {
|
||||
icon = "\ca\data\data\Unknown_object.paa";
|
||||
mapSize = 2;
|
||||
armor = 1000;
|
||||
displayName = "Block Garage Doorway";
|
||||
displayName = "Block Doorway";
|
||||
vehicleClass = "Fortifications";
|
||||
};
|
||||
class CinderWallDoorway_Preview_DZ: NonStrategic
|
||||
|
||||
@@ -49,7 +49,7 @@ if("fire" in _needNear) then {
|
||||
};
|
||||
};
|
||||
if("workshop" in _needNear) then {
|
||||
_isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]); // Needs changed to your workbench class
|
||||
_isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
|
||||
if(_isNear == 0) then {
|
||||
_abort = true;
|
||||
_reason = "workshop";
|
||||
@@ -182,6 +182,8 @@ if (_canDo) then {
|
||||
|
||||
// Add crafted item
|
||||
cutText [format["\n\nCrafted Item: %1 x %2",_textCreate,_countOut], "PLAIN DOWN"];
|
||||
// sleep here
|
||||
sleep 1;
|
||||
|
||||
} forEach _selectedRecipeOutput;
|
||||
};
|
||||
|
||||
BIN
SQF/dayz_epoch/models/wood_wreck.p3d
Normal file
BIN
SQF/dayz_epoch/models/wood_wreck.p3d
Normal file
Binary file not shown.
BIN
SQF/dayz_epoch/models/wood_wreck_floor.p3d
Normal file
BIN
SQF/dayz_epoch/models/wood_wreck_floor.p3d
Normal file
Binary file not shown.
BIN
SQF/dayz_epoch/models/wood_wreck_frame.p3d
Normal file
BIN
SQF/dayz_epoch/models/wood_wreck_frame.p3d
Normal file
Binary file not shown.
BIN
SQF/dayz_epoch/models/wood_wreck_half.p3d
Normal file
BIN
SQF/dayz_epoch/models/wood_wreck_half.p3d
Normal file
Binary file not shown.
BIN
SQF/dayz_epoch/models/wood_wreck_quarter.p3d
Normal file
BIN
SQF/dayz_epoch/models/wood_wreck_quarter.p3d
Normal file
Binary file not shown.
BIN
SQF/dayz_epoch/models/wood_wreck_third.p3d
Normal file
BIN
SQF/dayz_epoch/models/wood_wreck_third.p3d
Normal file
Binary file not shown.
BIN
SQF/dayz_epoch/models/wreck_cinder.p3d
Normal file
BIN
SQF/dayz_epoch/models/wreck_cinder.p3d
Normal file
Binary file not shown.
68
SQF/dayz_epoch/textures/cinder_wreck.rvmat
Normal file
68
SQF/dayz_epoch/textures/cinder_wreck.rvmat
Normal file
@@ -0,0 +1,68 @@
|
||||
ambient[]={0.48627451,0.48627451,0.48627451,0.63999999};
|
||||
diffuse[]={0.48627451,0.48627451,0.48627451,0.63999999};
|
||||
forcedDiffuse[]={0,0,0,0};
|
||||
emmisive[]={0,0,0,1};
|
||||
specular[]={0.34117648,0.34117648,0.34117648,1};
|
||||
specularPower=100;
|
||||
PixelShaderID="Super";
|
||||
VertexShaderID="Super";
|
||||
class Stage1
|
||||
{
|
||||
texture="z\addons\dayz_epoch\textures\cinder_nohq.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,0};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage2
|
||||
{
|
||||
texture="CA\data\destruct\concrete_broken_full3_dt.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,0};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage3
|
||||
{
|
||||
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,0};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage4
|
||||
{
|
||||
texture="#(argb,8,8,3)color(1,1,1,1,AS)";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,0};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
||||
class Stage5
|
||||
{
|
||||
texture="CA\data\destruct\concrete_broken_full3_dtsmdi.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
aside[]={1,0,0};
|
||||
up[]={0,1,0};
|
||||
dir[]={0,0,0};
|
||||
pos[]={0,0,0};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user