Add Metal Drawbridge

Model made by @Helion4
This commit is contained in:
AirwavesMan
2020-11-29 18:25:08 +01:00
parent ce278ba6e7
commit 5e281cfc7b
8 changed files with 208 additions and 4 deletions

View File

@@ -219,6 +219,50 @@ class cinder_gate_kit_locked: CA_Magazine
};
};
class metal_drawbridge_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_METALDRAWBRIDGE;
descriptionShort = $STR_EPOCH_METALDRAWBRIDGE_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 = "Metal_Drawbridge_DZ";
};
};
};
class metal_drawbridge_kit_locked: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_METALDRAWBRIDGELOCKED;
descriptionShort = $STR_EPOCH_METALDRAWBRIDGELOCKED_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 = "Metal_DrawbridgeLocked_DZ";
};
};
};
class ItemWoodFloor: CA_Magazine
{

View File

@@ -133,6 +133,19 @@ class ItemRSJ: CA_Magazine
picture = "\z\addons\dayz_buildings\equip\item_rsj.paa";
model = "z\addons\dayz_buildings\models\rsj.p3d";
descriptionShort = $STR_BLD_desc_ItemRSJ;//"Steel RSJ Support Beam"
class ItemActions
{
class Crafting
{
text = $STR_EPOCH_ACTION_CRAFT_BRIDGE;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop","fire"};
requiretools[] = {"ItemToolbox","ItemCrowbar","ItemSledge"};
output[] = {{"metal_drawbridge_kit",1}};
input[] = {{"ItemRSJ",6},{"metal_floor_kit",2}};
};
};
};
class equip_1inch_metal_pipe : CA_Magazine

View File

@@ -0,0 +1,105 @@
class Metal_Drawbridge_DZ: CinderWallDoor_DZ_Base
{
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\wood\draw_bridge\wood_draw_bridge.p3d";
displayName = $STR_EPOCH_METALDRAWBRIDGE;
GhostPreview = "Drawbridge_Preview_DZ";
offset[] = {0,2.5,0};
upgradeBuilding[] = {"Metal_DrawbridgeLocked_DZ",{},{{"ItemComboLock",1}}};
class AnimationSources {
class Open_inner {
source = "user";
animPeriod = 4;
initPhase = 0;
};
class Open_outer {
source = "user";
animPeriod = 4;
initPhase = 0;
};
};
class UserActions
{
class Open_inner
{
displayName = $STR_EPOCH_ACTION_LOWER_BRIDGE;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
condition = "this animationPhase ""Open_inner"" < 0.5";
statement = "this animate [""Open_inner"", 1];this animate [""Open_outer"", 1];";
};
class Close_Door : Open_inner
{
displayName = $STR_EPOCH_ACTION_RAISE_BRIDGE;
condition = "this animationPhase ""Open_inner"" >= 0.5";
statement = "this animate [""Open_inner"", 0];this animate [""Open_outer"", 0];";
};
};
};
class Metal_DrawbridgeLocked_DZ: CinderWallDoorLocked_DZ_Base
{
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\wood\draw_bridge\wood_draw_bridge_locked.p3d";
displayName = $STR_EPOCH_METALDRAWBRIDGELOCKED;
GhostPreview = "Drawbridge_Preview_DZ";
offset[] = {0,2.5,0};
downgradeBuilding[] = {"Metal_Drawbridge_DZ",{{"ItemComboLock",1}}};
class AnimationSources
{
class Open_inner
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class Open_outer
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class Open_latch
{
source = "user";
animPeriod = 1;
initPhase = 0;
};
};
class UserActions
{
class Open_inner
{
displayName = $STR_EPOCH_ACTION_LOWER_BRIDGE;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
condition = "(this animationPhase ""Open_inner"" == 0) && (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""Open_inner"", 1];this animate [""Open_outer"", 1];";
};
class Close_Door : Open_inner
{
displayName = $STR_EPOCH_ACTION_RAISE_BRIDGE;
condition = "(this animationPhase ""Open_inner"" == 1) && (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""Open_inner"", 0];this animate [""Open_outer"", 0];";
};
class Lock_Door : Open_inner
{
displayName = $STR_EPOCH_ACTION_LOCK_BRIDGE;
condition = "(this animationPhase ""Open_outer"" == 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_inner
{
displayName = $STR_EPOCH_ACTION_UNLOCK_BRIDGE;
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""Open_outer"" == 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_inner
{
displayName = $STR_EPOCH_ACTION_UNLOCK_BRIDGE;
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"";};";
};
};
};

View File

@@ -129,4 +129,9 @@ class CinderGate_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_high_garage\high_steel_garage_frame_ghost.p3d";
displayName = "Cinder Gate Preview";
};
class Drawbridge_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model="z\addons\dayz_epoch_v\base_building\wood\draw_bridge\wood_draw_bridge_ghost.p3d";
displayName = "Metal Drawbridge Preview";
};

