mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Advanced Veh Repair Fix #2 after Tank DLC
This commit is contained in:
parent
f9de95ffc7
commit
3966ad7010
@ -31,7 +31,7 @@ _wheelcounter = 0;
|
||||
_x params ["_searchedhit","_limit1","_limit2"];
|
||||
_searchedhit = tolower _searchedhit;
|
||||
if (_searchedhit isequalto _HitPointName) then {
|
||||
_wheel = ["wheel",tolower _searchedhit] call bis_fnc_instring;
|
||||
_wheel = ["wheel",_searchedhit] call bis_fnc_instring;
|
||||
if (_wheel) then {
|
||||
_wheelcounter = _wheelcounter + 1;
|
||||
};
|
||||
@ -43,7 +43,7 @@ _wheelcounter = 0;
|
||||
_repairs pushback _searchedhit;
|
||||
};
|
||||
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;
|
||||
};
|
||||
};
|
||||
@ -51,7 +51,7 @@ _wheelcounter = 0;
|
||||
else {
|
||||
if (_searchedhit isequalto "glass") then {
|
||||
if ("glass" in _repairs) exitwith {};
|
||||
_glass = ["glass",tolower _HitPointName] call bis_fnc_instring;
|
||||
_glass = ["glass",_HitPointName] call bis_fnc_instring;
|
||||
if (_glass) then {
|
||||
if (_Hit >= _limit1) exitwith {
|
||||
_repairs pushback _searchedhit;
|
||||
@ -64,7 +64,8 @@ _wheelcounter = 0;
|
||||
|
||||
_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];
|
||||
};
|
||||
} foreach ((getAllHitPointsDamage _veh) select 0);
|
||||
|
@ -14,6 +14,7 @@
|
||||
*/
|
||||
private ["_secondlocalcheck","_repairarrays","_config","_VehicleRepairs","_reqiredMat","_searchname","_line","_returnmat"];
|
||||
params ["_veh","_do","_hitpointname"];
|
||||
_hitpointname = tolower _hitpointname;
|
||||
_secondlocalcheck = false;
|
||||
_returnmat = "";
|
||||
_repairarrays = [];
|
||||
@ -33,11 +34,12 @@ switch _do do {
|
||||
case 'repair': {
|
||||
_reqiredMat = "";
|
||||
_searchname = _hitpointname;
|
||||
if (["glass",tolower _hitpointname] call Bis_fnc_instring) then {
|
||||
if (["glass",_hitpointname] call Bis_fnc_instring) then {
|
||||
_searchname = "glass";
|
||||
};
|
||||
{
|
||||
_x params ["_name","","","_repairmat"];
|
||||
_name = tolower _name;
|
||||
if (_searchname isequalto _name) exitwith {
|
||||
_reqiredMat = _repairmat;
|
||||
};
|
||||
@ -64,11 +66,12 @@ switch _do do {
|
||||
case 'replace': {
|
||||
_reqiredMat = "";
|
||||
_searchname = _hitpointname;
|
||||
if (["glass",tolower _hitpointname] call Bis_fnc_instring) then {
|
||||
if (["glass", _hitpointname] call Bis_fnc_instring) then {
|
||||
_searchname = "glass";
|
||||
};
|
||||
{
|
||||
_x params ["_name","","","","_replacemat"];
|
||||
_name = tolower _name;
|
||||
if (_searchname isequalto _name) exitwith {
|
||||
_reqiredMat = _replacemat;
|
||||
};
|
||||
@ -100,6 +103,7 @@ switch _do do {
|
||||
_searchname = _hitpointname;
|
||||
{
|
||||
_x params ["_name","","","","_replacemat"];
|
||||
_name = tolower _name;
|
||||
if (_searchname isequalto _name) exitwith {
|
||||
_returnmat = _replacemat;
|
||||
};
|
||||
|
@ -196,29 +196,29 @@ class VehMaintanance
|
||||
tooltip = "Repair Vehicle";
|
||||
class RepairHull
|
||||
{
|
||||
condition = "'HitHull' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitHull'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hithull' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hithull'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa";
|
||||
tooltip = "Repair Hull";
|
||||
};
|
||||
class ReplaceHull
|
||||
{
|
||||
condition = "'HitHull' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitHull'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hithull' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hithull'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa";
|
||||
tooltip = "Repair Hull";
|
||||
};
|
||||
class RepairEngine
|
||||
{
|
||||
condition = "'HitEngine' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitEngine'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitengine' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Engine.paa";
|
||||
tooltip = "Repair Engine";
|
||||
};
|
||||
class ReplaceEngine
|
||||
{
|
||||
condition = "'HitEngine' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitEngine'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitengine' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Engine.paa";
|
||||
tooltip = "Replace Engine";
|
||||
};
|
||||
@ -231,183 +231,183 @@ class VehMaintanance
|
||||
};
|
||||
class RepairBody
|
||||
{
|
||||
condition = "'HitBody' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitBody'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitbody' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitbody'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa";
|
||||
tooltip = "Repair Body";
|
||||
};
|
||||
class ReplaceBody
|
||||
{
|
||||
condition = "'HitBody' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitBody'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitbody' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitbody'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa";
|
||||
tooltip = "Repair Body";
|
||||
};
|
||||
class RepairFuel
|
||||
{
|
||||
condition = "'HitFuel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitFuel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitfuel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitfuel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa";
|
||||
tooltip = "Repair Fuel Hose";
|
||||
};
|
||||
class RepairMainRotor
|
||||
{
|
||||
condition = "'HitHRotor' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitHRotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hithrotor' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hithrotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_MainRotor.paa";
|
||||
tooltip = "Repair Main Rotor";
|
||||
};
|
||||
class ReplaceFuel
|
||||
{
|
||||
condition = "'HitFuel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitFuel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitfuel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitfuel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa";
|
||||
tooltip = "Replace Fuel Hose";
|
||||
};
|
||||
class ReplaceMainRotor
|
||||
{
|
||||
condition = "'HitHRotor' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitHRotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hithrotor' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hithrotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_MainRotor.paa";
|
||||
tooltip = "Replace Main Rotor";
|
||||
};
|
||||
class RepairTailRotor
|
||||
{
|
||||
condition = "'HitVRotor' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitVRotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitvrotor' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitvrotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_TailRotor.paa";
|
||||
tooltip = "Repair Tail Rotor";
|
||||
};
|
||||
class ReplaceTailRotor
|
||||
{
|
||||
condition = "'HitVRotor' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitVRotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitvrotor' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitvrotor'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_TailRotor.paa";
|
||||
tooltip = "Replace Tail Rotor";
|
||||
};
|
||||
class ReplaceWinch
|
||||
{
|
||||
condition = "'HitWinch' in (EPOCH_VehicleRepairs select 0) || 'HitWinch' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitWinch'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitwinch' in (EPOCH_VehicleRepairs select 0) || 'hitwinch' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitwinch'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_SLG.paa";
|
||||
tooltip = "Replace Winch";
|
||||
};
|
||||
class RepairTire1
|
||||
{
|
||||
condition = "'HitLFWheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitLFWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 1st Left Wheel";
|
||||
};
|
||||
class RepairTire2
|
||||
{
|
||||
condition = "'HitLF2Wheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitLF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 2nd Left Wheel";
|
||||
};
|
||||
class RepairTire3
|
||||
{
|
||||
condition = "'HitLMWheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitLMWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 3rd Left Wheel";
|
||||
};
|
||||
class RepairTire4
|
||||
{
|
||||
condition = "'HitLBWheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitLBWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 4th Left Wheel";
|
||||
};
|
||||
class RepairTire5
|
||||
{
|
||||
condition = "'HitRFWheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitRFWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 1st Right Wheel";
|
||||
};
|
||||
class RepairTire6
|
||||
{
|
||||
condition = "'HitRF2Wheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitRF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 2nd Right Wheel";
|
||||
};
|
||||
class RepairTire7
|
||||
{
|
||||
condition = "'HitRMWheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitRMWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 3rd Right Wheel";
|
||||
};
|
||||
class RepairTire8
|
||||
{
|
||||
condition = "'HitRBWheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','HitRBWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 0)";
|
||||
action = "[dyna_cursorTarget,'repair','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
|
||||
tooltip = "Repair 4th Right Wheel";
|
||||
};
|
||||
class ReplaceTire1
|
||||
{
|
||||
condition = "'HitLFWheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitLFWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 1st Left Wheel";
|
||||
};
|
||||
class ReplaceTire2
|
||||
{
|
||||
condition = "'HitLF2Wheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitLF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 2nd Left Wheel";
|
||||
};
|
||||
class ReplaceTire3
|
||||
{
|
||||
condition = "'HitLMWheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitLMWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 3rd Left Wheel";
|
||||
};
|
||||
class ReplaceTire4
|
||||
{
|
||||
condition = "'HitLBWheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitLBWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 4th Left Wheel";
|
||||
};
|
||||
class ReplaceTire5
|
||||
{
|
||||
condition = "'HitRFWheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitRFWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 1st Right Wheel";
|
||||
};
|
||||
class ReplaceTire6
|
||||
{
|
||||
condition = "'HitRF2Wheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitRF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 2nd Right Wheel";
|
||||
};
|
||||
class ReplaceTire7
|
||||
{
|
||||
condition = "'HitRMWheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitRMWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 3rd Right Wheel";
|
||||
};
|
||||
class ReplaceTire8
|
||||
{
|
||||
condition = "'HitRBWheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitRBWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
|
||||
tooltip = "Replace 4th Right Wheel";
|
||||
};
|
||||
class RepairAvionics
|
||||
{
|
||||
condition = "'HitAvionics' in (EPOCH_VehicleRepairs select 0) || 'HitAvionics' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','HitAvionics'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitavionics' in (EPOCH_VehicleRepairs select 0) || 'hitavionics' in (EPOCH_VehicleRepairs select 2)";
|
||||
action = "[dyna_cursorTarget,'replace','hitavionics'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Avionics.paa";
|
||||
tooltip = "Repair Avionics";
|
||||
};
|
||||
@ -420,64 +420,64 @@ class VehMaintanance
|
||||
tooltip = "Remove Parts";
|
||||
class RemoveEngine
|
||||
{
|
||||
condition = "'HitEngine' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitEngine'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitengine' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Engine.paa";
|
||||
tooltip = "Remove Engine";
|
||||
};
|
||||
class RemoveTire1
|
||||
{
|
||||
condition = "'HitLFWheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitLFWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 1st Left Wheel";
|
||||
};
|
||||
class RemoveTire2
|
||||
{
|
||||
condition = "'HitLF2Wheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitLF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 2nd Left Wheel";
|
||||
};
|
||||
class RemoveTire3
|
||||
{
|
||||
condition = "'HitLMWheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitLMWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 3rd Left Wheel";
|
||||
};
|
||||
class RemoveTire4
|
||||
{
|
||||
condition = "'HitLBWheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitLBWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 4th Left Wheel";
|
||||
};
|
||||
class RemoveTire5
|
||||
{
|
||||
condition = "'HitRFWheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitRFWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 1st Right Wheel";
|
||||
};
|
||||
class RemoveTire6
|
||||
{
|
||||
condition = "'HitRF2Wheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitRF2Wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 2nd Right Wheel";
|
||||
};
|
||||
class RemoveTire7
|
||||
{
|
||||
condition = "'HitRMWheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitRMWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 3rd Right Wheel";
|
||||
};
|
||||
class RemoveTire8
|
||||
{
|
||||
condition = "'HitRBWheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','HitRBWheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 1)";
|
||||
action = "[dyna_cursorTarget,'remove','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
|
||||
tooltip = "Remove 4th Right Wheel";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user