Advanced Veh Repair Fix #2 after Tank DLC

This commit is contained in:
He-Man 2018-04-13 14:27:27 +02:00
parent f9de95ffc7
commit 3966ad7010
3 changed files with 89 additions and 84 deletions

View File

@ -31,7 +31,7 @@ _wheelcounter = 0;
_x params ["_searchedhit","_limit1","_limit2"]; _x params ["_searchedhit","_limit1","_limit2"];
_searchedhit = tolower _searchedhit; _searchedhit = tolower _searchedhit;
if (_searchedhit isequalto _HitPointName) then { if (_searchedhit isequalto _HitPointName) then {
_wheel = ["wheel",tolower _searchedhit] call bis_fnc_instring; _wheel = ["wheel",_searchedhit] call bis_fnc_instring;
if (_wheel) then { if (_wheel) then {
_wheelcounter = _wheelcounter + 1; _wheelcounter = _wheelcounter + 1;
}; };
@ -43,7 +43,7 @@ _wheelcounter = 0;
_repairs pushback _searchedhit; _repairs pushback _searchedhit;
}; };
if (!((_veh getvariable ["vehicle_slot","-1"]) isequalto "-1") && _EnableRemoveParts) then { if (!((_veh getvariable ["vehicle_slot","-1"]) isequalto "-1") && _EnableRemoveParts) then {
if (_searchedhit in ["HitLFWheel","HitLF2Wheel","HitLMWheel","HitLBWheel","HitRFWheel","HitRF2Wheel","HitRMWheel","HitRBWheel","HitEngine"]) then { if (_searchedhit in ["hitlfwheel","hitlf2wheel","hitlmwheel","hitlbwheel","hitrfwheel","hitrf2wheel","hitrmwheel","hitrbwheel","hitengine"]) then {
_removes pushback _searchedhit; _removes pushback _searchedhit;
}; };
}; };
@ -51,7 +51,7 @@ _wheelcounter = 0;
else { else {
if (_searchedhit isequalto "glass") then { if (_searchedhit isequalto "glass") then {
if ("glass" in _repairs) exitwith {}; if ("glass" in _repairs) exitwith {};
_glass = ["glass",tolower _HitPointName] call bis_fnc_instring; _glass = ["glass",_HitPointName] call bis_fnc_instring;
if (_glass) then { if (_glass) then {
if (_Hit >= _limit1) exitwith { if (_Hit >= _limit1) exitwith {
_repairs pushback _searchedhit; _repairs pushback _searchedhit;
@ -64,7 +64,8 @@ _wheelcounter = 0;
_repairarrays = []; _repairarrays = [];
{ {
if (!(_x in _repairs || _x in _replaces || (["glass",tolower _x] call Bis_fnc_instring)) || _x isequalto "") then { _HitPointName = tolower _x;
if (!(_HitPointName in _repairs || _HitPointName in _replaces || (["glass",_HitPointName] call Bis_fnc_instring)) || _x isequalto "") then {
_repairarrays pushback [_foreachindex, 0]; _repairarrays pushback [_foreachindex, 0];
}; };
} foreach ((getAllHitPointsDamage _veh) select 0); } foreach ((getAllHitPointsDamage _veh) select 0);

View File

@ -14,6 +14,7 @@
*/ */
private ["_secondlocalcheck","_repairarrays","_config","_VehicleRepairs","_reqiredMat","_searchname","_line","_returnmat"]; private ["_secondlocalcheck","_repairarrays","_config","_VehicleRepairs","_reqiredMat","_searchname","_line","_returnmat"];
params ["_veh","_do","_hitpointname"]; params ["_veh","_do","_hitpointname"];
_hitpointname = tolower _hitpointname;
_secondlocalcheck = false; _secondlocalcheck = false;
_returnmat = ""; _returnmat = "";
_repairarrays = []; _repairarrays = [];
@ -33,11 +34,12 @@ switch _do do {
case 'repair': { case 'repair': {
_reqiredMat = ""; _reqiredMat = "";
_searchname = _hitpointname; _searchname = _hitpointname;
if (["glass",tolower _hitpointname] call Bis_fnc_instring) then { if (["glass",_hitpointname] call Bis_fnc_instring) then {
_searchname = "glass"; _searchname = "glass";
}; };
{ {
_x params ["_name","","","_repairmat"]; _x params ["_name","","","_repairmat"];
_name = tolower _name;
if (_searchname isequalto _name) exitwith { if (_searchname isequalto _name) exitwith {
_reqiredMat = _repairmat; _reqiredMat = _repairmat;
}; };
@ -64,11 +66,12 @@ switch _do do {
case 'replace': { case 'replace': {
_reqiredMat = ""; _reqiredMat = "";
_searchname = _hitpointname; _searchname = _hitpointname;
if (["glass",tolower _hitpointname] call Bis_fnc_instring) then { if (["glass", _hitpointname] call Bis_fnc_instring) then {
_searchname = "glass"; _searchname = "glass";
}; };
{ {
_x params ["_name","","","","_replacemat"]; _x params ["_name","","","","_replacemat"];
_name = tolower _name;
if (_searchname isequalto _name) exitwith { if (_searchname isequalto _name) exitwith {
_reqiredMat = _replacemat; _reqiredMat = _replacemat;
}; };
@ -100,6 +103,7 @@ switch _do do {
_searchname = _hitpointname; _searchname = _hitpointname;
{ {
_x params ["_name","","","","_replacemat"]; _x params ["_name","","","","_replacemat"];
_name = tolower _name;
if (_searchname isequalto _name) exitwith { if (_searchname isequalto _name) exitwith {
_returnmat = _replacemat; _returnmat = _replacemat;
}; };

View File

@ -196,29 +196,29 @@ class VehMaintanance
tooltip = "Repair Vehicle"; tooltip = "Repair Vehicle";
class RepairHull class RepairHull
{ {
condition = "'HitHull' in (EPOCH_VehicleRepairs select 0)"; condition = "'hithull' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitHull'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hithull'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa";
tooltip = "Repair Hull"; tooltip = "Repair Hull";
}; };
class ReplaceHull class ReplaceHull
{ {
condition = "'HitHull' in (EPOCH_VehicleRepairs select 2)"; condition = "'hithull' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitHull'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hithull'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa";
tooltip = "Repair Hull"; tooltip = "Repair Hull";
}; };
class RepairEngine class RepairEngine
{ {
condition = "'HitEngine' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitengine' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitEngine'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Engine.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Engine.paa";
tooltip = "Repair Engine"; tooltip = "Repair Engine";
}; };
class ReplaceEngine class ReplaceEngine
{ {
condition = "'HitEngine' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitengine' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitEngine'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Engine.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Engine.paa";
tooltip = "Replace Engine"; tooltip = "Replace Engine";
}; };
@ -231,183 +231,183 @@ class VehMaintanance
}; };
class RepairBody class RepairBody
{ {
condition = "'HitBody' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitbody' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitBody'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitbody'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa";
tooltip = "Repair Body"; tooltip = "Repair Body";
}; };
class ReplaceBody class ReplaceBody
{ {
condition = "'HitBody' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitbody' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitBody'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitbody'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa";
tooltip = "Repair Body"; tooltip = "Repair Body";
}; };
class RepairFuel class RepairFuel
{ {
condition = "'HitFuel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitfuel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitFuel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitfuel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa";
tooltip = "Repair Fuel Hose"; tooltip = "Repair Fuel Hose";
}; };
class RepairMainRotor class RepairMainRotor
{ {
condition = "'HitHRotor' in (EPOCH_VehicleRepairs select 0)"; condition = "'hithrotor' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitHRotor'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hithrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_MainRotor.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_MainRotor.paa";
tooltip = "Repair Main Rotor"; tooltip = "Repair Main Rotor";
}; };
class ReplaceFuel class ReplaceFuel
{ {
condition = "'HitFuel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitfuel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitFuel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitfuel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa";
tooltip = "Replace Fuel Hose"; tooltip = "Replace Fuel Hose";
}; };
class ReplaceMainRotor class ReplaceMainRotor
{ {
condition = "'HitHRotor' in (EPOCH_VehicleRepairs select 2)"; condition = "'hithrotor' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitHRotor'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hithrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_MainRotor.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_MainRotor.paa";
tooltip = "Replace Main Rotor"; tooltip = "Replace Main Rotor";
}; };
class RepairTailRotor class RepairTailRotor
{ {
condition = "'HitVRotor' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitvrotor' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitVRotor'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitvrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_TailRotor.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_TailRotor.paa";
tooltip = "Repair Tail Rotor"; tooltip = "Repair Tail Rotor";
}; };
class ReplaceTailRotor class ReplaceTailRotor
{ {
condition = "'HitVRotor' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitvrotor' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitVRotor'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitvrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_TailRotor.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_TailRotor.paa";
tooltip = "Replace Tail Rotor"; tooltip = "Replace Tail Rotor";
}; };
class ReplaceWinch class ReplaceWinch
{ {
condition = "'HitWinch' in (EPOCH_VehicleRepairs select 0) || 'HitWinch' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitwinch' in (EPOCH_VehicleRepairs select 0) || 'hitwinch' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitWinch'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitwinch'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_SLG.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_SLG.paa";
tooltip = "Replace Winch"; tooltip = "Replace Winch";
}; };
class RepairTire1 class RepairTire1
{ {
condition = "'HitLFWheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitLFWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 1st Left Wheel"; tooltip = "Repair 1st Left Wheel";
}; };
class RepairTire2 class RepairTire2
{ {
condition = "'HitLF2Wheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitLF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 2nd Left Wheel"; tooltip = "Repair 2nd Left Wheel";
}; };
class RepairTire3 class RepairTire3
{ {
condition = "'HitLMWheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitLMWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 3rd Left Wheel"; tooltip = "Repair 3rd Left Wheel";
}; };
class RepairTire4 class RepairTire4
{ {
condition = "'HitLBWheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitLBWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 4th Left Wheel"; tooltip = "Repair 4th Left Wheel";
}; };
class RepairTire5 class RepairTire5
{ {
condition = "'HitRFWheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitRFWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 1st Right Wheel"; tooltip = "Repair 1st Right Wheel";
}; };
class RepairTire6 class RepairTire6
{ {
condition = "'HitRF2Wheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitRF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 2nd Right Wheel"; tooltip = "Repair 2nd Right Wheel";
}; };
class RepairTire7 class RepairTire7
{ {
condition = "'HitRMWheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitRMWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 3rd Right Wheel"; tooltip = "Repair 3rd Right Wheel";
}; };
class RepairTire8 class RepairTire8
{ {
condition = "'HitRBWheel' in (EPOCH_VehicleRepairs select 0)"; condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','HitRBWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'repair','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 4th Right Wheel"; tooltip = "Repair 4th Right Wheel";
}; };
class ReplaceTire1 class ReplaceTire1
{ {
condition = "'HitLFWheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitLFWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 1st Left Wheel"; tooltip = "Replace 1st Left Wheel";
}; };
class ReplaceTire2 class ReplaceTire2
{ {
condition = "'HitLF2Wheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitLF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 2nd Left Wheel"; tooltip = "Replace 2nd Left Wheel";
}; };
class ReplaceTire3 class ReplaceTire3
{ {
condition = "'HitLMWheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitLMWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 3rd Left Wheel"; tooltip = "Replace 3rd Left Wheel";
}; };
class ReplaceTire4 class ReplaceTire4
{ {
condition = "'HitLBWheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitLBWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 4th Left Wheel"; tooltip = "Replace 4th Left Wheel";
}; };
class ReplaceTire5 class ReplaceTire5
{ {
condition = "'HitRFWheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitRFWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 1st Right Wheel"; tooltip = "Replace 1st Right Wheel";
}; };
class ReplaceTire6 class ReplaceTire6
{ {
condition = "'HitRF2Wheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitRF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 2nd Right Wheel"; tooltip = "Replace 2nd Right Wheel";
}; };
class ReplaceTire7 class ReplaceTire7
{ {
condition = "'HitRMWheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitRMWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 3rd Right Wheel"; tooltip = "Replace 3rd Right Wheel";
}; };
class ReplaceTire8 class ReplaceTire8
{ {
condition = "'HitRBWheel' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitRBWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 4th Right Wheel"; tooltip = "Replace 4th Right Wheel";
}; };
class RepairAvionics class RepairAvionics
{ {
condition = "'HitAvionics' in (EPOCH_VehicleRepairs select 0) || 'HitAvionics' in (EPOCH_VehicleRepairs select 2)"; condition = "'hitavionics' in (EPOCH_VehicleRepairs select 0) || 'hitavionics' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','HitAvionics'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'replace','hitavionics'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Avionics.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Avionics.paa";
tooltip = "Repair Avionics"; tooltip = "Repair Avionics";
}; };
@ -420,64 +420,64 @@ class VehMaintanance
tooltip = "Remove Parts"; tooltip = "Remove Parts";
class RemoveEngine class RemoveEngine
{ {
condition = "'HitEngine' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitengine' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitEngine'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Engine.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Engine.paa";
tooltip = "Remove Engine"; tooltip = "Remove Engine";
}; };
class RemoveTire1 class RemoveTire1
{ {
condition = "'HitLFWheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitLFWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 1st Left Wheel"; tooltip = "Remove 1st Left Wheel";
}; };
class RemoveTire2 class RemoveTire2
{ {
condition = "'HitLF2Wheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitLF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 2nd Left Wheel"; tooltip = "Remove 2nd Left Wheel";
}; };
class RemoveTire3 class RemoveTire3
{ {
condition = "'HitLMWheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitLMWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 3rd Left Wheel"; tooltip = "Remove 3rd Left Wheel";
}; };
class RemoveTire4 class RemoveTire4
{ {
condition = "'HitLBWheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitLBWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 4th Left Wheel"; tooltip = "Remove 4th Left Wheel";
}; };
class RemoveTire5 class RemoveTire5
{ {
condition = "'HitRFWheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitRFWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 1st Right Wheel"; tooltip = "Remove 1st Right Wheel";
}; };
class RemoveTire6 class RemoveTire6
{ {
condition = "'HitRF2Wheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitRF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 2nd Right Wheel"; tooltip = "Remove 2nd Right Wheel";
}; };
class RemoveTire7 class RemoveTire7
{ {
condition = "'HitRMWheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitRMWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 3rd Right Wheel"; tooltip = "Remove 3rd Right Wheel";
}; };
class RemoveTire8 class RemoveTire8
{ {
condition = "'HitRBWheel' in (EPOCH_VehicleRepairs select 1)"; condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','HitRBWheel'] spawn EPOCH_client_VehicleMaintananceDo"; action = "[dyna_cursorTarget,'remove','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 4th Right Wheel"; tooltip = "Remove 4th Right Wheel";
}; };