From 031bd4dbec6282dbdee69c671cc7dbde99471f86 Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Mon, 7 Dec 2020 10:54:09 +0100 Subject: [PATCH] Add trader billboards for admins Models made by @Helion4 Also, make different config files for sand bags and camo nettings. --- .../CfgVehicles/Buildables/Billboards.hpp | 74 ++++++++++ .../CfgVehicles/Buildables/CamoNets.hpp | 66 +++++++++ .../CfgVehicles/Buildables/Sandbags.hpp | 138 ++++++++++++++++++ .../Configs/CfgVehicles/CfgVehicles.hpp | 3 + 4 files changed, 281 insertions(+) create mode 100644 SQF/dayz_code/Configs/CfgVehicles/Buildables/Billboards.hpp create mode 100644 SQF/dayz_code/Configs/CfgVehicles/Buildables/CamoNets.hpp create mode 100644 SQF/dayz_code/Configs/CfgVehicles/Buildables/Sandbags.hpp diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/Billboards.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Billboards.hpp new file mode 100644 index 000000000..56cf35ef6 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Billboards.hpp @@ -0,0 +1,74 @@ +class Billboards_Base_DZ: Strategic +{ + scope = 0; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard.p3d"; + icon = "\Ca\buildings\Icons\i_camosmall_CA.paa"; + displayName = ""; + animated = false; + vehicleClass = "DayZ Epoch Billboards"; + typicalCargo[] = {}; + destrType = "DestructNo"; + transportAmmo = 0; + transportRepair = 0; + transportFuel = 0; + mapSize = 2; + cost = 0; + armor = 1000; + hiddenSelections[] = {"camo1"}; + hiddenSelectionsTextures[] = {"\z\addons\dayz_epoch_v\props\billboards\data\ammo_co.paa"}; + +}; +class Billboard_Ammo_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_AMMUNITION; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_ammo.p3d"; +}; +class Billboard_Bandit_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_PLAYERSTATS_BANDIT; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_bandit.p3d"; +}; +class Billboard_Black_Market_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_BLACKMARKET; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_black.p3d"; +}; +class Billboard_Building_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_BUILDINGSUPPLIES; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_build.p3d"; +}; +class Billboard_Hero_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_PLAYERSTATS_HERO; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_hero.p3d"; +}; +class Billboard_Items_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_MISCELLANEOUS; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_items.p3d"; +}; +class Billboard_Medical_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_MEDICALSUPPLIES; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_medical.p3d"; +}; +class Billboard_Weapons_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_WEAPONS; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_weapons.p3d"; +}; +class Billboard_Wholesale_DZ: Billboards_Base_DZ +{ + scope = 2; + displayName = $STR_EPOCH_TRADER_CATEGORY_WHOLESALE; + model = "\z\addons\dayz_epoch_v\props\billboards\h4_dz_billboard_whole.p3d"; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/CamoNets.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/CamoNets.hpp new file mode 100644 index 000000000..ab6ed9f02 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/CamoNets.hpp @@ -0,0 +1,66 @@ +class Land_CamoNet_EAST_EP1; +class DesertCamoNet_DZ: Land_CamoNet_EAST_EP1 +{ + armor = 300; + destrType = "DestructNo"; + scope = 2; + offset[] = {0,9,0}; + displayName = $STR_EPOCH_DESERTCAMONET; + vehicleClass = "DayZ Epoch Buildables"; + removeoutput[] = {{"desert_net_kit",1}}; +}; +class WinterCamoNet_DZ: Land_CamoNet_EAST_EP1 +{ + armor = 300; + destrType = "DestructNo"; + scope = 2; + offset[] = {0,9,0}; + model = "\z\addons\dayz_epoch_v\props\nets\CamoNet_EAST.p3d"; + displayName = $STR_EPOCH_WINTERCAMONET; + vehicleClass = "DayZ Epoch Buildables"; + removeoutput[] = {{"winter_net_kit",1}}; +}; +class Land_CamoNet_EAST; +class ForestCamoNet_DZ: Land_CamoNet_EAST +{ + armor = 300; + destrType = "DestructNo"; + scope = 2; + offset[] = {0,9,0}; + displayName = $STR_EPOCH_FORESTCAMONET; + vehicleClass = "DayZ Epoch Buildables"; + removeoutput[] = {{"forest_net_kit",1}}; +}; +class WinterLargeCamoNet_DZ: Land_CamoNet_EAST +{ + armor = 300; + destrType = "DestructNo"; + scope = 2; + offset[] = {0,9,0}; + model = "\z\addons\dayz_epoch_v\props\nets\CamoNetB_EAST.p3d"; + displayName = $STR_EPOCH_LARGEWINTERCAMONET; + vehicleClass = "Fortifications"; + removeoutput[] = {{"winter_large_net_kit",1}}; +}; +class Land_CamoNetB_EAST_EP1; +class DesertLargeCamoNet_DZ: Land_CamoNetB_EAST_EP1 +{ + armor = 300; + destrType = "DestructNo"; + scope = 2; + offset[] = {0,9,0}; + displayName = $STR_EPOCH_LARGEDESERTCAMONET; + vehicleClass = "DayZ Epoch Buildables"; + removeoutput[] = {{"desert_large_net_kit",1}}; +}; +class Land_CamoNetB_EAST; +class ForestLargeCamoNet_DZ: Land_CamoNetB_EAST +{ + armor = 300; + destrType = "DestructNo"; + scope = 2; + offset[] = {0,9,0}; + displayName = $STR_EPOCH_LARGEFORESTCAMONET; + vehicleClass = "DayZ Epoch Buildables"; + removeoutput[] = {{"forest_large_net_kit",1}}; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/Sandbags.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Sandbags.hpp new file mode 100644 index 000000000..036721fc1 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Sandbags.hpp @@ -0,0 +1,138 @@ +class Sandbag1_DZ: BuiltItems { + scope = 2; + destrType = "DestructNo"; + cost = 100; + model = "\ca\misc2\BagFenceLong.p3d"; + icon = "\Ca\misc3\data\Icons\icon_fortBagFenceLong_ca.paa"; + offset[] = {0,3,0.5}; + mapSize = 2; + armor = 400; + displayName = $STR_BUILT_SANDBAG; + vehicleClass = "DayZ Epoch Buildables"; + constructioncount = 3; + removeoutput[] = {{"ItemSandbag",1}}; + nounderground = 0; + //Remove vanilla dismantle action + class UserActions {delete Dismantle;}; +}; + +class BagFenceRound_DZ: BuiltItems { + scope = 2; + destrType = "DestructNo"; + cost = 100; + model = "\ca\misc2\BagFenceRound.p3d"; + icon = "\Ca\misc3\data\Icons\icon_bagFenceRound_ca.paa"; + offset[] = {0,3,0.5}; + mapSize = 2; + armor = 400; + displayName = $STR_EQUIP_NAME_21_ROUND; + vehicleClass = "DayZ Epoch Buildables"; + constructioncount = 3; + removeoutput[] = {{"BagFenceRound_DZ_kit",1}}; + nounderground = 0; +}; + +class Land_HBarrier1_DZ : BuiltItems { + scope = 2; + animated = 0; + vehicleClass = "DayZ Epoch Buildables"; + typicalCargo[] = {}; + offset[] = {0,2,0}; + irTarget = 0; + accuracy = 0.3; + transportAmmo = 0; + transportRepair = 0; + transportFuel = 0; + destrType = "DestructBuilding"; + armor = 500; + coefInside = 0.5; + coefInsideHeur = 0.8; + cost = 0; + picture = "\CA\ui\data\icon_wf_barriers_ca.paa"; + model = "\ca\misc2\HBarrier1.p3d"; + icon = "\Ca\misc2\data\Icons\icon_hescoBarrier1_ca.paa"; + mapSize = 2; + displayName = $STR_EQUIP_NAME_21_HBARRIER; + GhostPreview = "Land_HBarrier1Preview"; + constructioncount = 4; + removeoutput[] = {{"ItemSandbagLarge",1}}; + nounderground = 0; +}; + +class Land_HBarrier3_DZ : BuiltItems { + model = "\ca\misc2\HBarrier3.p3d"; + icon = "\Ca\misc2\data\Icons\icon_hescoBarrier3_ca.paa"; + mapSize = 3.5; + displayName = $STR_EQUIP_NAME_21_3XHBARRIER; + GhostPreview = "Land_HBarrier3ePreview"; + scope = 2; + animated = 0; + vehicleClass = "DayZ Epoch Buildables"; + typicalCargo[] = {}; + irTarget = 0; + accuracy = 0.3; + transportAmmo = 0; + transportRepair = 0; + transportFuel = 0; + destrType = "DestructBuilding"; + armor = 500; + coefInside = 0.5; + coefInsideHeur = 0.8; + cost = 0; + picture = "\CA\ui\data\icon_wf_barriers_ca.paa"; + offset[] = {0,2.5,0}; + constructioncount = 8; + removeoutput[] = {{"ItemSandbagExLarge",1}}; + nounderground = 0; +}; + +class Land_HBarrier5_DZ:BuiltItems { + model = "\ca\misc2\HBarrier5.p3d"; + icon = "\Ca\misc2\data\Icons\icon_hescoBarrier5_ca.paa"; + mapSize = 7; + displayName = $STR_EQUIP_NAME_21_5XHBARRIER; + GhostPreview = "Land_HBarrier5Preview"; + scope = 2; + animated = 0; + vehicleClass = "DayZ Epoch Buildables"; + typicalCargo[] = {}; + irTarget = 0; + accuracy = 0.3; + transportAmmo = 0; + transportRepair = 0; + transportFuel = 0; + destrType = "DestructBuilding"; + armor = 500; + coefInside = 0.5; + coefInsideHeur = 0.8; + cost = 0; + picture = "\CA\ui\data\icon_wf_barriers_ca.paa"; + offset[] = {0,2.5,0}; + constructioncount = 8; + removeoutput[] = {{"ItemSandbagExLarge5x",1}}; + nounderground = 0; +}; + +class SandNest_DZ : BuiltItems { + scope = 2; + model = "\ca\Misc_E\fortified_nest_small_ep1"; + displayName = $STR_EQUIP_NAME_21_NEST; + expansion = 1; + icon = "\Ca\misc3\data\Icons\icon_fortNestSmall_ca.paa"; + mapSize = 5; + armor = 500; + irTarget = 0; + vehicleClass = "DayZ Epoch Buildables"; + GhostPreview = "Land_fortified_nest_smallPreview"; + animated = 0; + simulation = "house"; + accuracy = 0.2; + cost = 0; + ladders[] = {}; + TextPlural = "Houses"; + TextSingular = "House"; + nameSound = "obj_house"; + offset[] = {0,3,1}; + removeoutput[] = {{"sandbag_nest_kit",1}}; + nounderground = 0; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp b/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp index 99475962c..ab6061fad 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp @@ -492,6 +492,9 @@ class CfgVehicles #include "Buildables\FencesWood.hpp" #include "Buildables\FencesMetal.hpp" #include "Buildables\FencesGates.hpp" + #include "Buildables\CamoNets.hpp" + #include "Buildables\Sandbags.hpp" + #include "Buildables\Billboards.hpp" #include "Buildables\Misc.hpp" //Loot Container