Fix duplicate action check with vanilla objects

+ typo fix
This commit is contained in:
icomrade
2016-07-27 11:08:50 -04:00
parent 49222ac415
commit bd91044e7b
12 changed files with 16 additions and 16 deletions

View File

@@ -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 {