From 49222ac41547f514903b6781d7bdd2fadd6a47c8 Mon Sep 17 00:00:00 2001 From: icomrade Date: Wed, 27 Jul 2016 11:05:26 -0400 Subject: [PATCH] Part 2 of salvage change --- SQF/dayz_code/actions/salvage.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/salvage.sqf b/SQF/dayz_code/actions/salvage.sqf index 2d374235e..f0da141ce 100644 --- a/SQF/dayz_code/actions/salvage.sqf +++ b/SQF/dayz_code/actions/salvage.sqf @@ -47,10 +47,10 @@ if (_hasToolbox) then { //Remove melee magazines (BIS_fnc_invAdd fix) {player removeMagazines _x} count MeleeMagazines; _damage = [_vehicle,_hitpoint] call object_getHit; - if (_damage < 0.10) 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) < 0.3) then { + if ((random 1) < (_damage * 0.9)) then { //max 90% change to break _isOK = true; _brokenPart = true; } else {