daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ASN_C0kkie_Repairsystem
  2. {
  3.     //--Translations
  4.     error = "Что-то пошло не так!";
  5.     yes = "Да";
  6.     no = "Нет";
  7.     wrongconditions = "У вас нет необходимых условий";
  8.     noitem = "У вас нет деталей для починки авто";
  9.     alreadyrepairing = "Кто-то уже починил эту деталь.";
  10.     repair = "Ремонтируем %1";   //%1 will Display the Name of the Vehicle
  11.     actioncanceled = "Действие отменено";
  12.     norepairinvehicle = "Нельзя ремонтировать находясь в машине";
  13.     nofaraway = "Вы слишком далеко";
  14.     vehiclerepaired = "Транспорт успешно отремонтирован!";
  15.     vehiclerepairerror = "У вас нет деталей для ремонта транспорта!";
  16.     stealnotallowedloc = "Вы не можете использовать детали сюда!";
  17.     alreadystealing = "Кто- то уже ворует эту деталь!";
  18.     stealing = "Воруем с %1";    //%1 will Display the Name of the Vehicle
  19.     nostealinvehicle = "Вы не можете воровать колеса пока вы в машине";
  20.     vehiclestolen = "Успешно украдены детали транспорта!";
  21.     vehiclestolenfail = "У вас недостаточно места в рюкзаке для того,чтобы украсть детали!";
  22.     noitemSteal = "У вас нет вещей лоя воровства деталей!";
  23.  
  24.     //--Generalsettings
  25.     norepairitemneeded = "playerside isequalto west || {playerside isequalto east}";    //Conditions where you dont need repairitems //Example cops or east side
  26.  
  27.     //--Itemconfiguration
  28.     Repairitemneeded = true;    //--Is a item required to repair a vehicle? Like a toolkit
  29.     vitem_required = false;     //--If false then you need to enter the classname of the "realitem" if true then the variable of the vitem
  30.     item_variable = "ToolKit";
  31.     removeitem = true;          //Remove the Item after usage?
  32.     removecondition = "playerside != west"  //Under which condition should a item be removed?
  33.     //--If this is enable, you need 1 item per wheel & engine to repair it //for example you need then 4 wheels and 1 engine for a car
  34.     //--If you disable that, only a repairkit is needed
  35.     multiitems = true;
  36.  
  37.     //--Conditions that you can repair a specific type of vehicle (you can use a talent system if you have one for example)
  38.     condition_car = "true";                                 //Normal car
  39.     condition_truck4 = "true";                              //Truck with 4 wheels
  40.     condition_truck6 = "playerside isequalto civilian";     //Truck with 6 wheels
  41.     condition_truck8 = "true";                              //Truck with 8 wheels
  42.     condition_air = "true";                                 //Helicopters etc
  43.  
  44.     //--Stealconfiguration
  45.     enablestealsystem = true;
  46.     stealnotallowed = "player distance (getMarkerPos 'police_hq_1') < 80 || playerside isequalto west"  //Condition where it is not allowed to steal vehicle parts (For example if you have a safezone or something)
  47.     Stealitemneeded = true; //--Is a item required to steal vehicleparts? Like a toolkit
  48.     vitem_required_steal = false;   //--If false then you need to enter the classname of the "realitem" if true then the variable of the vitem
  49.     item_variable_steal = "ToolKit";
  50.     removeitemsteal = true;         //Remove the Item after usage?
  51.     removeconditionsteal = "playerside != west" //Under which condition should a item be removed?
  52. };
  53.  
  54. //Dialog for Cars
  55. class C0kkie_CarRepairMenu
  56. {
  57.     idd = 60000;
  58.     movingEnable = true;
  59.     enableSimulation = true;
  60.     name = "C0kkie_CarRepairMenu";
  61.  
  62.     class controlsBackground
  63.     {
  64.         size = 1;
  65.         color = "#c83232";
  66.  
  67.         class Car: Life_RscPicture
  68.         {
  69.             idc = -1;
  70.             text = "\rodina_data\repair\textures\caroverview.paa";
  71.             x = 0.298906 * safezoneW + safezoneX;
  72.             y = 0.324 * safezoneH + safezoneY;
  73.             w = 0.350625 * safezoneW;
  74.             h = 0.264 * safezoneH;
  75.         };
  76.  
  77.         class CarTireImage0: Life_RscPicture
  78.         {
  79.             idc = -1;
  80.             text = "\rodina_data\repair\textures\carwheels.paa";
  81.             x = 0.552595 * safezoneW + safezoneX;
  82.             y = 0.28 * safezoneH + safezoneY;
  83.             w = 0.0721875 * safezoneW;
  84.             h = 0.088 * safezoneH;
  85.         };
  86.  
  87.         class CarTireImage1: Life_RscPicture
  88.         {
  89.             idc = -1;
  90.             text = "\rodina_data\repair\textures\carwheels.paa";
  91.             x = 0.322624 * safezoneW + safezoneX;
  92.             y = 0.555 * safezoneH + safezoneY;
  93.             w = 0.0721875 * safezoneW;
  94.             h = 0.088 * safezoneH;
  95.         };
  96.  
  97.         class CarTireImage2: Life_RscPicture
  98.         {
  99.             idc = -1;
  100.             text = "\rodina_data\repair\textures\carwheels.paa";
  101.             x = 0.555688 * safezoneW + safezoneX;
  102.             y = 0.544 * safezoneH + safezoneY;
  103.             w = 0.0721875 * safezoneW;
  104.             h = 0.088 * safezoneH;
  105.         };
  106.  
  107.         class CarTireImage3: Life_RscPicture
  108.         {
  109.             idc = -1;
  110.             text = "\rodina_data\repair\textures\carwheels.paa";
  111.             x = 0.318499 * safezoneW + safezoneX;
  112.             y = 0.291 * safezoneH + safezoneY;
  113.             w = 0.0721875 * safezoneW;
  114.             h = 0.088 * safezoneH;
  115.         };
  116.  
  117.         class CarEngineImage: Life_RscPicture
  118.         {
  119.             idc = -1;
  120.             text = "\rodina_data\repair\textures\engine.paa";
  121.             x = 0.310247 * safezoneW + safezoneX;
  122.             y = 0.423 * safezoneH + safezoneY;
  123.             w = 0.0721875 * safezoneW;
  124.             h = 0.088 * safezoneH;
  125.         };
  126.     };
  127.  
  128.     class controls
  129.     {
  130.         class CarTireFrontRight: Life_RscButtonMenu
  131.         {
  132.             idc = -1;
  133.             x = 0.328811 * safezoneW + safezoneX;
  134.             y = 0.302 * safezoneH + safezoneY;
  135.             w = 0.0515625 * safezoneW;
  136.             h = 0.066 * safezoneH;
  137.             colorBackground[] = {-1,-1,-1,-1};
  138.             colorBackgroundFocused[] = {1,1,1,0.30};
  139.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  140.             color[] = {1,1,1,1};
  141.             colorFocused[] = {0,0,0,1};
  142.             color2[] = {0,0,0,1};
  143.             colorText[] = {1,1,1,1};
  144.             colorDisabled[] = {0,0,0,0.4};
  145.  
  146.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  147.         };
  148.  
  149.         class CarTireBackRight: Life_RscButtonMenu
  150.         {
  151.             idc = -1;
  152.             x = 0.561876 * safezoneW + safezoneX;
  153.             y = 0.291 * safezoneH + safezoneY;
  154.             w = 0.0515625 * safezoneW;
  155.             h = 0.066 * safezoneH;
  156.             colorBackground[] = {-1,-1,-1,-1};
  157.             colorBackgroundFocused[] = {1,1,1,0.30};
  158.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  159.             color[] = {1,1,1,1};
  160.             colorFocused[] = {0,0,0,1};
  161.             color2[] = {0,0,0,1};
  162.             colorText[] = {1,1,1,1};
  163.             colorDisabled[] = {0,0,0,0.4};
  164.  
  165.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  166.         };
  167.  
  168.         class CarTireFrontLeft: Life_RscButtonMenu
  169.         {
  170.             idc = -1;
  171.             x = 0.332937 * safezoneW + safezoneX;
  172.             y = 0.566 * safezoneH + safezoneY;
  173.             w = 0.0515625 * safezoneW;
  174.             h = 0.066 * safezoneH;
  175.             colorBackground[] = {-1,-1,-1,-1};
  176.             colorBackgroundFocused[] = {1,1,1,0.30};
  177.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  178.             color[] = {1,1,1,1};
  179.             colorFocused[] = {0,0,0,1};
  180.             color2[] = {0,0,0,1};
  181.             colorText[] = {1,1,1,1};
  182.             colorDisabled[] = {0,0,0,0.4};
  183.  
  184.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  185.         };
  186.  
  187.         class CarTireBackLeft: Life_RscButtonMenu
  188.         {
  189.             idc = -1;
  190.             x = 0.566 * safezoneW + safezoneX;
  191.             y = 0.555 * safezoneH + safezoneY;
  192.             w = 0.0515625 * safezoneW;
  193.             h = 0.066 * safezoneH;
  194.             colorBackground[] = {-1,-1,-1,-1};
  195.             colorBackgroundFocused[] = {1,1,1,0.30};
  196.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  197.             color[] = {1,1,1,1};
  198.             colorFocused[] = {0,0,0,1};
  199.             color2[] = {0,0,0,1};
  200.             colorText[] = {1,1,1,1};
  201.             colorDisabled[] = {0,0,0,0.4};
  202.  
  203.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  204.         };
  205.  
  206.         class CarEngine: Life_RscButtonMenu
  207.         {
  208.             idc = -1;
  209.             x = 0.303029 * safezoneW + safezoneX;
  210.             y = 0.434 * safezoneH + safezoneY;
  211.             w = 0.0825 * safezoneW;
  212.             h = 0.066 * safezoneH;
  213.             colorBackground[] = {-1,-1,-1,-1};
  214.             colorBackgroundFocused[] = {1,1,1,0.30};
  215.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  216.             color[] = {1,1,1,1};
  217.             colorFocused[] = {0,0,0,1};
  218.             color2[] = {0,0,0,1};
  219.             colorText[] = {1,1,1,1};
  220.             colorDisabled[] = {0,0,0,0.4};
  221.  
  222.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitEngine' > 0) then { [true, C0kkie_vInact_curTarget,'HitEngine'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitEngine'] spawn C0kkie_Repair_fnc_stealpart; };";
  223.         };
  224.  
  225.         class CarTireFrontLeftStatus: Life_RscStructuredText
  226.         {
  227.             idc = -1;
  228.             x = 0.345311 * safezoneW + safezoneX;
  229.             y = 0.632 * safezoneH + safezoneY;
  230.             w = 0.0357812 * safezoneW;
  231.             h = 0.033 * safezoneH;
  232.  
  233.             onLoad = "private _flDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _flDmg, '%']);";
  234.         };
  235.  
  236.         class CarTireFrontRightStatus: Life_RscStructuredText
  237.         {
  238.             idc = -1;
  239.             text = "100 %";
  240.             x = 0.340155 * safezoneW + safezoneX;
  241.             y = 0.269 * safezoneH + safezoneY;
  242.             w = 0.0357812 * safezoneW;
  243.             h = 0.033 * safezoneH;
  244.  
  245.             onLoad = "private _frDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _frDmg, '%']);";
  246.         };
  247.  
  248.         class CarTireBackLeftStatus: Life_RscStructuredText
  249.         {
  250.             idc = -1;
  251.             x = 0.581469 * safezoneW + safezoneX;
  252.             y = 0.621 * safezoneH + safezoneY;
  253.             w = 0.0357812 * safezoneW;
  254.             h = 0.033 * safezoneH;
  255.  
  256.             onLoad = "private _blDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _blDmg, '%']);";
  257.         };
  258.  
  259.         class CarTireBackRightStatus: Life_RscStructuredText
  260.         {
  261.             idc = -1;
  262.             x = 0.576314 * safezoneW + safezoneX;
  263.             y = 0.258 * safezoneH + safezoneY;
  264.             w = 0.0357812 * safezoneW;
  265.             h = 0.033 * safezoneH;
  266.  
  267.             onLoad = "private _brDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _brDmg, '%']);";
  268.         };
  269.  
  270.         class CarEngineStatus: Life_RscStructuredText
  271.         {
  272.             idc = -1;
  273.             x = 0.276217 * safezoneW + safezoneX;
  274.             y = 0.4516 * safezoneH + safezoneY;
  275.             w = 0.0357812 * safezoneW;
  276.             h = 0.033 * safezoneH;
  277.  
  278.             onLoad = "private _engDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitEngine') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _engDmg, '%']);";
  279.         };
  280.     };
  281. };
  282.  
  283. //Dialog for trucks with 4 wheels
  284. class C0kkie_truck4RepairMenu
  285. {
  286.     idd = 61000;
  287.     movingEnable = true;
  288.     enableSimulation = true;
  289.     name = "C0kkie_truck4RepairMenu";
  290.  
  291.     class controlsBackground
  292.     {
  293.         size = 1;
  294.         color = "#c83232";
  295.  
  296.         class Truck4: Life_RscPicture
  297.         {
  298.             idc = -1;
  299.             text = "\rodina_data\repair\textures\truck4overview.paa";
  300.             x = 0.324687 * safezoneW + safezoneX;
  301.             y = 0.324 * safezoneH + safezoneY;
  302.             w = 0.350625 * safezoneW;
  303.             h = 0.264 * safezoneH;
  304.         };
  305.  
  306.         class Truck4TireImage0: Life_RscPicture
  307.         {
  308.             idc = -1;
  309.             text = "\rodina_data\repair\textures\truckwheels.paa";
  310.             x = 0.340156 * safezoneW + safezoneX;
  311.             y = 0.522 * safezoneH + safezoneY;
  312.             w = 0.0464063 * safezoneW;
  313.             h = 0.066 * safezoneH;
  314.         };
  315.  
  316.         class Truck4TireImage1: Life_RscPicture
  317.         {
  318.             idc = -1;
  319.             text = "\rodina_data\repair\textures\truckwheels.paa";
  320.             x = 0.608281 * safezoneW + safezoneX;
  321.             y = 0.522 * safezoneH + safezoneY;
  322.             w = 0.0464063 * safezoneW;
  323.             h = 0.066 * safezoneH;
  324.         };
  325.  
  326.         class Truck4TireImage2: Life_RscPicture
  327.         {
  328.             idc = -1;
  329.             text = "\rodina_data\repair\textures\truckwheels.paa";
  330.             x = 0.340156 * safezoneW + safezoneX;
  331.             y = 0.324 * safezoneH + safezoneY;
  332.             w = 0.0464063 * safezoneW;
  333.             h = 0.066 * safezoneH;
  334.         };
  335.  
  336.         class Truck4TireImage3: Life_RscPicture
  337.         {
  338.             idc = -1;
  339.             text = "\rodina_data\repair\textures\truckwheels.paa";
  340.             x = 0.608281 * safezoneW + safezoneX;
  341.             y = 0.324 * safezoneH + safezoneY;
  342.             w = 0.0464063 * safezoneW;
  343.             h = 0.066 * safezoneH;
  344.         };
  345.  
  346.         class Truck4EngineImage: Life_RscPicture
  347.         {
  348.             idc = -1;
  349.             text = "\rodina_data\repair\textures\engine.paa";
  350.             x = 0.324687 * safezoneW + safezoneX;
  351.             y = 0.412 * safezoneH + safezoneY;
  352.             w = 0.0721875 * safezoneW;
  353.             h = 0.088 * safezoneH;
  354.         };
  355.     };
  356.  
  357.     class controls
  358.     {
  359.         class Truck4TireFrontRight: Life_RscButtonMenu
  360.         {
  361.             idc = -1;
  362.             x = 0.340156 * safezoneW + safezoneX;
  363.             y = 0.324 * safezoneH + safezoneY;
  364.             w = 0.0464063 * safezoneW;
  365.             h = 0.066 * safezoneH;
  366.             colorBackground[] = {-1,-1,-1,-1};
  367.             colorBackgroundFocused[] = {1,1,1,0.30};
  368.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  369.             color[] = {1,1,1,1};
  370.             colorFocused[] = {0,0,0,1};
  371.             color2[] = {0,0,0,1};
  372.             colorText[] = {1,1,1,1};
  373.             colorDisabled[] = {0,0,0,0.4};
  374.  
  375.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  376.         };
  377.  
  378.         class Truck4TireBackRight: Life_RscButtonMenu
  379.         {
  380.             idc = -1;
  381.             x = 0.608281 * safezoneW + safezoneX;
  382.             y = 0.324 * safezoneH + safezoneY;
  383.             w = 0.0464063 * safezoneW;
  384.             h = 0.066 * safezoneH;
  385.             colorBackground[] = {-1,-1,-1,-1};
  386.             colorBackgroundFocused[] = {1,1,1,0.30};
  387.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  388.             color[] = {1,1,1,1};
  389.             colorFocused[] = {0,0,0,1};
  390.             color2[] = {0,0,0,1};
  391.             colorText[] = {1,1,1,1};
  392.             colorDisabled[] = {0,0,0,0.4};
  393.  
  394.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  395.         };
  396.  
  397.         class Truck4TireFrontLeft: Life_RscButtonMenu
  398.         {
  399.             idc = -1;
  400.             x = 0.340156 * safezoneW + safezoneX;
  401.             y = 0.522 * safezoneH + safezoneY;
  402.             w = 0.0464063 * safezoneW;
  403.             h = 0.066 * safezoneH;
  404.             colorBackground[] = {-1,-1,-1,-1};
  405.             colorBackgroundFocused[] = {1,1,1,0.30};
  406.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  407.             color[] = {1,1,1,1};
  408.             colorFocused[] = {0,0,0,1};
  409.             color2[] = {0,0,0,1};
  410.             colorText[] = {1,1,1,1};
  411.             colorDisabled[] = {0,0,0,0.4};
  412.  
  413.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel' > 0 ) then { [true, C0kkie_vInact_curTarget,'HitLFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  414.         };
  415.  
  416.         class Truck4TireBackLeft: Life_RscButtonMenu
  417.         {
  418.             idc = -1;
  419.             x = 0.608281 * safezoneW + safezoneX;
  420.             y = 0.522 * safezoneH + safezoneY;
  421.             w = 0.0464063 * safezoneW;
  422.             h = 0.066 * safezoneH;
  423.             colorBackground[] = {-1,-1,-1,-1};
  424.             colorBackgroundFocused[] = {1,1,1,0.30};
  425.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  426.             color[] = {1,1,1,1};
  427.             colorFocused[] = {0,0,0,1};
  428.             color2[] = {0,0,0,1};
  429.             colorText[] = {1,1,1,1};
  430.             colorDisabled[] = {0,0,0,0.4};
  431.  
  432.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  433.         };
  434.  
  435.         class Truck4Engine: Life_RscButtonMenu
  436.         {
  437.             idc = -1;
  438.             x = 0.324687 * safezoneW + safezoneX;
  439.             y = 0.423 * safezoneH + safezoneY;
  440.             w = 0.0721875 * safezoneW;
  441.             h = 0.066 * safezoneH;
  442.             colorBackground[] = {-1,-1,-1,-1};
  443.             colorBackgroundFocused[] = {1,1,1,0.30};
  444.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  445.             color[] = {1,1,1,1};
  446.             colorFocused[] = {0,0,0,1};
  447.             color2[] = {0,0,0,1};
  448.             colorText[] = {1,1,1,1};
  449.             colorDisabled[] = {0,0,0,0.4};
  450.  
  451.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitEngine' > 0) then { [true, C0kkie_vInact_curTarget,'HitEngine'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitEngine'] spawn C0kkie_Repair_fnc_stealpart; };";
  452.         };
  453.  
  454.         class Truck4TireFrontLeftStatus: Life_RscStructuredText
  455.         {
  456.             idc = -1;
  457.             x = 0.350469 * safezoneW + safezoneX;
  458.             y = 0.588 * safezoneH + safezoneY;
  459.             w = 0.0257812 * safezoneW;
  460.             h = 0.022 * safezoneH;
  461.  
  462.             onLoad = "private _flDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _flDmg, '%']);";
  463.         };
  464.  
  465.         class Truck4TireFrontRightStatus: Life_RscStructuredText
  466.         {
  467.             idc = -1;
  468.             x = 0.350469 * safezoneW + safezoneX;
  469.             y = 0.302 * safezoneH + safezoneY;
  470.             w = 0.0257812 * safezoneW;
  471.             h = 0.022 * safezoneH;
  472.  
  473.             onLoad = "private _frDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _frDmg, '%']);";
  474.         };
  475.  
  476.         class Truck4TireBackLeftStatus: Life_RscStructuredText
  477.         {
  478.             idc = -1;
  479.             x = 0.618594 * safezoneW + safezoneX;
  480.             y = 0.588 * safezoneH + safezoneY;
  481.             w = 0.0257812 * safezoneW;
  482.             h = 0.022 * safezoneH;
  483.  
  484.             onLoad = "private _blDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _blDmg, '%']);";
  485.         };
  486.  
  487.         class Truck4TireBackRightStatus: Life_RscStructuredText
  488.         {
  489.             idc = -1;
  490.             x = 0.618594 * safezoneW + safezoneX;
  491.             y = 0.302 * safezoneH + safezoneY;
  492.             w = 0.0257812 * safezoneW;
  493.             h = 0.022 * safezoneH;
  494.  
  495.             onLoad = "private _brDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _brDmg, '%']);";
  496.         };
  497.  
  498.         class Truck4EngineStatus: Life_RscStructuredText
  499.         {
  500.             idc = -1;
  501.             x = 0.294687 * safezoneW + safezoneX;
  502.             y = 0.432 * safezoneH + safezoneY;
  503.             w = 0.0357812 * safezoneW;
  504.             h = 0.033 * safezoneH;
  505.  
  506.             onLoad = "private _engDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitEngine') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _engDmg, '%']);";
  507.         };
  508.     };
  509. };
  510.  
  511. //Dialog for trucks with 6 wheels
  512. class C0kkie_truck6RepairMenu
  513. {
  514.     idd = 62000;
  515.     movingEnable = true;
  516.     enableSimulation = true;
  517.     name = "C0kkie_truck6RepairMenu";
  518.  
  519.     class controlsBackground
  520.     {
  521.         size = 1;
  522.         color = "#c83232";
  523.  
  524.         class Truck6: Life_RscPicture
  525.         {
  526.             idc = -1;
  527.             text = "\rodina_data\repair\textures\truck6overview.paa";
  528.             x = 0.324687 * safezoneW + safezoneX;
  529.             y = 0.324 * safezoneH + safezoneY;
  530.             w = 0.350625 * safezoneW;
  531.             h = 0.264 * safezoneH;
  532.         };
  533.  
  534.         class Truck6TireImage0: Life_RscPicture
  535.         {
  536.             idc = -1;
  537.             text = "\rodina_data\repair\textures\truckwheels.paa";
  538.             x = 0.355625 * safezoneW + safezoneX;
  539.             y = 0.324 * safezoneH + safezoneY;
  540.             w = 0.0464063 * safezoneW;
  541.             h = 0.066 * safezoneH;
  542.         };
  543.  
  544.         class Truck6TireImage1: Life_RscPicture
  545.         {
  546.             idc = -1;
  547.             text = "\rodina_data\repair\textures\truckwheels.paa";
  548.             x = 0.355625 * safezoneW + safezoneX;
  549.             y = 0.544 * safezoneH + safezoneY;
  550.             w = 0.0464063 * safezoneW;
  551.             h = 0.066 * safezoneH;
  552.         };
  553.         class Truck6TireImage2: Life_RscPicture
  554.         {
  555.             idc = -1;
  556.             text = "\rodina_data\repair\textures\truckwheels.paa";
  557.             x = 0.525781 * safezoneW + safezoneX;
  558.             y = 0.544 * safezoneH + safezoneY;
  559.             w = 0.0464063 * safezoneW;
  560.             h = 0.066 * safezoneH;
  561.         };
  562.         class Truck6TireImage3: Life_RscPicture
  563.         {
  564.             idc = -1;
  565.             text = "\rodina_data\repair\textures\truckwheels.paa";
  566.             x = 0.572187 * safezoneW + safezoneX;
  567.             y = 0.544 * safezoneH + safezoneY;
  568.             w = 0.0464063 * safezoneW;
  569.             h = 0.066 * safezoneH;
  570.         };
  571.         class Truck6TireImage4: Life_RscPicture
  572.         {
  573.             idc = -1;
  574.             text = "\rodina_data\repair\textures\truckwheels.paa";
  575.             x = 0.525781 * safezoneW + safezoneX;
  576.             y = 0.302 * safezoneH + safezoneY;
  577.             w = 0.0464063 * safezoneW;
  578.             h = 0.066 * safezoneH;
  579.         };
  580.         class Truck6TireImage5: Life_RscPicture
  581.         {
  582.             idc = -1;
  583.             text = "\rodina_data\repair\textures\truckwheels.paa";
  584.             x = 0.572187 * safezoneW + safezoneX;
  585.             y = 0.302 * safezoneH + safezoneY;
  586.             w = 0.0464063 * safezoneW;
  587.             h = 0.066 * safezoneH;
  588.         };
  589.  
  590.         class Truck6EngineImage: Life_RscPicture
  591.         {
  592.             idc = -1;
  593.             text = "\rodina_data\repair\textures\engine.paa";
  594.             x = 0.324687 * safezoneW + safezoneX;
  595.             y = 0.423 * safezoneH + safezoneY;
  596.             w = 0.0721875 * safezoneW;
  597.             h = 0.077 * safezoneH;
  598.         };
  599.     };
  600.  
  601.     class controls
  602.     {
  603.         class Truck6TireLeftFront0: Life_RscButtonMenu
  604.         {
  605.             idc = -1;
  606.             x = 0.355625 * safezoneW + safezoneX;
  607.             y = 0.544 * safezoneH + safezoneY;
  608.             w = 0.0464063 * safezoneW;
  609.             h = 0.066 * safezoneH;
  610.             colorBackground[] = {-1,-1,-1,-1};
  611.             colorBackgroundFocused[] = {1,1,1,0.30};
  612.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  613.             color[] = {1,1,1,1};
  614.             colorFocused[] = {0,0,0,1};
  615.             color2[] = {0,0,0,1};
  616.             colorText[] = {1,1,1,1};
  617.             colorDisabled[] = {0,0,0,0.4};
  618.  
  619.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel' > 0 ) then { [true, C0kkie_vInact_curTarget,'HitLFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  620.         };
  621.  
  622.         class Truck6TireLeftFront1: Life_RscButtonMenu
  623.         {
  624.             idc = -1;
  625.             x = 0.525781 * safezoneW + safezoneX;
  626.             y = 0.544 * safezoneH + safezoneY;
  627.             w = 0.0464063 * safezoneW;
  628.             h = 0.066 * safezoneH;
  629.             colorBackground[] = {-1,-1,-1,-1};
  630.             colorBackgroundFocused[] = {1,1,1,0.30};
  631.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  632.             color[] = {1,1,1,1};
  633.             colorFocused[] = {0,0,0,1};
  634.             color2[] = {0,0,0,1};
  635.             colorText[] = {1,1,1,1};
  636.             colorDisabled[] = {0,0,0,0.4};
  637.  
  638.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLMWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLMWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLMWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  639.         };
  640.  
  641.         class Truck6TireLeftFront2: Life_RscButtonMenu
  642.         {
  643.             idc = -1;
  644.             x = 0.572187 * safezoneW + safezoneX;
  645.             y = 0.544 * safezoneH + safezoneY;
  646.             w = 0.0464063 * safezoneW;
  647.             h = 0.066 * safezoneH;
  648.             colorBackground[] = {-1,-1,-1,-1};
  649.             colorBackgroundFocused[] = {1,1,1,0.30};
  650.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  651.             color[] = {1,1,1,1};
  652.             colorFocused[] = {0,0,0,1};
  653.             color2[] = {0,0,0,1};
  654.             colorText[] = {1,1,1,1};
  655.             colorDisabled[] = {0,0,0,0.4};
  656.  
  657.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  658.         };
  659.  
  660.         class Truck6TireRightFront0: Life_RscButtonMenu
  661.         {
  662.             idc = -1;
  663.             x = 0.355625 * safezoneW + safezoneX;
  664.             y = 0.324 * safezoneH + safezoneY;
  665.             w = 0.0464063 * safezoneW;
  666.             h = 0.066 * safezoneH;
  667.             colorBackground[] = {-1,-1,-1,-1};
  668.             colorBackgroundFocused[] = {1,1,1,0.30};
  669.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  670.             color[] = {1,1,1,1};
  671.             colorFocused[] = {0,0,0,1};
  672.             color2[] = {0,0,0,1};
  673.             colorText[] = {1,1,1,1};
  674.             colorDisabled[] = {0,0,0,0.4};
  675.  
  676.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  677.         };
  678.  
  679.         class Truck6TireRightFront1: Life_RscButtonMenu
  680.         {
  681.             idc = -1;
  682.             x = 0.525781 * safezoneW + safezoneX;
  683.             y = 0.302 * safezoneH + safezoneY;
  684.             w = 0.0464063 * safezoneW;
  685.             h = 0.066 * safezoneH;
  686.             colorBackground[] = {-1,-1,-1,-1};
  687.             colorBackgroundFocused[] = {1,1,1,0.30};
  688.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  689.             color[] = {1,1,1,1};
  690.             colorFocused[] = {0,0,0,1};
  691.             color2[] = {0,0,0,1};
  692.             colorText[] = {1,1,1,1};
  693.             colorDisabled[] = {0,0,0,0.4};
  694.  
  695.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRMWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRMWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRMWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  696.         };
  697.  
  698.         class Truck6TireRightFront2: Life_RscButtonMenu
  699.         {
  700.             idc = -1;
  701.             x = 0.572187 * safezoneW + safezoneX;
  702.             y = 0.302 * safezoneH + safezoneY;
  703.             w = 0.0464063 * safezoneW;
  704.             h = 0.066 * safezoneH;
  705.             colorBackground[] = {-1,-1,-1,-1};
  706.             colorBackgroundFocused[] = {1,1,1,0.30};
  707.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  708.             color[] = {1,1,1,1};
  709.             colorFocused[] = {0,0,0,1};
  710.             color2[] = {0,0,0,1};
  711.             colorText[] = {1,1,1,1};
  712.             colorDisabled[] = {0,0,0,0.4};
  713.  
  714.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  715.         };
  716.  
  717.         class Truck6Engine: Life_RscButtonMenu
  718.         {
  719.             idc = -1;
  720.             x = 0.324687 * safezoneW + safezoneX;
  721.             y = 0.434 * safezoneH + safezoneY;
  722.             w = 0.0721875 * safezoneW;
  723.             h = 0.055 * safezoneH;
  724.             colorBackground[] = {-1,-1,-1,-1};
  725.             colorBackgroundFocused[] = {1,1,1,0.30};
  726.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  727.             color[] = {1,1,1,1};
  728.             colorFocused[] = {0,0,0,1};
  729.             color2[] = {0,0,0,1};
  730.             colorText[] = {1,1,1,1};
  731.             colorDisabled[] = {0,0,0,0.4};
  732.  
  733.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitEngine' > 0) then { [true, C0kkie_vInact_curTarget,'HitEngine'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitEngine'] spawn C0kkie_Repair_fnc_stealpart; };";
  734.         };
  735.  
  736.         class Truck6TireFrontLeftStatus0: Life_RscStructuredText
  737.         {
  738.             idc = -1;
  739.             x = 0.365937 * safezoneW + safezoneX;
  740.             y = 0.6166 * safezoneH + safezoneY;
  741.             w = 0.0257812 * safezoneW;
  742.             h = 0.022 * safezoneH;
  743.  
  744.             onLoad = "private _flDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _flDmg, '%']);";
  745.         };
  746.  
  747.         class Truck6TireFrontLeftStatus1: Life_RscStructuredText
  748.         {
  749.             idc = -1;
  750.             x = 0.536094 * safezoneW + safezoneX;
  751.             y = 0.6166 * safezoneH + safezoneY;
  752.             w = 0.0257812 * safezoneW;
  753.             h = 0.022 * safezoneH;
  754.  
  755.             onLoad = "private _fl1Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLMWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fl1Dmg, '%']);";
  756.         };
  757.  
  758.         class Truck6TireFrontLeftStatus2: Life_RscStructuredText
  759.         {
  760.             idc = -1;
  761.             x = 0.5825 * safezoneW + safezoneX;
  762.             y = 0.6166 * safezoneH + safezoneY;
  763.             w = 0.0257812 * safezoneW;
  764.             h = 0.022 * safezoneH;
  765.  
  766.             onLoad = "private _fl2Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fl2Dmg, '%']);";
  767.         };
  768.  
  769.         class Truck6TireFrontRightStatus0: Life_RscStructuredText
  770.         {
  771.             idc = -1;
  772.             x = 0.365937 * safezoneW + safezoneX;
  773.             y = 0.2954 * safezoneH + safezoneY;
  774.             w = 0.0257812 * safezoneW;
  775.             h = 0.022 * safezoneH;
  776.  
  777.             onLoad = "private _frDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _frDmg, '%']);";
  778.         };
  779.  
  780.         class Truck6TireFrontRightStatus1: Life_RscStructuredText
  781.         {
  782.             idc = -1;
  783.             x = 0.536094 * safezoneW + safezoneX;
  784.             y = 0.2734 * safezoneH + safezoneY;
  785.             w = 0.0257812 * safezoneW;
  786.             h = 0.022 * safezoneH;
  787.  
  788.             onLoad = "private _fr1Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRMWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fr1Dmg, '%']);";
  789.         };
  790.  
  791.         class Truck6TireFrontRightStatus2: Life_RscStructuredText
  792.         {
  793.             idc = -1;
  794.             x = 0.5825 * safezoneW + safezoneX;
  795.             y = 0.2734 * safezoneH + safezoneY;
  796.             w = 0.0257812 * safezoneW;
  797.             h = 0.022 * safezoneH;
  798.  
  799.             onLoad = "private _fr2Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fr2Dmg, '%']);";
  800.         };
  801.  
  802.         class Truck6EngineStatus: Life_RscStructuredText
  803.         {
  804.             idc = -1;
  805.             x = 0.297875 * safezoneW + safezoneX;
  806.             y = 0.4538 * safezoneH + safezoneY;
  807.             w = 0.0257812 * safezoneW;
  808.             h = 0.022 * safezoneH;
  809.  
  810.             onLoad = "private _engDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitEngine') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _engDmg, '%']);";
  811.         };
  812.     };
  813. };
  814.  
  815. //Dialog for trucks with 8 wheels
  816. class C0kkie_truck8RepairMenu
  817. {
  818.     idd = 63000;
  819.     movingEnable = true;
  820.     enableSimulation = true;
  821.     name = "C0kkie_truck8RepairMenu";
  822.  
  823.     class controlsBackground
  824.     {
  825.         size = 1;
  826.         color = "#c83232";
  827.  
  828.         class Truck8: Life_RscPicture
  829.         {
  830.             idc = -1;
  831.             text = "\rodina_data\repair\textures\truck8overview.paa";
  832.             x = 0.324687 * safezoneW + safezoneX;
  833.             y = 0.324 * safezoneH + safezoneY;
  834.             w = 0.350625 * safezoneW;
  835.             h = 0.264 * safezoneH;
  836.         };
  837.  
  838.         class Truck8TireImage0: Life_RscPicture
  839.         {
  840.             idc = -1;
  841.             text = "\rodina_data\repair\textures\truckwheels.paa";
  842.             x = 0.360781 * safezoneW + safezoneX;
  843.             y = 0.3526 * safezoneH + safezoneY;
  844.             w = 0.0464063 * safezoneW;
  845.             h = 0.066 * safezoneH;
  846.         };
  847.  
  848.         class Truck8TireImage1: Life_RscPicture
  849.         {
  850.             idc = -1;
  851.             text = "\rodina_data\repair\textures\truckwheels.paa";
  852.             x = 0.412344 * safezoneW + safezoneX;
  853.             y = 0.3526 * safezoneH + safezoneY;
  854.             w = 0.0464063 * safezoneW;
  855.             h = 0.066 * safezoneH;
  856.         };
  857.  
  858.         class Truck8TireImage2: Life_RscPicture
  859.         {
  860.             idc = -1;
  861.             text = "\rodina_data\repair\textures\truckwheels.paa";
  862.             x = 0.561875 * safezoneW + safezoneX;
  863.             y = 0.346 * safezoneH + safezoneY;
  864.             w = 0.0464063 * safezoneW;
  865.             h = 0.066 * safezoneH;
  866.         };
  867.  
  868.         class Truck8TireImage3: Life_RscPicture
  869.         {
  870.             idc = -1;
  871.             text = "\rodina_data\repair\textures\truckwheels.paa";
  872.             x = 0.613437 * safezoneW + safezoneX;
  873.             y = 0.346 * safezoneH + safezoneY;
  874.             w = 0.0464063 * safezoneW;
  875.             h = 0.066 * safezoneH;
  876.         };
  877.  
  878.         class Truck8TireImage4: Life_RscPicture
  879.         {
  880.             idc = -1;
  881.             text = "\rodina_data\repair\textures\truckwheels.paa";
  882.             x = 0.360781 * safezoneW + safezoneX;
  883.             y = 0.5022 * safezoneH + safezoneY;
  884.             w = 0.0464063 * safezoneW;
  885.             h = 0.066 * safezoneH;
  886.         };
  887.  
  888.         class Truck8TireImage5: Life_RscPicture
  889.         {
  890.             idc = -1;
  891.             text = "\rodina_data\repair\textures\truckwheels.paa";
  892.             x = 0.412344 * safezoneW + safezoneX;
  893.             y = 0.5022 * safezoneH + safezoneY;
  894.             w = 0.0464063 * safezoneW;
  895.             h = 0.066 * safezoneH;
  896.         };
  897.  
  898.         class Truck8TireImage6: Life_RscPicture
  899.         {
  900.             idc = -1;
  901.             text = "\rodina_data\repair\textures\truckwheels.paa";
  902.             x = 0.561875 * safezoneW + safezoneX;
  903.             y = 0.5 * safezoneH + safezoneY;
  904.             w = 0.0464063 * safezoneW;
  905.             h = 0.066 * safezoneH;
  906.         };
  907.  
  908.         class Truck8TireImage7: Life_RscPicture
  909.         {
  910.             idc = -1;
  911.             text = "\rodina_data\repair\textures\truckwheels.paa";
  912.             x = 0.613437 * safezoneW + safezoneX;
  913.             y = 0.5 * safezoneH + safezoneY;
  914.             w = 0.0464063 * safezoneW;
  915.             h = 0.066 * safezoneH;
  916.         };
  917.  
  918.         class Truck8EngineImage: Life_RscPicture
  919.         {
  920.             idc = -1;
  921.             text = "\rodina_data\repair\textures\engine.paa";
  922.             x = 0.324687 * safezoneW + safezoneX;
  923.             y = 0.423 * safezoneH + safezoneY;
  924.             w = 0.0721875 * safezoneW;
  925.             h = 0.077 * safezoneH;
  926.         };
  927.     };
  928.  
  929.     class controls
  930.     {
  931.         class Truck8TireLeftFront0: Life_RscButtonMenu
  932.         {
  933.             idc = 2400;
  934.             x = 0.360781 * safezoneW + safezoneX;
  935.             y = 0.5022 * safezoneH + safezoneY;
  936.             w = 0.0464063 * safezoneW;
  937.             h = 0.066 * safezoneH;
  938.             colorBackground[] = {-1,-1,-1,-1};
  939.             colorBackgroundFocused[] = {1,1,1,0.30};
  940.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  941.             color[] = {1,1,1,1};
  942.             colorFocused[] = {0,0,0,1};
  943.             color2[] = {0,0,0,1};
  944.             colorText[] = {1,1,1,1};
  945.             colorDisabled[] = {0,0,0,0.4};
  946.  
  947.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  948.         };
  949.  
  950.         class Truck8TireLeftFront1: Life_RscButtonMenu
  951.         {
  952.             idc = 2401;
  953.             x = 0.412344 * safezoneW + safezoneX;
  954.             y = 0.5022 * safezoneH + safezoneY;
  955.             w = 0.0464063 * safezoneW;
  956.             h = 0.066 * safezoneH;
  957.             colorBackground[] = {-1,-1,-1,-1};
  958.             colorBackgroundFocused[] = {1,1,1,0.30};
  959.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  960.             color[] = {1,1,1,1};
  961.             colorFocused[] = {0,0,0,1};
  962.             color2[] = {0,0,0,1};
  963.             colorText[] = {1,1,1,1};
  964.             colorDisabled[] = {0,0,0,0.4};
  965.  
  966.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLMWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLMWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLMWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  967.         };
  968.  
  969.         class Truck8TireLeftFront2: Life_RscButtonMenu
  970.         {
  971.             idc = 2402;
  972.             x = 0.561875 * safezoneW + safezoneX;
  973.             y = 0.5 * safezoneH + safezoneY;
  974.             w = 0.0464063 * safezoneW;
  975.             h = 0.066 * safezoneH;
  976.             colorBackground[] = {-1,-1,-1,-1};
  977.             colorBackgroundFocused[] = {1,1,1,0.30};
  978.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  979.             color[] = {1,1,1,1};
  980.             colorFocused[] = {0,0,0,1};
  981.             color2[] = {0,0,0,1};
  982.             colorText[] = {1,1,1,1};
  983.             colorDisabled[] = {0,0,0,0.4};
  984.  
  985.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  986.         };
  987.  
  988.         class Truck8TireLeftFront3: Life_RscButtonMenu
  989.         {
  990.             idc = 2403;
  991.             x = 0.613437 * safezoneW + safezoneX;
  992.             y = 0.5 * safezoneH + safezoneY;
  993.             w = 0.0464063 * safezoneW;
  994.             h = 0.066 * safezoneH;
  995.             colorBackground[] = {-1,-1,-1,-1};
  996.             colorBackgroundFocused[] = {1,1,1,0.30};
  997.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  998.             color[] = {1,1,1,1};
  999.             colorFocused[] = {0,0,0,1};
  1000.             color2[] = {0,0,0,1};
  1001.             colorText[] = {1,1,1,1};
  1002.             colorDisabled[] = {0,0,0,0.4};
  1003.  
  1004.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitLBWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitLBWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitLBWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  1005.         };
  1006.  
  1007.         class Truck8TireRightFront0: Life_RscButtonMenu
  1008.         {
  1009.             idc = 2407;
  1010.             x = 0.360781 * safezoneW + safezoneX;
  1011.             y = 0.3526 * safezoneH + safezoneY;
  1012.             w = 0.0464063 * safezoneW;
  1013.             h = 0.066 * safezoneH;
  1014.             colorBackground[] = {-1,-1,-1,-1};
  1015.             colorBackgroundFocused[] = {1,1,1,0.30};
  1016.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  1017.             color[] = {1,1,1,1};
  1018.             colorFocused[] = {0,0,0,1};
  1019.             color2[] = {0,0,0,1};
  1020.             colorText[] = {1,1,1,1};
  1021.             colorDisabled[] = {0,0,0,0.4};
  1022.  
  1023.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRFWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRFWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  1024.         };
  1025.  
  1026.         class Truck8TireRightFront1: Life_RscButtonMenu
  1027.         {
  1028.             idc = 2406;
  1029.             x = 0.412344 * safezoneW + safezoneX;
  1030.             y = 0.3526 * safezoneH + safezoneY;
  1031.             w = 0.0464063 * safezoneW;
  1032.             h = 0.066 * safezoneH;
  1033.             colorBackground[] = {-1,-1,-1,-1};
  1034.             colorBackgroundFocused[] = {1,1,1,0.30};
  1035.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  1036.             color[] = {1,1,1,1};
  1037.             colorFocused[] = {0,0,0,1};
  1038.             color2[] = {0,0,0,1};
  1039.             colorText[] = {1,1,1,1};
  1040.             colorDisabled[] = {0,0,0,0.4};
  1041.  
  1042.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRMWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRMWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRMWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  1043.         };
  1044.  
  1045.         class Truck8TireRightFront2: Life_RscButtonMenu
  1046.         {
  1047.             idc = 2404;
  1048.             x = 0.561875 * safezoneW + safezoneX;
  1049.             y = 0.346 * safezoneH + safezoneY;
  1050.             w = 0.0464063 * safezoneW;
  1051.             h = 0.066 * safezoneH;
  1052.             colorBackground[] = {-1,-1,-1,-1};
  1053.             colorBackgroundFocused[] = {1,1,1,0.30};
  1054.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  1055.             color[] = {1,1,1,1};
  1056.             colorFocused[] = {0,0,0,1};
  1057.             color2[] = {0,0,0,1};
  1058.             colorText[] = {1,1,1,1};
  1059.             colorDisabled[] = {0,0,0,0.4};
  1060.  
  1061.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRF2Wheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRF2Wheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  1062.         };
  1063.  
  1064.         class Truck8TireRightFront3: Life_RscButtonMenu
  1065.         {
  1066.             idc = 2405;
  1067.             x = 0.613437 * safezoneW + safezoneX;
  1068.             y = 0.346 * safezoneH + safezoneY;
  1069.             w = 0.0464063 * safezoneW;
  1070.             h = 0.066 * safezoneH;
  1071.             colorBackground[] = {-1,-1,-1,-1};
  1072.             colorBackgroundFocused[] = {1,1,1,0.30};
  1073.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  1074.             color[] = {1,1,1,1};
  1075.             colorFocused[] = {0,0,0,1};
  1076.             color2[] = {0,0,0,1};
  1077.             colorText[] = {1,1,1,1};
  1078.             colorDisabled[] = {0,0,0,0.4};
  1079.  
  1080.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitRBWheel' > 0) then { [true, C0kkie_vInact_curTarget,'HitRBWheel'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitRBWheel'] spawn C0kkie_Repair_fnc_stealpart; };";
  1081.         };
  1082.  
  1083.         class Truck8Engine: Life_RscButtonMenu
  1084.         {
  1085.             idc = 2408;
  1086.             x = 0.324687 * safezoneW + safezoneX;
  1087.             y = 0.434 * safezoneH + safezoneY;
  1088.             w = 0.0721875 * safezoneW;
  1089.             h = 0.055 * safezoneH;
  1090.             colorBackground[] = {-1,-1,-1,-1};
  1091.             colorBackgroundFocused[] = {1,1,1,0.30};
  1092.             colorBackground2[] = {0.75,0.75,0.75,0.4};
  1093.             color[] = {1,1,1,1};
  1094.             colorFocused[] = {0,0,0,1};
  1095.             color2[] = {0,0,0,1};
  1096.             colorText[] = {1,1,1,1};
  1097.             colorDisabled[] = {0,0,0,0.4};
  1098.  
  1099.             onButtonClick = "if (C0kkie_vInact_curTarget getHitPointDamage 'HitEngine' > 0) then { [true, C0kkie_vInact_curTarget,'HitEngine'] spawn C0kkie_Repair_fnc_repairAction; } else { [C0kkie_vInact_curTarget, 'HitEngine'] spawn C0kkie_Repair_fnc_stealpart; };";           
  1100.         };
  1101.  
  1102.         class Truck8TireFrontLeftStatus0: Life_RscStructuredText
  1103.         {
  1104.             idc = -1;
  1105.             x = 0.372125 * safezoneW + safezoneX;
  1106.             y = 0.5726 * safezoneH + safezoneY;
  1107.             w = 0.0257812 * safezoneW;
  1108.             h = 0.022 * safezoneH;
  1109.  
  1110.             onLoad = "private _flDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _flDmg, '%']);";
  1111.         };
  1112.  
  1113.         class Truck8TireFrontLeftStatus1: Life_RscStructuredText
  1114.         {
  1115.             idc = -1;
  1116.             x = 0.423687 * safezoneW + safezoneX;
  1117.             y = 0.5726 * safezoneH + safezoneY;
  1118.             w = 0.0257812 * safezoneW;
  1119.             h = 0.022 * safezoneH;
  1120.  
  1121.             onLoad = "private _fl1Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLMWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fl1Dmg, '%']);";
  1122.         };
  1123.  
  1124.         class Truck8TireFrontLeftStatus2: Life_RscStructuredText
  1125.         {
  1126.             idc = -1;
  1127.             x = 0.572187 * safezoneW + safezoneX;
  1128.             y = 0.5726 * safezoneH + safezoneY;
  1129.             w = 0.0257812 * safezoneW;
  1130.             h = 0.022 * safezoneH;
  1131.  
  1132.             onLoad = "private _fl2Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fl2Dmg, '%']);";
  1133.         };
  1134.  
  1135.         class Truck8TireFrontLeftStatus3: Life_RscStructuredText
  1136.         {
  1137.             idc = -1;
  1138.             x = 0.62375 * safezoneW + safezoneX;
  1139.             y = 0.5726 * safezoneH + safezoneY;
  1140.             w = 0.0257812 * safezoneW;
  1141.             h = 0.022 * safezoneH;
  1142.  
  1143.             onLoad = "private _fl3Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitLBWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fl3Dmg, '%']);";
  1144.         };
  1145.  
  1146.         class Truck8TireFrontRightStatus0: Life_RscStructuredText
  1147.         {
  1148.             idc = -1;
  1149.             x = 0.371094 * safezoneW + safezoneX;
  1150.             y = 0.324 * safezoneH + safezoneY;
  1151.             w = 0.0257812 * safezoneW;
  1152.             h = 0.022 * safezoneH;
  1153.  
  1154.             onLoad = "private _frDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRFWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _frDmg, '%']);";
  1155.         };
  1156.  
  1157.         class Truck8TireFrontRightStatus1: Life_RscStructuredText
  1158.         {
  1159.             idc = -1;
  1160.             x = 0.422656 * safezoneW + safezoneX;
  1161.             y = 0.324 * safezoneH + safezoneY;
  1162.             w = 0.0257812 * safezoneW;
  1163.             h = 0.022 * safezoneH;
  1164.  
  1165.             onLoad = "private _fr1Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRMWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fr1Dmg, '%']);";
  1166.         };
  1167.  
  1168.         class Truck8TireFrontRightStatus2: Life_RscStructuredText
  1169.         {
  1170.             idc = -1;
  1171.             x = 0.572187 * safezoneW + safezoneX;
  1172.             y = 0.3174 * safezoneH + safezoneY;
  1173.             w = 0.0257812 * safezoneW;
  1174.             h = 0.022 * safezoneH;
  1175.  
  1176.             onLoad = "private _fr2Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRF2Wheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fr2Dmg, '%']);";
  1177.         };
  1178.  
  1179.         class Truck8TireFrontRightStatus3: Life_RscStructuredText
  1180.         {
  1181.             idc = -1;
  1182.             x = 0.62375 * safezoneW + safezoneX;
  1183.             y = 0.3174 * safezoneH + safezoneY;
  1184.             w = 0.0257812 * safezoneW;
  1185.             h = 0.022 * safezoneH;
  1186.  
  1187.             onLoad = "private _fr3Dmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitRBWheel') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _fr3Dmg, '%']);";
  1188.         };
  1189.  
  1190.         class Truck6EngineStatus: Life_RscStructuredText
  1191.         {
  1192.             idc = -1;
  1193.             x = 0.295812 * safezoneW + safezoneX;
  1194.             y = 0.4494 * safezoneH + safezoneY;
  1195.             w = 0.0257812 * safezoneW;
  1196.             h = 0.022 * safezoneH;
  1197.  
  1198.             onLoad = "private _engDmg  = 100 - (round ((C0kkie_vInact_curTarget getHitPointDamage 'HitEngine') * 100)); (_this select 0) ctrlSetStructuredText (text format ['%1%2', _engDmg, '%']);";
  1199.         };
  1200.     };
  1201. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top