View File

@@ -486,6 +486,7 @@ class CfgVehicles
#include "Buildables\Traps.hpp"
#include "Buildables\Generator.hpp"
#include "Buildables\Doors.hpp"
#include "Buildables\Bridges.hpp"
#include "Buildables\ModularBuilding.hpp"
#include "Buildables\ModularWrecks.hpp"
#include "Buildables\FencesWood.hpp"

View File

@@ -106,7 +106,7 @@ if (!isDedicated) then {
// Snap Build and Build Vectors
DZE_modularBuild = true; // Enable Snap Building by @raymix and Build Vectors by @strikerforce.
DZE_snapExtraRange = 0; // Increase the default range from which objects can snap by this many meters.
DZE_noRotate = ["woodfence_foundation_kit","metalfence_foundation_kit","cook_tripod_kit"]; // List of objects (magazine classnames) that cannot be rotated. Example: ["ItemVault","ItemTent","ItemDomeTent","ItemDesertTent"];
DZE_noRotate = ["woodfence_foundation_kit","metalfence_foundation_kit","cook_tripod_kit","metal_drawbridge_kit","metal_drawbridge_kit_locked"]; // List of objects (magazine classnames) that cannot be rotated. Example: ["ItemVault","ItemTent","ItemDomeTent","ItemDesertTent"];
DZE_vectorDegrees = [0.01, 0.1, 1, 5, 15, 45, 90]; // Degree positions players are able to rotate buildables with using the build vectors action menu.
DZE_curDegree = 45; // Starting rotation angle. Prefer any value in the array above.
DZE_dirWithDegrees = true; // When rotating objects with Q&E, use the custom degrees.

View File

@@ -1,7 +1,7 @@
/**************Variables Compiled on Both Client and Server**************/
Dayz_plants = ["Dayz_Plant1","Dayz_Plant2","Dayz_Plant3"];
DayZ_SafeObjects = ["Base_Fire_DZ","Land_Fire_DZ","TentStorage","TentStorage0","TentStorage1","TentStorage2","TentStorage3","TentStorage4","StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3","StashMedium4","Wire_cat1","Sandbag1_DZ","Fence_DZ","Generator_DZ","Hedgehog_DZ","BearTrap_DZ","DomeTentStorage","DomeTentStorage0","DomeTentStorage1","DomeTentStorage2","DomeTentStorage3","DomeTentStorage4","CamoNet_DZ","Trap_Cans","TrapTripwireFlare","TrapBearTrapSmoke","TrapTripwireGrenade","TrapTripwireSmoke","TrapBearTrapFlare","TentStorageDomed","VaultStorageLocked","VaultStorage2Locked","BagFenceRound_DZ","TrapBear","Fort_RazorWire","Land_HBarrier1_DZ","Land_HBarrier3_DZ","Land_HBarrier5_DZ","Fence_corrugated_DZ","M240Nest_DZ","CanvasHut_DZ","ParkBench_DZ","MetalGate_DZ","OutHouse_DZ","Wooden_shed_DZ","Wooden_shed2_DZ","WoodShack_DZ","WoodShack2_DZ","StorageShed_DZ","StorageShed2_DZ","Plastic_Pole_EP1_DZ","StickFence_DZ","LightPole_DZ","FuelPump_DZ","DesertCamoNet_DZ","ForestCamoNet_DZ","WinterCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ","WinterLargeCamoNet_DZ","SandNest_DZ","DeerStand_DZ","MetalPanel_DZ","WorkBench_DZ","WoodFloor_DZ","WoodLargeWall_DZ","WoodLargeWallDoor_DZ","WoodLargeWallWin_DZ","WoodSmallWall_DZ","WoodSmallWallWin_DZ","WoodSmallWallDoor_DZ","LockboxStorageLocked","LockboxStorage2Locked","LockboxStorageWinterLocked","LockboxStorageWinter2Locked","WoodFloorHalf_DZ","WoodFloorQuarter_DZ","WoodStairs_DZ","WoodStairsSans_DZ","WoodStairsRails_DZ","WoodSmallWallThird_DZ","WoodLadder_DZ","Land_DZE_GarageWoodDoor","Land_DZE_LargeWoodDoor","Land_DZE_WoodDoor","Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallHalf_DZ","CinderWall_DZ","CinderWallDoorway_DZ","CinderWallDoor_DZ","CinderWallDoorLocked_DZ","CinderWallSmallDoorway_DZ","CinderWallDoorSmall_DZ","CinderWallDoorSmallLocked_DZ","MetalFloor_DZ","WoodRamp_DZ","GunRack_DZ","GunRack2_DZ","FireBarrel_DZ","WoodCrate_DZ","WoodCrate2_DZ","Scaffolding_DZ","DesertTentStorage","DesertTentStorage0","DesertTentStorage1","DesertTentStorage2","DesertTentStorage3","DesertTentStorage4","WoodenFence_1_foundation_DZ","WoodenFence_1_frame_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","WoodGateFrame_DZ","Land_DZE_WoodGate","Land_DZE_WoodGateLocked","CinderGateFrame_DZ","CinderGate_DZ","CinderGateLocked_DZ"];
DayZ_SafeObjects = ["Base_Fire_DZ","Land_Fire_DZ","TentStorage","TentStorage0","TentStorage1","TentStorage2","TentStorage3","TentStorage4","StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3","StashMedium4","Wire_cat1","Sandbag1_DZ","Fence_DZ","Generator_DZ","Hedgehog_DZ","BearTrap_DZ","DomeTentStorage","DomeTentStorage0","DomeTentStorage1","DomeTentStorage2","DomeTentStorage3","DomeTentStorage4","CamoNet_DZ","Trap_Cans","TrapTripwireFlare","TrapBearTrapSmoke","TrapTripwireGrenade","TrapTripwireSmoke","TrapBearTrapFlare","TentStorageDomed","VaultStorageLocked","VaultStorage2Locked","BagFenceRound_DZ","TrapBear","Fort_RazorWire","Land_HBarrier1_DZ","Land_HBarrier3_DZ","Land_HBarrier5_DZ","Fence_corrugated_DZ","M240Nest_DZ","CanvasHut_DZ","ParkBench_DZ","MetalGate_DZ","OutHouse_DZ","Wooden_shed_DZ","Wooden_shed2_DZ","WoodShack_DZ","WoodShack2_DZ","StorageShed_DZ","StorageShed2_DZ","Plastic_Pole_EP1_DZ","StickFence_DZ","LightPole_DZ","FuelPump_DZ","DesertCamoNet_DZ","ForestCamoNet_DZ","WinterCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ","WinterLargeCamoNet_DZ","SandNest_DZ","DeerStand_DZ","MetalPanel_DZ","WorkBench_DZ","WoodFloor_DZ","WoodLargeWall_DZ","WoodLargeWallDoor_DZ","WoodLargeWallWin_DZ","WoodSmallWall_DZ","WoodSmallWallWin_DZ","WoodSmallWallDoor_DZ","LockboxStorageLocked","LockboxStorage2Locked","LockboxStorageWinterLocked","LockboxStorageWinter2Locked","WoodFloorHalf_DZ","WoodFloorQuarter_DZ","WoodStairs_DZ","WoodStairsSans_DZ","WoodStairsRails_DZ","WoodSmallWallThird_DZ","WoodLadder_DZ","Land_DZE_GarageWoodDoor","Land_DZE_LargeWoodDoor","Land_DZE_WoodDoor","Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallHalf_DZ","CinderWall_DZ","CinderWallDoorway_DZ","CinderWallDoor_DZ","CinderWallDoorLocked_DZ","CinderWallSmallDoorway_DZ","CinderWallDoorSmall_DZ","CinderWallDoorSmallLocked_DZ","MetalFloor_DZ","WoodRamp_DZ","GunRack_DZ","GunRack2_DZ","FireBarrel_DZ","WoodCrate_DZ","WoodCrate2_DZ","Scaffolding_DZ","DesertTentStorage","DesertTentStorage0","DesertTentStorage1","DesertTentStorage2","DesertTentStorage3","DesertTentStorage4","WoodenFence_1_foundation_DZ","WoodenFence_1_frame_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","WoodGateFrame_DZ","Land_DZE_WoodGate","Land_DZE_WoodGateLocked","CinderGateFrame_DZ","CinderGate_DZ","CinderGateLocked_DZ","Metal_Drawbridge_DZ","Metal_DrawbridgeLocked_DZ"];
DayZ_GearedObjects = ["Car","Helicopter","Motorcycle","Ship","TentStorage_base","StashSmall_base","StashMedium_base","Plane","Tank","VaultStorage","VaultStorage2","LockboxStorage","LockboxStorage2","LockboxStorageWinter","LockboxStorageWinter2","TentStorage","OutHouse_DZ","Wooden_shed_DZ","Wooden_shed2_DZ","WoodShack_DZ","WoodShack2_DZ","StorageShed_DZ","StorageShed2_DZ","GunRack_DZ","GunRack2_DZ","WoodCrate_DZ","WoodCrate2_DZ","Scaffolding_DZ","Generator_DZ"];
dayz_typedBags = ["emptyBloodBag","bloodTester","bloodBagANEG","bloodBagAPOS","bloodBagBNEG","bloodBagBPOS","bloodBagABNEG","bloodBagABPOS","bloodBagONEG","bloodBagOPOS","wholeBloodBagANEG","wholeBloodBagAPOS","wholeBloodBagBNEG","wholeBloodBagBPOS","wholeBloodBagABNEG","wholeBloodBagABPOS","wholeBloodBagONEG","wholeBloodBagOPOS"];
dayz_plant = ["pumpkin.p3d","p_helianthus.p3d","p_fiberplant_ep1.p3d"];
@@ -18,7 +18,7 @@ AllPlayers = ["Survivor_DZ","Survivor1_DZ","SurvivorW2_DZ","Survivor2_DZ","Snipe
// Epoch Additions
dayz_activeInvites = [];
DZE_DoorsLocked = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ","WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ","Land_DZE_WoodGateLocked","CinderGateLocked_DZ"];
DZE_DoorsLocked = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ","WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ","Land_DZE_WoodGateLocked","CinderGateLocked_DZ","Metal_DrawbridgeLocked_DZ"];
DZE_isWreckBuilding = ["Land_wreck_cinder","Land_wood_wreck_quarter","Land_wood_wreck_floor","Land_wood_wreck_third","Land_wood_wreck_frame","Land_iron_vein_wreck","Land_silver_vein_wreck","Land_gold_vein_wreck","Land_ammo_supply_wreck"];
DZE_LockedStorage = ["VaultStorageLocked","VaultStorage2Locked","LockboxStorageLocked","LockboxStorage2Locked","LockboxStorageWinterLocked","LockboxStorageWinter2Locked"];
DZE_UnLockedStorage = ["VaultStorage","VaultStorage2","LockboxStorage","LockboxStorage2","LockboxStorageWinter","LockboxStorageWinter2"];

View File

@@ -26853,7 +26853,7 @@
</Key>
<Key ID="STR_EPOCH_CINDERGATE_DESC">
<English>Cinder Gate constructed out of plywood and lumber.</English>
<German>Betontor bestehend us Beton</German>
<German>Betontor bestehend aus Beton.</German>
</Key>
<Key ID="STR_EPOCH_CINDERGATELOCKED">
<English>Cinder Gate Locked</English>
@@ -26862,6 +26862,22 @@
<Key ID="STR_EPOCH_CINDERGATELOCKED_DESC">
<English>Cinder Gate with combination lock.</English>
<German>Betontor mit Zahlenschloss.</German>
</Key>
<Key ID="STR_EPOCH_METALDRAWBRIDGE">
<English>Metal Drawbridge</English>
<German>Stahlzugbrücke</German>
</Key>
<Key ID="STR_EPOCH_METALDRAWBRIDGE_DESC">
<English>Metal Drawbridge constructed out of metal and fire.</English>
<German>Stahlzugbrücke bestehend aus Stahl und Feuer.</German>
</Key>
<Key ID="STR_EPOCH_METALDRAWBRIDGELOCKED">
<English>Metal Drawbridge Locked</English>
<German>Stahlzugbrücke (verschlossen)</German>
</Key>
<Key ID="STR_EPOCH_METALDRAWBRIDGELOCKED_DESC">
<English>Metal Drawbridge with combination lock.</English>
<German>Stahlzugbrücke mit Zahlenschloss.</German>
</Key>
<Key ID="STR_EPOCH_FLOORCEILING">
<English>Floor/Ceiling</English>
@@ -30853,6 +30869,26 @@
<English>You cannot check the wallet of another player who is not in your group while the PVE Mode is active!</English>
<German>Du kannst die Brieftasche eines anderen Spielers, der nicht in deiner Gruppe ist, nicht durchsuchen, solange der PVE Modus aktiv ist.</German>
</Key>
<Key ID="STR_EPOCH_ACTION_LOWER_BRIDGE">
<English>Lower Drawbridge</English>
<German>Zugbrücke herunterlassen</German>
</Key>
<Key ID="STR_EPOCH_ACTION_RAISE_BRIDGE">
<English>Raise Drawbridge</English>
<German>Zugbrücke hochziehen</German>
</Key>
<Key ID="STR_EPOCH_ACTION_LOCK_BRIDGE">
<English>Lock Drawbridge</English>
<German>Zugbrücke abschließen</German>
</Key>
<Key ID="STR_EPOCH_ACTION_UNLOCK_BRIDGE">
<English>Unlock Drawbridge</English>
<German>Zugbrücke aufschließen</German>
</Key>
<Key ID="STR_EPOCH_ACTION_CRAFT_BRIDGE">
<English>Craft Drawbridge</English>
<German>Zugbrücke herstellen</German>
</Key>
<!--Fix for missing strings from the buildings3.pbo, this is just a placeholder-->
<Key ID="STR_FAL_Street_Sign">