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.
This commit is contained in:
icomrade committed 2016-10-10 16:40:01 -04:00
1 parent 0c1e9205ab
commit 920c359e46
1 file changed
+3 -1
+3 -1
View File
@@ -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;