Add changeable DZE_toolBreakChance to configVariables

This commit is contained in:
A Man
2022-03-24 13:43:34 +01:00
parent 6189bed044
commit 01792fe8e2
2 changed files with 2 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ while {_isOk} do {
if (dayz_toolBreaking) then {
if ((_isDestructable || _isRemovable) && !_isOwnerOfObj) then {
if ([0.04] call fn_chance) then { // 4% chance to break a required tool each pass
if ([DZE_toolBreakChance] call fn_chance) then {
_brokenTool = true;
};
};

View File

@@ -403,6 +403,7 @@ if (!isDedicated) then {
dayz_knifeDulling = false; // Enable knife dulling. Knives need to be sharpened after so many uses.
dayz_matchboxCount = false; // Enable match stick count. After five uses matches run out and must be replaced.
dayz_waterBottleBreaking = false; // Water bottles have a chance to break when boiling and require duct tape to fix
DZE_toolBreakChance = 0.04; // Tool break chance when removing a building, valid values from 0.01 - 1, 0.04 = 4% Chance
// Bury and Butcher Bodies
if (DZE_Bury_Body) then {