mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user