From d2daca6f46921e0ab70d5b127b2b8e483e39167b Mon Sep 17 00:00:00 2001 From: vbawol Date: Sun, 1 Oct 2017 21:25:57 -0500 Subject: [PATCH] add garden kit --- .../epoch_config/Configs/CfgBaseBuilding.hpp | 26 ++++++++++++++++--- Sources/epoch_config/Configs/CfgPricing.hpp | 4 +++ Sources/epoch_config/Configs/cfgCrafting.hpp | 17 +++++++++--- 3 files changed, 39 insertions(+), 8 deletions(-) diff --git a/Sources/epoch_config/Configs/CfgBaseBuilding.hpp b/Sources/epoch_config/Configs/CfgBaseBuilding.hpp index feb71ab1..6ec2a7fe 100644 --- a/Sources/epoch_config/Configs/CfgBaseBuilding.hpp +++ b/Sources/epoch_config/Configs/CfgBaseBuilding.hpp @@ -235,7 +235,7 @@ class CfgBaseBuilding removeParts[] = {}; }; class MetalFloor_Ghost_EPOCH : MetalFloor_SIM_EPOCH {}; - + class MetalTower_EPOCH : Default { removeParts[] = {{"ItemCorrugatedLg",3}}; @@ -257,7 +257,7 @@ class CfgBaseBuilding }; class MetalTower_Ghost_EPOCH : MetalTower_SIM_EPOCH {}; - + class CinderWallGarage_EPOCH : Default { removeParts[] = {{"CinderBlocks",4},{"ItemCorrugatedLg",1},{"CircuitParts",1}}; @@ -269,6 +269,24 @@ class CfgBaseBuilding allowedSnapPoints[] = {"N","S","E","W"}; energyCost = 0.5; }; + // Kit_Garden + class Garden_EPOCH : Default + { + removeParts[] = {{"Kit_Garden",1}}; + simulClass = "Garden_SIM_EPOCH"; + staticClass = "Garden_EPOCH"; + GhostPreview = "Garden_Ghost_EPOCH"; + snapPointsPara[] = {"NF","SF","EF","WF","C","CB"}; + snapPointsPerp[] = {"N","S","E","W","CinN","CinS","CinE","CinW"}; + energyCost = 0.5; + }; + class Garden_SIM_EPOCH : Default + { + allowedSnapPoints[] = {"NF","SF","EF","WF","C"}; + allowedSnapObjects[] = {"Const_floors_static_F","Constructions_foundation_F"}; + removeParts[] = {}; + }; + class Garden_Ghost_EPOCH : Garden_SIM_EPOCH {}; class CinderFloor_EPOCH : Default { removeParts[] = {{"CinderBlocks",2},{"MortarBucket",2}}; @@ -336,7 +354,7 @@ class CfgBaseBuilding snapPointsPara[] = {"N","E","W"}; allowedSnapPoints[] = {"N","S","E","W"}; }; - + class CinderTower_EPOCH : Default { removeParts[] = {{"CinderBlocks",2}}; @@ -356,7 +374,7 @@ class CfgBaseBuilding allowedSnapObjects[] = {"CinderTower_EPOCH","Const_floors_static_F","Constructions_foundation_F"}; }; class CinderTower_Ghost_EPOCH : CinderTower_SIM_EPOCH {}; - + class WoodLargeWall_EPOCH : Default { upgradeBuilding[] = {{"WoodWall1_EPOCH",{{"ItemPlywoodPack",1}}},{"WoodLargeWallCor_EPOCH",{{"ItemCorrugated",1}}}}; diff --git a/Sources/epoch_config/Configs/CfgPricing.hpp b/Sources/epoch_config/Configs/CfgPricing.hpp index 92f3b445..91b54e20 100644 --- a/Sources/epoch_config/Configs/CfgPricing.hpp +++ b/Sources/epoch_config/Configs/CfgPricing.hpp @@ -1840,6 +1840,10 @@ class CfgPricing { price = 5; }; + class Kit_Garden + { + price = 24; + }; class Poppy { price = 50; diff --git a/Sources/epoch_config/Configs/cfgCrafting.hpp b/Sources/epoch_config/Configs/cfgCrafting.hpp index 4b41db33..b0020d8f 100644 --- a/Sources/epoch_config/Configs/cfgCrafting.hpp +++ b/Sources/epoch_config/Configs/cfgCrafting.hpp @@ -22,7 +22,7 @@ {{"Water source", "", "water", {2,{"water"}}, 3, 1, 0, 0}} }; - + WARNING: DO NOT inherit from existing items, create each item as unique entry, only inherit defaults such as part or kit! */ /*[[[cog from arma_config_tools import *; json_to_arma()]]]*/ @@ -909,7 +909,7 @@ class CfgCrafting previewScale = 0.05; previewVector = 0; }; - + class KitTiPi : Kit { recipe[] = {{"Pelt_EPOCH",4},{"PartPlankPack",2}}; @@ -963,6 +963,15 @@ class CfgCrafting previewPosition[] = {0.797638,1,0.341915}; previewScale = 0.07; previewVector = 0; + }; + class Kit_Garden : Kit + { + recipe[] = {{"ItemRock",4},{"water_epoch",4}}; // temp + nearby[] = {{"Workbench","","workbench",{1,{"WorkBench_EPOCH"}},3,1,0,1}}; + model = "\x\addons\a3_epoch_community\models\Farming\epoch_Garden.p3d"; + previewPosition[] = {0.800198,1,0.262418}; + previewScale = 0.055; + previewVector = 3.6; }; class KitPlotPole : Kit { @@ -1192,7 +1201,7 @@ class CfgCrafting previewScale = 0.28; previewVector = -0.5; }; -*/ +*/ class ItemVehDoc1 : Part { usedIn[] = {"KitVehicleUpgradeI_200_EPOCH"}; @@ -1200,7 +1209,7 @@ class CfgCrafting previewScale = 1.2; previewVector = 3.3; }; - + class ItemVehDoc2 : Part { usedIn[] = {"KitVehicleUpgradeII_200_EPOCH"};