From 53320178f1167d18cc1f418de89dd1db59ee399e Mon Sep 17 00:00:00 2001 From: icomrade Date: Tue, 26 Apr 2016 18:55:30 -0400 Subject: [PATCH] Let Shovel build sandbags, fix errors with toolbox --- SQF/dayz_code/Configs/CfgWeapons/Tools/Shovel.hpp | 8 ++++++++ SQF/dayz_code/Configs/CfgWeapons/Tools/Toolbox.hpp | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgWeapons/Tools/Shovel.hpp b/SQF/dayz_code/Configs/CfgWeapons/Tools/Shovel.hpp index 842aa8bb6..02672c6c2 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Tools/Shovel.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Tools/Shovel.hpp @@ -13,6 +13,14 @@ class ItemShovel : ItemCore class ItemActions { + class Build + { + text = "Build Sandbag Fence"; + script = "; ['ItemShovel','Build'] spawn player_build; r_action_count = r_action_count + 1;"; + require[] = {"ItemShovel"}; + consume[] = {"ItemSandbag"}; + create = "Sandbag1_DZ"; + }; class Use { text = $STR_CREATE_STASH; diff --git a/SQF/dayz_code/Configs/CfgWeapons/Tools/Toolbox.hpp b/SQF/dayz_code/Configs/CfgWeapons/Tools/Toolbox.hpp index 998cb1af9..fe1d12fd8 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Tools/Toolbox.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Tools/Toolbox.hpp @@ -10,12 +10,12 @@ class ItemToolbox : ItemCore class RemoveNet { text="Remove Camo Net"; - script="[['DesertCamoNet_DZ','ForestCamoNet_DZ','DesertLargeCamoNet_DZ','ForestLargeCamoNet_DZ'],5,'str_epoch_player_8'] call player_removeNearby;"; + script=";[['DesertCamoNet_DZ','ForestCamoNet_DZ','DesertLargeCamoNet_DZ','ForestLargeCamoNet_DZ'],5,'str_epoch_player_8'] call player_removeNearby;"; }; class RemoveTankTrap { text="Remove Tank Trap"; - script="[['Hedgehog_DZ'],1,'STR_EPOCH_ACTIONS_14'] call player_removeNearby;"; + script=";[['Hedgehog_DZ'],1,'STR_EPOCH_ACTIONS_14'] call player_removeNearby;"; }; };