Repair/salvage vehicle improvments

Panadur

New Member
Hi,

i developed a small addition to Epoch's repair and salvage vehicles.I think it should work with any other dayZ version too.

With this script improvment now you can only salvage or repair 6 wheels on Trucks and 4 on other Cars.

Code:
// ********************* Panadur's Wheelfix Start **************************************************************************************************************************
_hitpoints2=[];
if ((typeof _vehicle) isKindOf  "Truck") then {
    {
        if (_x in ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitGlass7","HitGlass8","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitLMWheel","HitRMWheel","HitFuel","HitRGlass","HitLGlass","HitEngine"]) then
        {
            _hitpoints2 set [(count _hitpoints2),_x];
        }
    } foreach _hitpoints;
    _hitpoints = _hitpoints2;
};
 
if (((typeof _vehicle) isKindOf  "Car") and !((typeof _vehicle) isKindOf  "Truck")) then {
    {
        if (_x in ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitGlass7","HitGlass8","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitFuel","HitRGlass","HitLGlass","HitEngine"]) then
        {
            _hitpoints2 set [(count _hitpoints2),_x];
        }
    } foreach _hitpoints;
    _hitpoints = _hitpoints2;
};
// ********************* Panadur's Wheelfix End **************************************************************************************************************************
 
Back
Top