mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-10 20:03:21 +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:
@@ -127,14 +127,16 @@ while {_isOk} do {
|
||||
};
|
||||
};
|
||||
|
||||
//Chances to damage tools
|
||||
{
|
||||
if ([(_x select 1)] call fn_chance) then {
|
||||
player removeWeapon (_x select 0);
|
||||
player addWeapon (_x select 2);
|
||||
titleText ["Your tool has been damaged." , "PLAIN DOWN"];
|
||||
};
|
||||
}foreach _tools;
|
||||
if (dayz_toolBreaking) then {
|
||||
//Chances to damage tools
|
||||
{
|
||||
if ([(_x select 1)] call fn_chance) then {
|
||||
player removeWeapon (_x select 0);
|
||||
player addWeapon (_x select 2);
|
||||
titleText ["Your tool has been damaged." , "PLAIN DOWN"];
|
||||
};
|
||||
}foreach _tools;
|
||||
};
|
||||
|
||||
if(_counter == _limit) exitWith {
|
||||
//stop loop
|
||||
|
||||
Reference in New Issue
Block a user