mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 02:01:49 +03:00
New config variable dayz_toolBreaking
Tool breaking is disabled by default. Also made all scripts use Epoch sledge, which is a different model from vanilla sledge. PK_DZ was a duplicate of the new PKM_DZ.
This commit is contained in:
@@ -129,9 +129,7 @@ while {_isOk} do {
|
||||
_counter = _counter + 1;
|
||||
// 10% chance to break a required tool each pass
|
||||
if((_isDestructable || _isRemovable) && !_isOwnerOfObj) then {
|
||||
if((random 10) <= 1) then {
|
||||
_brokenTool = true;
|
||||
};
|
||||
if (dayz_toolBreaking && {[0.04] call fn_chance}) then {_brokenTool = true;};
|
||||
};
|
||||
};
|
||||
if(_brokenTool) exitWith {
|
||||
|
||||
Reference in New Issue
Block a user