From 0c1e9205ab9ae0566812deeabd965317d8eed902 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 10 Oct 2016 16:25:25 -0400 Subject: [PATCH] Remove fuel tank and engine salvage --- SQF/dayz_code/actions/salvage.sqf | 6 +++--- SQF/dayz_code/actions/salvage_vehicle.sqf | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SQF/dayz_code/actions/salvage.sqf b/SQF/dayz_code/actions/salvage.sqf index acd6cc084..1dd50c055 100644 --- a/SQF/dayz_code/actions/salvage.sqf +++ b/SQF/dayz_code/actions/salvage.sqf @@ -64,11 +64,11 @@ if (_hasToolbox) then { if (_isOK) then { _selection = getText(configFile >> "cfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "name"); - if ((_hitpoint == "HitEngine") or (_hitpoint == "HitFuel")) then { + /*if ((_hitpoint == "HitEngine") or (_hitpoint == "HitFuel")) then { [_vehicle, _selection, 0.89] call fnc_veh_handleDam; - } else { + } else {*/ [_vehicle, _selection, 1] call fnc_veh_handleDam; - }; + //}; _vehicle call fnc_veh_ResetEH; _vehicle setvelocity [0,0,1]; if(_brokenPart) then { diff --git a/SQF/dayz_code/actions/salvage_vehicle.sqf b/SQF/dayz_code/actions/salvage_vehicle.sqf index 015f39e2e..9894de69d 100644 --- a/SQF/dayz_code/actions/salvage_vehicle.sqf +++ b/SQF/dayz_code/actions/salvage_vehicle.sqf @@ -19,7 +19,7 @@ _HasNoGlassKind = (_vehicle isKindOf "Motorcycle"); _6WheelTypeArray = ["HitLMWheel","HitRMWheel"]; _NoGlassArray = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass"]; _NoExtraWheelsArray = ["wheel_1_4_steering","wheel_2_4_steering","wheel_1_3_steering","wheel_2_3_steering"]; -_RemovedPartsArray = ["motor","HitLF2Wheel","HitRF2Wheel","HitBody","HitMissiles","HitHull","HitVRotor"]; +_RemovedPartsArray = ["motor","HitLF2Wheel","HitRF2Wheel","HitBody","HitMissiles","HitHull","HitVRotor","HitFuel","HitEngine"]; if (_isATV or _HasNoGlassKind) then { _hitpoints = _hitpoints - _NoGlassArray; @@ -43,7 +43,7 @@ if (_is6WheelType) then { _damage = [_vehicle,_x] call object_getHit; if !(_x in _RemovedPartsArray) then { - if (_x in ["HitFuel","HitEngine"] && _damage >= 0.89) then {_damage = 1;}; + //if (_x in ["HitFuel","HitEngine"] && _damage >= 0.89) then {_damage = 1;}; _cmpt = toArray (_x); _cmpt set [0,20]; _cmpt set [1,toArray ("-") select 0];