mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-17 21:52:56 +03:00
Fix duplicate action check with vanilla objects
+ typo fix
This commit is contained in:
@@ -50,7 +50,7 @@ if (_hasToolbox) then {
|
||||
if (_damage < 1) then {
|
||||
_BreakableParts = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass","HitEngine","HitFuel","HitHRotor"];
|
||||
if (_hitpoint in _BreakableParts) then {
|
||||
if ((random 1) < (_damage * 0.9)) then { //max 90% change to break
|
||||
if ((random 1) < (_damage * 0.9)) then { //max 90% chance to break
|
||||
_isOK = true;
|
||||
_brokenPart = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user