From 920c359e46204c3892cada09856cb41ba193e90e Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 10 Oct 2016 16:40:01 -0400 Subject: [PATCH] Adjust nutrition values and exclude chainsaw Everytime a piece of wood was spawned resulting from a chainsaw the player would become more hungry and thirsty. Obviously in less than 10 seconds this would kill the player if they chopped multiple trees down. --- SQF/dayz_code/actions/player_chopWood.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_chopWood.sqf b/SQF/dayz_code/actions/player_chopWood.sqf index 0bb53285d..5ae6275ca 100644 --- a/SQF/dayz_code/actions/player_chopWood.sqf +++ b/SQF/dayz_code/actions/player_chopWood.sqf @@ -39,7 +39,9 @@ if (count _findNearestTree > 0) then { [player,_dis,true,(getPosATL player)] call player_alertZombies; // Working-Factor for chopping wood. - ["Working",0,[100,15,10,0]] call dayz_NutritionSystem; + if (!((primaryWeapon player) in ["ChainSaw","ChainSawB","ChainSawG","ChainSawP","ChainSawR"])) then { + ["Working",0,[50,10,5,0]] call dayz_NutritionSystem; + }; r_interrupt = false; _animState = animationState player;