mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Add setting to disable base takeover #1886
No classes inherit from Generator_DZ, so there is no need to use isKindOf over typeOf.
This commit is contained in:
@@ -130,8 +130,8 @@ while {_isOk} do {
|
||||
if(_finished) then {
|
||||
_counter = _counter + 1;
|
||||
// 4% chance to break a required tool each pass
|
||||
if((_isDestructable || _isRemovable) && !_isOwnerOfObj) then {
|
||||
if (dayz_toolBreaking && {[0.04] call fn_chance}) then {_brokenTool = true;};
|
||||
if ((_isDestructable || _isRemovable) && {!_isOwnerOfObj} && {dayz_toolBreaking && {[0.04] call fn_chance}}) then {
|
||||
_brokenTool = true;
|
||||
};
|
||||
};
|
||||
if(_brokenTool) exitWith {
|
||||
|
||||
Reference in New Issue
Block a user