From 955ab009743e8c956a104469ace094d5e7a4e52d Mon Sep 17 00:00:00 2001 From: dayz10k Date: Fri, 15 Nov 2013 16:40:48 -0500 Subject: [PATCH 1/3] GunRack Fluff Storage --- SQF/dayz_code/Configs/cfgVehicles.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/Configs/cfgVehicles.hpp b/SQF/dayz_code/Configs/cfgVehicles.hpp index 6bb5ef1d2..5cf2e3f8e 100644 --- a/SQF/dayz_code/Configs/cfgVehicles.hpp +++ b/SQF/dayz_code/Configs/cfgVehicles.hpp @@ -1942,7 +1942,17 @@ class CfgVehicles { constructioncount = 3; removeoutput[] = {{"ItemFuelBarrelEmpty",1}}; }; - + class Gunrack1; + class GunRack_DZ: Gunrack1 + { + armor = 200; + scope = 2; + displayName = "Gun Rack"; + vehicleClass = "Fortifications"; + transportMaxWeapons = 20; + offset[] = {0,2.5,0}; + removeoutput[] = {{"ItemGunRackKit",1}}; + }; // modular class MetalFloor_DZ: ModularItems { From 03d59afff9d0e81a03b30f8d73d14d47aa4ff3e6 Mon Sep 17 00:00:00 2001 From: dayz10k Date: Fri, 15 Nov 2013 16:47:41 -0500 Subject: [PATCH 2/3] GunRack Fluff Storage & weight/format updates --- SQF/dayz_code/Configs/CfgMagazines.hpp | 49 ++++++++++++++++++++------ 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgMagazines.hpp b/SQF/dayz_code/Configs/CfgMagazines.hpp index 676b10385..9acf7be2d 100644 --- a/SQF/dayz_code/Configs/CfgMagazines.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines.hpp @@ -1276,7 +1276,27 @@ class CfgMagazines { }; }; - + class ItemGunRackKit: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Gun Rack Kit"; + descriptionShort = "A Gun Rack for 20 weapons"; + model = "\z\addons\dayz_epoch\models\supply_crate.p3d"; + picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa"; + weight = 20; + class ItemActions + { + class Build + { + text = "$STR_ACTIONS_BUILD"; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "GunRack_DZ"; + }; + }; + }; class ItemOilBarrel: CA_Magazine { scope = 2; @@ -1328,7 +1348,7 @@ class CfgMagazines { descriptionShort = "Fire Barrel"; model = "\z\addons\dayz_epoch\models\supply_crate.p3d"; picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa"; - weight = 25; + weight = 45; class ItemActions { class Build @@ -3160,14 +3180,23 @@ class CfgMagazines { }; class Crafting5 - { - text = $STR_EPOCH_PLAYER_259; - Script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"workshop"}; - requiretools[] = {"ItemToolbox"}; - output[] = {{"PartPlankPack",1}}; - input[] = {{"PartWoodLumber",3}}; - }; + { + text = $STR_EPOCH_PLAYER_259; + Script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"PartPlankPack",1}}; + input[] = {{"PartWoodLumber",3}}; + }; + class Crafting6 + { + text = $STR_EPOCH_PLAYER_277; + Script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"ItemGunRackKit",1}}; + input[] = {{"PartWoodLumber",6}}; + }; }; }; class PartWoodPlywood: CA_Magazine From 0965bcd92da1984e91b8aff19954cb80c73e4a4d Mon Sep 17 00:00:00 2001 From: dayz10k Date: Fri, 15 Nov 2013 16:49:01 -0500 Subject: [PATCH 3/3] GunRack Fluff Storage --- SQF/dayz_epoch_b/stringtable.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SQF/dayz_epoch_b/stringtable.xml b/SQF/dayz_epoch_b/stringtable.xml index fd4dc3b22..932f97a47 100644 --- a/SQF/dayz_epoch_b/stringtable.xml +++ b/SQF/dayz_epoch_b/stringtable.xml @@ -5284,5 +5284,15 @@ + + Craft Gun Rack + Craft Gun Rack + + + + + + +