Fix rapid starvation and dehydration from chainsaw and chop wood

Chainsaw is never used in player_chopWood.sqf. It is only called via
right click on Hatchet which was removed anyway.

The player already takes a nutrition hit on every swing of the hatchet,
and it can take up to twelve swings to chop down one tree.
This commit is contained in:
ebaydayz
2017-01-05 19:38:03 -05:00
parent d0257b3c7d
commit e074ef0d44
5 changed files with 13 additions and 15 deletions

View File

@@ -15,10 +15,12 @@ dayz_disAudial = _distance;
dayz_firedCooldown = time;
if (_ammo isKindOf "Melee") exitWith {
// Added Nutrition-Factor for work
//[Type,Blood[Calories,Hunger,Thrist,Temp]
["Working",0,[0,3,5,0]] call dayz_NutritionSystem;
if !(_ammo isKindOf "Chainsaw_Swing_Ammo") then {_unit playActionNow "GestureSwing";};
if (_ammo != "Chainsaw_Swing_Ammo") then {
// Added Nutrition-Factor for work
//[Type,Blood[Calories,Hunger,Thrist,Temp]
["Working",0,[0,3,5,0]] call dayz_NutritionSystem;
_unit playActionNow "GestureSwing";
};
_this call player_harvest; // harvest wood check
};
@@ -102,4 +104,4 @@ if ((_ammo isKindOf "SmokeShell") or (_ammo isKindOf "GrenadeHandTimedWest") or
//Auto select main weapon after throwing
call player_selectWeapon;
};
};
};