mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add changeable DZE_toolBreakChance to configVariables
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user