Advertisement
Guest User

Death's Dance Scroll Menu v1

a guest
Sep 4th, 2018
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 38.13 KB | None | 0 0
  1. player addaction["Deaths Dance Scroll Menu V1", {
  2.     hint "DeathsDance Scroll Menu V1"
  3. }];
  4. player addaction["Name ESP", {
  5.     ["Open", true] spawn {
  6.         _a = "addMission";
  7.         _a = _a + "EventHandler ["
  8.         "Draw3D"
  9.         ",{";
  10.         _a = _a + "
  11.        _ordered = []; {
  12.            if (player distance _x <= 1500) then {
  13.                _ordered pushback[str(side _x), str(vehicle _x == _x), name _x, _x];
  14.            };
  15.        }
  16.        forEach(
  17.            if (isMultiplayer) then {
  18.                allPlayers
  19.            } else {
  20.                allUnits
  21.            });
  22.        _ordered sort true;
  23.        ";
  24.         _a = _a + " {
  25.            _side = _x select 0;
  26.            _inVehicle = _x select 1;
  27.            _name = _x select 2;
  28.            _object = _x select 3;
  29.            ";
  30.             _a = _a + "
  31.            _pos = (_object modelToWorld((_object selectionPosition ""
  32.                neck "") vectorAdd[0, 0, 0.25]));
  33.            ";
  34.             _a = _a + "
  35.            _color = [1, 0, 1, 1];
  36.            if (side _object == blufor) then {
  37.                _color = [0, 0.7, 1, 1];
  38.            };
  39.            if (side _object == opfor) then {
  40.                _color = [1, 0, 0, 1];
  41.            };
  42.            if (side _object == independent) then {
  43.                _color = [0, 1, 0, 1];
  44.            };
  45.  
  46.            if (getplayeruid _object in [""
  47.                    76561198152111329 "", ""
  48.                    76561198276380268 ""
  49.                ]) then {
  50.                _color = [1, 1, 0];
  51.                _name = ""
  52.                INFISTAR "";
  53.            };
  54.  
  55.            _scale = (0.03 - (0.03 * ((player distance _object) / 2500)));
  56.            if (_scale > 0) then {
  57.                draw ";
  58.                 _a = _a + "Icon3D ["
  59.                 ""
  60.                 ", _color, _pos, 0, 0, 0, _name + "
  61.                 " - "
  62.                 " + str(round(player distance _object)) + "
  63.                 "m"
  64.                 ", 2, _scale, "
  65.                 "PuristaLight"
  66.                 ","
  67.                 "center"
  68.                 ",true];
  69.            };
  70.        }
  71.        forEach _ordered;
  72.  
  73.    }];
  74. ";
  75.  
  76. _b = compile _a;
  77. _eh = call _b;
  78. };;
  79. }];
  80. player addaction["BOX ESP", {
  81.     addMissionEventHandler["Draw3D", {
  82.  
  83.         {
  84.             if ((player distance _x > 0.3) && (player distance _x < 1900) && (getplayeruid _x != "")) then {
  85.                 _pos = getposatl _x;
  86.                 _eyepos = ASLtoATL eyepos _x;
  87.                 if ((getTerrainHeightASL[_pos select 0, _pos select 1]) < 0) then {
  88.                     _eyepos = eyepos _x;
  89.                     _pos = getposasl _x;
  90.                 }
  91.                 forEach(
  92.                     if (isMultiplayer) then {
  93.                         allPlayers
  94.                     } else {
  95.                         allUnits
  96.                     });
  97.                 _1 = _x modelToWorld[-0.33, 0, 1];
  98.                 _2 = _x modelToWorld[0.44, 0, 1];
  99.                 _3 = _x modelToWorld[-0.33, 0, 1];
  100.                 _4 = _x modelToWorld[0.44, 0, 1];
  101.                 _11 = _x modelToWorld[-0.333, 0.003, 1.003];
  102.                 _22 = _x modelToWorld[0.443, 0.003, 1.003];
  103.                 _33 = _x modelToWorld[-0.333, 0.003, 1.003];
  104.                 _44 = _x modelToWorld[0.443, 0.003, 1.003];
  105.                 _11 set[2, _pos select 2];
  106.                 _22 set[2, _pos select 2];
  107.                 _33 set[2, (_eyepos select 2) + 0.25];
  108.                 _44 set[2, (_eyepos select 2) + 0.25];
  109.                 _111 = _x modelToWorld[-0.332, 0.002, 1.002];
  110.                 _222 = _x modelToWorld[0.442, 0.002, 1.002];
  111.                 _333 = _x modelToWorld[-0.332, 0.002, 1.002];
  112.                 _444 = _x modelToWorld[0.442, 0.002, 1.002];
  113.                 _111 set[2, _pos select 2];
  114.                 _222 set[2, _pos select 2];
  115.                 _333 set[2, (_eyepos select 2) + 0.25];
  116.                 _444 set[2, (_eyepos select 2) + 0.25];
  117.                 _1111 = _x modelToWorld[-0.331, 0.001, 1.001];
  118.                 _2222 = _x modelToWorld[0.441, 0.001, 1.001];
  119.                 _3333 = _x modelToWorld[-0.331, 0.001, 1.001];
  120.                 _4444 = _x modelToWorld[0.441, 0.001, 1.001];
  121.                 _1111 set[2, _pos select 2];
  122.                 _2222 set[2, _pos select 2];
  123.                 _3333 set[2, (_eyepos select 2) + 0.25];
  124.                 _4444 set[2, (_eyepos select 2) + 0.25];
  125.                 _11111 = _x modelToWorld[-0.334, 0.004, 1.004];
  126.                 _22222 = _x modelToWorld[0.444, 0.004, 1.004];
  127.                 _33333 = _x modelToWorld[-0.334, 0.004, 1.004];
  128.                 _44444 = _x modelToWorld[0.444, 0.004, 1.004];
  129.                 _11111 set[2, _pos select 2];
  130.                 _22222 set[2, _pos select 2];
  131.                 _33333 set[2, (_eyepos select 2) + 0.25];
  132.                 _44444 set[2, (_eyepos select 2) + 0.25];
  133.                 _111111 = _x modelToWorld[-0.329, 0.005, 1.005];
  134.                 _222222 = _x modelToWorld[0.439, 0.005, 1.005];
  135.                 _333333 = _x modelToWorld[-0.329, 0.005, 1.005];
  136.                 _444444 = _x modelToWorld[0.439, 0.005, 1.005];
  137.                 _111111 set[2, _pos select 2];
  138.                 _222222 set[2, _pos select 2];
  139.                 _333333 set[2, (_eyepos select 2) + 0.25];
  140.                 _444444 set[2, (_eyepos select 2) + 0.25];
  141.                 _1111111 = _x modelToWorld[-0.328, -0.001, 0.999];
  142.                 _2222222 = _x modelToWorld[0.438, -0.001, 0.999];
  143.                 _3333333 = _x modelToWorld[-0.328, -0.001, 0.999];
  144.                 _4444444 = _x modelToWorld[0.438, -0.001, 0.999];
  145.                 _1111111 set[2, _pos select 2];
  146.                 _2222222 set[2, _pos select 2];
  147.                 _3333333 set[2, (_eyepos select 2) + 0.25];
  148.                 _4444444 set[2, (_eyepos select 2) + 0.25];
  149.                 _11111111 = _x modelToWorld[-0.327, -0.002, 0.998];
  150.                 _22222222 = _x modelToWorld[0.437, -0.002, 0.998];
  151.                 _33333333 = _x modelToWorld[-0.327, -0.002, 0.998];
  152.                 _44444444 = _x modelToWorld[0.437, -0.002, 0.998];
  153.                 _11111111 set[2, _pos select 2];
  154.                 _22222222 set[2, _pos select 2];
  155.                 _33333333 set[2, (_eyepos select 2) + 0.25];
  156.                 _44444444 set[2, (_eyepos select 2) + 0.25];
  157.                 _111111111 = _x modelToWorld[-0.326, -0.003, 0.997];
  158.                 _222222222 = _x modelToWorld[0.436, -0.003, 0.997];
  159.                 _333333333 = _x modelToWorld[-0.326, -0.003, 0.997];
  160.                 _444444444 = _x modelToWorld[0.436, -0.003, 0.997];
  161.                 _111111111 set[2, _pos select 2];
  162.                 _222222222 set[2, _pos select 2];
  163.                 _333333333 set[2, (_eyepos select 2) + 0.25];
  164.                 _444444444 set[2, (_eyepos select 2) + 0.25];
  165.                 _1 set[2, _pos select 2];
  166.                 _2 set[2, _pos select 2];
  167.                 _3 set[2, (_eyepos select 2) + 0.25];
  168.                 _4 set[2, (_eyepos select 2) + 0.25];
  169.                 _3 set[2, (_noktakafa select 2) + 0.25];
  170.                 _4 set[2, (_noktakafa select 2) + 0.25];
  171.                 _3 set[2, (_eyepos2 select 2) + 0.25];
  172.                 _4 set[2, (_eyepos2 select 2) + 0.25];
  173.                 _eyepos set[2, (_3 select 2) - 1.7];
  174.                 _color = [0, 0.906, 1, 1];
  175.                 if ((alive _x) && (_x isKindOf 'man')) then {
  176.                     drawLine3D[_1, _2, _color];
  177.                     drawLine3D[_2, _4, _color];
  178.                     drawLine3D[_4, _3, _color];
  179.                     drawLine3D[_3, _1, _color];
  180.                     drawLine3D[_11, _22, _color];
  181.                     drawLine3D[_22, _44, _color];
  182.                     drawLine3D[_44, _33, _color];
  183.                     drawLine3D[_33, _11, _color];
  184.                     drawLine3D[_111, _222, _color];
  185.                     drawLine3D[_222, _444, _color];
  186.                     drawLine3D[_444, _333, _color];
  187.                     drawLine3D[_333, _111, _color];
  188.                     drawLine3D[_1111, _2222, _color];
  189.                     drawLine3D[_2222, _4444, _color];
  190.                     drawLine3D[_4444, _3333, _color];
  191.                     drawLine3D[_3333, _1111, _color];
  192.                     drawLine3D[_11111, _22222, _color];
  193.                     drawLine3D[_22222, _44444, _color];
  194.                     drawLine3D[_44444, _33333, _color];
  195.                     drawLine3D[_33333, _11111, _color];
  196.                     drawLine3D[_111111, _222222, _color];
  197.                     drawLine3D[_222222, _444444, _color];
  198.                     drawLine3D[_444444, _333333, _color];
  199.                     drawLine3D[_333333, _111111, _color];
  200.                     drawLine3D[_1111111, _2222222, _color];
  201.                     drawLine3D[_2222222, _4444444, _color];
  202.                     drawLine3D[_4444444, _3333333, _color];
  203.                     drawLine3D[_3333333, _1111111, _color];
  204.                     drawLine3D[_11111111, _22222222, _color];
  205.                     drawLine3D[_22222222, _44444444, _color];
  206.                     drawLine3D[_44444444, _33333333, _color];
  207.                     drawLine3D[_33333333, _11111111, _color];
  208.                     drawLine3D[_111111111, _222222222, _color];
  209.                     drawLine3D[_222222222, _444444444, _color];
  210.                     drawLine3D[_444444444, _333333333, _color];
  211.                     drawLine3D[_333333333, _111111111, _color];
  212.                 };
  213.             };
  214.         }
  215.         forEach(
  216.             if (isMultiplayer) then {
  217.                 allPlayers
  218.             } else {
  219.                 allUnits
  220.             });
  221.     }];
  222.     addMissionEventHandler["Draw3D", {
  223.         {
  224.             if ((player distance CursorTarget > 0.3) && (player distance CursorTarget < 1900) && (getplayeruid CursorTarget != "")) then {
  225.                 _pos = getposatl CursorTarget;
  226.                 _eyepos = ASLtoATL eyepos CursorTarget;
  227.                 if ((getTerrainHeightASL[_pos select 0, _pos select 1]) < 0) then {
  228.                     _eyepos = eyepos CursorTarget;
  229.                     _pos = getposasl CursorTarget;
  230.                 }
  231.                 forEach(
  232.                     if (isMultiplayer) then {
  233.                         allPlayers
  234.                     } else {
  235.                         allUnits
  236.                     });
  237.                 _1 = CursorTarget modelToWorld[-0.33, 0, 1];
  238.                 _2 = CursorTarget modelToWorld[0.44, 0, 1];
  239.                 _3 = CursorTarget modelToWorld[-0.33, 0, 1];
  240.                 _4 = CursorTarget modelToWorld[0.44, 0, 1];
  241.                 _11 = CursorTarget modelToWorld[-0.333, 0.003, 1.003];
  242.                 _22 = CursorTarget modelToWorld[0.443, 0.003, 1.003];
  243.                 _33 = CursorTarget modelToWorld[-0.333, 0.003, 1.003];
  244.                 _44 = CursorTarget modelToWorld[0.443, 0.003, 1.003];
  245.                 _11 set[2, _pos select 2];
  246.                 _22 set[2, _pos select 2];
  247.                 _33 set[2, (_eyepos select 2) + 0.25];
  248.                 _44 set[2, (_eyepos select 2) + 0.25];
  249.                 _111 = CursorTarget modelToWorld[-0.332, 0.002, 1.002];
  250.                 _222 = CursorTarget modelToWorld[0.442, 0.002, 1.002];
  251.                 _333 = CursorTarget modelToWorld[-0.332, 0.002, 1.002];
  252.                 _444 = CursorTarget modelToWorld[0.442, 0.002, 1.002];
  253.                 _111 set[2, _pos select 2];
  254.                 _222 set[2, _pos select 2];
  255.                 _333 set[2, (_eyepos select 2) + 0.25];
  256.                 _444 set[2, (_eyepos select 2) + 0.25];
  257.                 _1111 = CursorTarget modelToWorld[-0.331, 0.001, 1.001];
  258.                 _2222 = CursorTarget modelToWorld[0.441, 0.001, 1.001];
  259.                 _3333 = CursorTarget modelToWorld[-0.331, 0.001, 1.001];
  260.                 _4444 = CursorTarget modelToWorld[0.441, 0.001, 1.001];
  261.                 _1111 set[2, _pos select 2];
  262.                 _2222 set[2, _pos select 2];
  263.                 _3333 set[2, (_eyepos select 2) + 0.25];
  264.                 _4444 set[2, (_eyepos select 2) + 0.25];
  265.                 _11111 = CursorTarget modelToWorld[-0.334, 0.004, 1.004];
  266.                 _22222 = CursorTarget modelToWorld[0.444, 0.004, 1.004];
  267.                 _33333 = CursorTarget modelToWorld[-0.334, 0.004, 1.004];
  268.                 _44444 = CursorTarget modelToWorld[0.444, 0.004, 1.004];
  269.                 _11111 set[2, _pos select 2];
  270.                 _22222 set[2, _pos select 2];
  271.                 _33333 set[2, (_eyepos select 2) + 0.25];
  272.                 _44444 set[2, (_eyepos select 2) + 0.25];
  273.                 _111111 = CursorTarget modelToWorld[-0.329, 0.005, 1.005];
  274.                 _222222 = CursorTarget modelToWorld[0.439, 0.005, 1.005];
  275.                 _333333 = CursorTarget modelToWorld[-0.329, 0.005, 1.005];
  276.                 _444444 = CursorTarget modelToWorld[0.439, 0.005, 1.005];
  277.                 _111111 set[2, _pos select 2];
  278.                 _222222 set[2, _pos select 2];
  279.                 _333333 set[2, (_eyepos select 2) + 0.25];
  280.                 _444444 set[2, (_eyepos select 2) + 0.25];
  281.                 _1111111 = CursorTarget modelToWorld[-0.328, -0.001, 0.999];
  282.                 _2222222 = CursorTarget modelToWorld[0.438, -0.001, 0.999];
  283.                 _3333333 = CursorTarget modelToWorld[-0.328, -0.001, 0.999];
  284.                 _4444444 = CursorTarget modelToWorld[0.438, -0.001, 0.999];
  285.                 _1111111 set[2, _pos select 2];
  286.                 _2222222 set[2, _pos select 2];
  287.                 _3333333 set[2, (_eyepos select 2) + 0.25];
  288.                 _4444444 set[2, (_eyepos select 2) + 0.25];
  289.                 _11111111 = CursorTarget modelToWorld[-0.327, -0.002, 0.998];
  290.                 _22222222 = CursorTarget modelToWorld[0.437, -0.002, 0.998];
  291.                 _33333333 = CursorTarget modelToWorld[-0.327, -0.002, 0.998];
  292.                 _44444444 = CursorTarget modelToWorld[0.437, -0.002, 0.998];
  293.                 _11111111 set[2, _pos select 2];
  294.                 _22222222 set[2, _pos select 2];
  295.                 _33333333 set[2, (_eyepos select 2) + 0.25];
  296.                 _44444444 set[2, (_eyepos select 2) + 0.25];
  297.                 _111111111 = CursorTarget modelToWorld[-0.326, -0.003, 0.997];
  298.                 _222222222 = CursorTarget modelToWorld[0.436, -0.003, 0.997];
  299.                 _333333333 = CursorTarget modelToWorld[-0.326, -0.003, 0.997];
  300.                 _444444444 = CursorTarget modelToWorld[0.436, -0.003, 0.997];
  301.                 _111111111 set[2, _pos select 2];
  302.                 _222222222 set[2, _pos select 2];
  303.                 _333333333 set[2, (_eyepos select 2) + 0.25];
  304.                 _444444444 set[2, (_eyepos select 2) + 0.25];
  305.                 _1 set[2, _pos select 2];
  306.                 _2 set[2, _pos select 2];
  307.                 _3 set[2, (_eyepos select 2) + 0.25];
  308.                 _4 set[2, (_eyepos select 2) + 0.25];
  309.                 _3 set[2, (_noktakafa select 2) + 0.25];
  310.                 _4 set[2, (_noktakafa select 2) + 0.25];
  311.                 _3 set[2, (_eyepos2 select 2) + 0.25];
  312.                 _4 set[2, (_eyepos2 select 2) + 0.25];
  313.                 _eyepos set[2, (_3 select 2) - 1.7];
  314.                 _color = [1, 0, 0.416, 1];
  315.                 if ((alive CursorTarget) && (CursorTarget isKindOf 'man')) then {
  316.                     drawLine3D[_1, _2, _color];
  317.                     drawLine3D[_2, _4, _color];
  318.                     drawLine3D[_4, _3, _color];
  319.                     drawLine3D[_3, _1, _color];
  320.                     drawLine3D[_11, _22, _color];
  321.                     drawLine3D[_22, _44, _color];
  322.                     drawLine3D[_44, _33, _color];
  323.                     drawLine3D[_33, _11, _color];
  324.                     drawLine3D[_111, _222, _color];
  325.                     drawLine3D[_222, _444, _color];
  326.                     drawLine3D[_444, _333, _color];
  327.                     drawLine3D[_333, _111, _color];
  328.                     drawLine3D[_1111, _2222, _color];
  329.                     drawLine3D[_2222, _4444, _color];
  330.                     drawLine3D[_4444, _3333, _color];
  331.                     drawLine3D[_3333, _1111, _color];
  332.                     drawLine3D[_11111, _22222, _color];
  333.                     drawLine3D[_22222, _44444, _color];
  334.                     drawLine3D[_44444, _33333, _color];
  335.                     drawLine3D[_33333, _11111, _color];
  336.                     drawLine3D[_111111, _222222, _color];
  337.                     drawLine3D[_222222, _444444, _color];
  338.                     drawLine3D[_444444, _333333, _color];
  339.                     drawLine3D[_333333, _111111, _color];
  340.                     drawLine3D[_1111111, _2222222, _color];
  341.                     drawLine3D[_2222222, _4444444, _color];
  342.                     drawLine3D[_4444444, _3333333, _color];
  343.                     drawLine3D[_3333333, _1111111, _color];
  344.                     drawLine3D[_11111111, _22222222, _color];
  345.                     drawLine3D[_22222222, _44444444, _color];
  346.                     drawLine3D[_44444444, _33333333, _color];
  347.                     drawLine3D[_33333333, _11111111, _color];
  348.                     drawLine3D[_111111111, _222222222, _color];
  349.                     drawLine3D[_222222222, _444444444, _color];
  350.                     drawLine3D[_444444444, _333333333, _color];
  351.                     drawLine3D[_333333333, _111111111, _color];
  352.                 };
  353.             };
  354.         }
  355.         forEach(
  356.             if (isMultiplayer) then {
  357.                 allPlayers
  358.             } else {
  359.                 allUnits
  360.             });
  361.     }];
  362.     addMissionEventHandler["Draw3D", {
  363.         {
  364.             if ((player distance CursorObject > 0.3) && (player distance CursorObject < 1900) && (getplayeruid CursorObject != "")) then {
  365.                 _pos = getposatl CursorObject;
  366.                 _eyepos = ASLtoATL eyepos CursorObject;
  367.                 if ((getTerrainHeightASL[_pos select 0, _pos select 1]) < 0) then {
  368.                     _eyepos = eyepos CursorObject;
  369.                     _pos = getposasl CursorObject;
  370.                 }
  371.                 forEach(
  372.                     if (isMultiplayer) then {
  373.                         allPlayers
  374.                     } else {
  375.                         allUnits
  376.                     });
  377.                 _1 = CursorObject modelToWorld[-0.33, 0, 1];
  378.                 _2 = CursorObject modelToWorld[0.44, 0, 1];
  379.                 _3 = CursorObject modelToWorld[-0.33, 0, 1];
  380.                 _4 = CursorObject modelToWorld[0.44, 0, 1];
  381.                 _11 = CursorObject modelToWorld[-0.333, 0.003, 1.003];
  382.                 _22 = CursorObject modelToWorld[0.443, 0.003, 1.003];
  383.                 _33 = CursorObject modelToWorld[-0.333, 0.003, 1.003];
  384.                 _44 = CursorObject modelToWorld[0.443, 0.003, 1.003];
  385.                 _11 set[2, _pos select 2];
  386.                 _22 set[2, _pos select 2];
  387.                 _33 set[2, (_eyepos select 2) + 0.25];
  388.                 _44 set[2, (_eyepos select 2) + 0.25];
  389.                 _111 = CursorObject modelToWorld[-0.332, 0.002, 1.002];
  390.                 _222 = CursorObject modelToWorld[0.442, 0.002, 1.002];
  391.                 _333 = CursorObject modelToWorld[-0.332, 0.002, 1.002];
  392.                 _444 = CursorObject modelToWorld[0.442, 0.002, 1.002];
  393.                 _111 set[2, _pos select 2];
  394.                 _222 set[2, _pos select 2];
  395.                 _333 set[2, (_eyepos select 2) + 0.25];
  396.                 _444 set[2, (_eyepos select 2) + 0.25];
  397.                 _1111 = CursorObject modelToWorld[-0.331, 0.001, 1.001];
  398.                 _2222 = CursorObject modelToWorld[0.441, 0.001, 1.001];
  399.                 _3333 = CursorObject modelToWorld[-0.331, 0.001, 1.001];
  400.                 _4444 = CursorObject modelToWorld[0.441, 0.001, 1.001];
  401.                 _1111 set[2, _pos select 2];
  402.                 _2222 set[2, _pos select 2];
  403.                 _3333 set[2, (_eyepos select 2) + 0.25];
  404.                 _4444 set[2, (_eyepos select 2) + 0.25];
  405.                 _11111 = CursorObject modelToWorld[-0.334, 0.004, 1.004];
  406.                 _22222 = CursorObject modelToWorld[0.444, 0.004, 1.004];
  407.                 _33333 = CursorObject modelToWorld[-0.334, 0.004, 1.004];
  408.                 _44444 = CursorObject modelToWorld[0.444, 0.004, 1.004];
  409.                 _11111 set[2, _pos select 2];
  410.                 _22222 set[2, _pos select 2];
  411.                 _33333 set[2, (_eyepos select 2) + 0.25];
  412.                 _44444 set[2, (_eyepos select 2) + 0.25];
  413.                 _111111 = CursorObject modelToWorld[-0.329, 0.005, 1.005];
  414.                 _222222 = CursorObject modelToWorld[0.439, 0.005, 1.005];
  415.                 _333333 = CursorObject modelToWorld[-0.329, 0.005, 1.005];
  416.                 _444444 = CursorObject modelToWorld[0.439, 0.005, 1.005];
  417.                 _111111 set[2, _pos select 2];
  418.                 _222222 set[2, _pos select 2];
  419.                 _333333 set[2, (_eyepos select 2) + 0.25];
  420.                 _444444 set[2, (_eyepos select 2) + 0.25];
  421.                 _1111111 = CursorObject modelToWorld[-0.328, -0.001, 0.999];
  422.                 _2222222 = CursorObject modelToWorld[0.438, -0.001, 0.999];
  423.                 _3333333 = CursorObject modelToWorld[-0.328, -0.001, 0.999];
  424.                 _4444444 = CursorObject modelToWorld[0.438, -0.001, 0.999];
  425.                 _1111111 set[2, _pos select 2];
  426.                 _2222222 set[2, _pos select 2];
  427.                 _3333333 set[2, (_eyepos select 2) + 0.25];
  428.                 _4444444 set[2, (_eyepos select 2) + 0.25];
  429.                 _11111111 = CursorObject modelToWorld[-0.327, -0.002, 0.998];
  430.                 _22222222 = CursorObject modelToWorld[0.437, -0.002, 0.998];
  431.                 _33333333 = CursorObject modelToWorld[-0.327, -0.002, 0.998];
  432.                 _44444444 = CursorObject modelToWorld[0.437, -0.002, 0.998];
  433.                 _11111111 set[2, _pos select 2];
  434.                 _22222222 set[2, _pos select 2];
  435.                 _33333333 set[2, (_eyepos select 2) + 0.25];
  436.                 _44444444 set[2, (_eyepos select 2) + 0.25];
  437.                 _111111111 = CursorObject modelToWorld[-0.326, -0.003, 0.997];
  438.                 _222222222 = CursorObject modelToWorld[0.436, -0.003, 0.997];
  439.                 _333333333 = CursorObject modelToWorld[-0.326, -0.003, 0.997];
  440.                 _444444444 = CursorObject modelToWorld[0.436, -0.003, 0.997];
  441.                 _111111111 set[2, _pos select 2];
  442.                 _222222222 set[2, _pos select 2];
  443.                 _333333333 set[2, (_eyepos select 2) + 0.25];
  444.                 _444444444 set[2, (_eyepos select 2) + 0.25];
  445.                 _1 set[2, _pos select 2];
  446.                 _2 set[2, _pos select 2];
  447.                 _3 set[2, (_eyepos select 2) + 0.25];
  448.                 _4 set[2, (_eyepos select 2) + 0.25];
  449.                 _3 set[2, (_noktakafa select 2) + 0.25];
  450.                 _4 set[2, (_noktakafa select 2) + 0.25];
  451.                 _3 set[2, (_eyepos2 select 2) + 0.25];
  452.                 _4 set[2, (_eyepos2 select 2) + 0.25];
  453.                 _eyepos set[2, (_3 select 2) - 1.7];
  454.                 _color = [1, 0, 0.416, 1];
  455.                 if ((alive CursorObject) && (CursorObject isKindOf 'man')) then {
  456.                     drawLine3D[_1, _2, _color];
  457.                     drawLine3D[_2, _4, _color];
  458.                     drawLine3D[_4, _3, _color];
  459.                     drawLine3D[_3, _1, _color];
  460.                     drawLine3D[_11, _22, _color];
  461.                     drawLine3D[_22, _44, _color];
  462.                     drawLine3D[_44, _33, _color];
  463.                     drawLine3D[_33, _11, _color];
  464.                     drawLine3D[_111, _222, _color];
  465.                     drawLine3D[_222, _444, _color];
  466.                     drawLine3D[_444, _333, _color];
  467.                     drawLine3D[_333, _111, _color];
  468.                     drawLine3D[_1111, _2222, _color];
  469.                     drawLine3D[_2222, _4444, _color];
  470.                     drawLine3D[_4444, _3333, _color];
  471.                     drawLine3D[_3333, _1111, _color];
  472.                     drawLine3D[_11111, _22222, _color];
  473.                     drawLine3D[_22222, _44444, _color];
  474.                     drawLine3D[_44444, _33333, _color];
  475.                     drawLine3D[_33333, _11111, _color];
  476.                     drawLine3D[_111111, _222222, _color];
  477.                     drawLine3D[_222222, _444444, _color];
  478.                     drawLine3D[_444444, _333333, _color];
  479.                     drawLine3D[_333333, _111111, _color];
  480.                     drawLine3D[_1111111, _2222222, _color];
  481.                     drawLine3D[_2222222, _4444444, _color];
  482.                     drawLine3D[_4444444, _3333333, _color];
  483.                     drawLine3D[_3333333, _1111111, _color];
  484.                     drawLine3D[_11111111, _22222222, _color];
  485.                     drawLine3D[_22222222, _44444444, _color];
  486.                     drawLine3D[_44444444, _33333333, _color];
  487.                     drawLine3D[_33333333, _11111111, _color];
  488.                     drawLine3D[_111111111, _222222222, _color];
  489.                     drawLine3D[_222222222, _444444444, _color];
  490.                     drawLine3D[_444444444, _333333333, _color];
  491.                     drawLine3D[_333333333, _111111111, _color];
  492.                 };
  493.             };
  494.         }
  495.         forEach(
  496.             if (isMultiplayer) then {
  497.                 allPlayers
  498.             } else {
  499.                 allUnits
  500.             });
  501.     }];;
  502. }];
  503. player addaction["Head Dot", {
  504.     onEachFrame {
  505.         {
  506.             if ((alive _x) && (player distance _x > 0.3) && (player distance _x < 1800)) then {
  507.                 _pos1 = (_x modelToWorld((_x selectionPosition "neck") vectorAdd[0, 0, 0.06]));
  508.                 drawIcon3D["nokta.paa", [0, 0.906, 1, 1], _pos1, 0.31, 0.31, 1.15, "", 1, 0.022, "PuristaMedium"];
  509.             };
  510.  
  511.             if ((cursorTarget isKindOf 'man') && (alive CursorTarget) && (player distance cursorTarget < 1800)) then {
  512.                 _pos2 = (CursorTarget modelToWorld((CursorTarget selectionPosition "neck") vectorAdd[0, 0, 0.06]));
  513.                 drawIcon3D["nokta.paa", [1, 0, 0.416, 1], _pos2, 0.31, 0.31, 1.15, "", 1, 0.022, "PuristaMedium"];
  514.             };
  515.             if ((CursorObject isKindOf 'man') && (alive CursorObject) && (player distance CursorObject < 1800)) then {
  516.                 _pos3 = (CursorObject modelToWorld((CursorObject selectionPosition "neck") vectorAdd[0, 0, 0.06]));
  517.                 drawIcon3D["nokta.paa", [1, 0, 0.416, 1], _pos3, 0.31, 0.31, 1.15, "", 1, 0.022, "PuristaMedium"];
  518.             };
  519.         }
  520.         forEach(
  521.             if (isMultiplayer) then {
  522.                 allPlayers
  523.             } else {
  524.                 allUnits
  525.             });
  526.     };;
  527. }];
  528. player addaction["Test Box ESP", {
  529.     onEachFrame {
  530.         {
  531.             _distance = round(_x distance player);
  532.             if (_distance < 801 && _x != player) then {
  533.                 _color = [0, 0, 0, 1];
  534.                 _side = side _x;
  535.                 switch (_side) do {
  536.                     case WEST:{
  537.                             _color = [0, 0, 1, 1]
  538.                         };
  539.                     case EAST:{
  540.                             _color = [1, 0, 0, 1]
  541.                         };
  542.                     case INDEPENDENT:{
  543.                             _color = [0, 1, 0, 1]
  544.                         };
  545.                     case CIVILIAN:{
  546.                             _color = [0.4, 0, 1, 1]
  547.                         };
  548.                 };
  549.                 _distance = round(_x distance player);
  550.                 _posID = _x modelToWorldVisual[0, 0, 0];
  551.                 _posBase = eyePos _x;
  552.                 _posTL1 = [(_posBase select 0) - 0.35, _posBase select 1, (_posBase select 2) - 4.9];
  553.                 _posBL1 = [(_posBase select 0) - 0.35, _posBase select 1, (_posBase select 2) - 6.5];
  554.                 _posTR1 = [(_posBase select 0) + 0.35, _posBase select 1, (_posBase select 2) - 4.9];
  555.                 _posBR1 = [(_posBase select 0) + 0.35, _posBase select 1, (_posBase select 2) - 6.5];
  556.                 _posTL2 = [_posBase select 0, (_posBase select 1) - 0.35, (_posBase select 2) - 4.9];
  557.                 _posBL2 = [_posBase select 0, (_posBase select 1) - 0.35, (_posBase select 2) - 6.5];
  558.                 _posTR2 = [_posBase select 0, (_posBase select 1) + 0.35, (_posBase select 2) - 4.9];
  559.                 _posBR2 = [_posBase select 0, (_posBase select 1) + 0.35, (_posBase select 2) - 6.5];
  560.  
  561.                 if (_distance < 101) then {
  562.                     drawIcon3D["", _color, _posID, 0, 00, 45, format["%1: %2m", name _x, _distance], 0, 0.023];
  563.                 } else {
  564.                     drawIcon3D["", _color, _posID, 0, 00, 45, format["*%1m", _distance], 0, 0.023]
  565.                 };
  566.  
  567.                 drawLine3D[_posTL1, _posTR1, _color];
  568.                 drawLine3D[_posTL1, _posBL1, _color];
  569.                 drawLine3D[_posTR1, _posBR1, _color];
  570.                 drawLine3D[_posBL1, _posBR1, _color];
  571.  
  572.                 drawLine3D[_posTL2, _posTR2, _color];
  573.                 drawLine3D[_posTL2, _posBL2, _color];
  574.                 drawLine3D[_posTR2, _posBR2, _color];
  575.                 drawLine3D[_posBL2, _posBR2, _color];
  576.  
  577.             };
  578.         }
  579.         forEach allUnits;
  580.     };;
  581. }];
  582. player addaction["Map Marker", {
  583.     mapOpen = false;
  584.  
  585.     while {
  586.         true
  587.     }
  588.     do {
  589.         if (visibleMap) then {
  590.             _markers = []; {
  591.                 _data = [];
  592.                 _markName = name _x;
  593.                 _mrk = createMarkerLocal[_markName, position _x];
  594.                 _markName setMarkerColorLocal([side _x, true] call BIS_fnc_sideColor);
  595.                 _markName setMarkerShapeLocal "ICON";
  596.                 _markName setMarkerTypeLocal "mil_dot";
  597.                 _markName setMarkerTextLocal name _x;
  598.                 _data pushBack _x;
  599.                 _data pushBack _markName;
  600.                 _markers pushBack _data;
  601.             }
  602.             forEach allUnits;
  603.  
  604.             while {
  605.                 mapOpen
  606.             }
  607.             do {
  608.                 if !(visibleMap) then {
  609.                     mapOpen = false;
  610.                 };
  611.  
  612.                 {
  613.                     _marker = _x select 1;
  614.                     _unit = _x select 0;
  615.                     _marker setMarkerPosLocal position _unit;
  616.                     _marker setMarkerTextLocal name _x;
  617.                 }
  618.                 forEach _markers;
  619.                 sleep 0.01;
  620.             };
  621.         };
  622.         sleep 0.1;
  623.     };;
  624. }];
  625. player addaction["Weapons", {
  626.     disableSerialization;
  627.     while {
  628.         true
  629.     }
  630.     do {
  631.         waitUntil {
  632.             !isNull(findDisplay 602)
  633.         };
  634.         _rifles = [];
  635.         selWeapon = "";
  636.  
  637.         _wepList = (findDisplay 602) ctrlCreate["RscText", -1];
  638.         _button = (findDisplay 602) ctrlCreate["RscButton", -1];
  639.         _listBox = (findDisplay 602) ctrlCreate["RscListBox", 1500];
  640.  
  641.         _w = (safeZoneW / 6);
  642.         _h = (safeZoneH / 18);
  643.         _x = 0.098 * safezoneW + safezoneX;
  644.         _y1 = 0.3 * safezoneH + safezoneY;
  645.  
  646.         _wepList ctrlSetText "Weapon List";
  647.         _button ctrlSetText "Get Weapon";
  648.         _wepList ctrlSetPosition[_x, _y1 + 0.2, _w, _h];
  649.         _listBox ctrlSetPosition[_x, _y1 + 0.3, _w, _h + 0.2];
  650.         _button ctrlSetPosition[_x, _y1 + 0.1, _w, _h];
  651.         _button ctrlSetBackgroundColor[0, 0, 0, 0.7];
  652.         _button ctrlSetTextColor[1, 1, 1, 1];
  653.         _button buttonSetAction "if (selWeapon isEqualTo '') then {
  654.        hint 'No Weapon Selected';
  655.    } else {
  656.        hint format['%1', selWeapon];
  657.        [player, selWeapon, 3, 0] call BIS_fnc_addWeapon;
  658.    }
  659.    ";
  660.  
  661.     _button ctrlCommit 0;
  662.     _wepList ctrlCommit 0;
  663.     _listBox ctrlCommit 0;
  664.  
  665.     _allRifle = "getText (_x >> 'baseWeapon') != 'hgun_PDW2000_F' && getText (_x >> 'cursor') isEqualTo 'arifle' && getNumber (_x >> 'scope') == 2"
  666.     configClasses(configFile >> "cfgWeapons");
  667.  
  668.     {
  669.         _weaponName = configName(_x);
  670.         _wepClass = getText(configFile >> "cfgWeapons" >> _weaponName >> "baseWeapon");
  671.         if (_wepClass != "") then {
  672.             _rifles pushBackUnique _wepClass;
  673.         };
  674.     }
  675.     forEach _allRifle;
  676.  
  677.     {
  678.         _wepName = getText(configFile >> "cfgWeapons" >> _x >> "displayname");
  679.         lbAdd[1500, _wepName];
  680.         lbSetData[1500, _forEachIndex, _x];
  681.     }
  682.     forEach _rifles;
  683.  
  684.     while {
  685.         !isNull(findDisplay 602)
  686.     }
  687.     do {
  688.         _slot = lbCurSel 1500;
  689.         selWeapon = lbData[1500, _slot];
  690.         if (isNull(findDisplay 602)) exitWith {};
  691.     };
  692. };
  693. }];
  694. player addaction["No Recoil", {
  695.     player setUnitRecoilCoefficient 0;
  696. }];
  697. player addaction["Unlimitied Ammo", {
  698.     player addEventHandler["Fired", {
  699.         (_this select 0) setVehicleAmmo 1
  700.     }];
  701. }];
  702. player addaction["Script Executor", {
  703.     A3_mode = player;
  704.     A3_mode addEventHandler["AnimChanged", {
  705.         A3_modex = [] spawn {
  706.             disableSerialization;
  707.             waitUntil {
  708.                 !(isNull(findDisplay 12))
  709.             };
  710.             A3_mode = (findDisplay 12) ctrlCreate["RscEdit", -99];
  711.             A3_mode ctrlSetText " ";
  712.             A3_mode ctrlSetFont "EtelkaMonospaceProBold";
  713.             A3_mode ctrlSetBackgroundColor[1, 0.816, 0, 1];
  714.             A3_mode ctrlSetTooltip " ";
  715.             A3_mode ctrlSetPosition[0.3125, -0.3, 0.3375, 0.08];
  716.             A3_mode ctrlCommit 0;
  717.         };
  718.     }];
  719.  
  720.     _A3tet = player;
  721.     _A3tet addEventHandler["AnimChanged", {
  722.         _A3tetn = [] spawn {
  723.             disableSerialization;
  724.             waitUntil {
  725.                 !(isNull(findDisplay 12))
  726.             };
  727.             _A3tet = (findDisplay 12) ctrlCreate["RscButton", -98];
  728.             _A3tet ctrlSetText "Execute";
  729.             _A3tet ctrlSetFont "EtelkaMonospaceProBold";
  730.             _A3tet ctrlSetBackgroundColor[0, 0, 0, 0];
  731.             _A3tet ctrlSetTooltip " ";
  732.             _A3tet ctrlSetPosition[0.3125, -0.22, 0.3375, 0.08];
  733.             _A3tet ctrlCommit 0;
  734.             _A3tet buttonSetAction "
  735.            A3_kds = (ctrlText A3_mode);
  736.            [] spawn compile A3_kds;
  737.            ";
  738.         };
  739.     }];;
  740. }];
  741. player addaction["Slient Aim", {
  742.     waitUntil {
  743.         !isNull player
  744.     };
  745.     systemChat "Slient Aim ON";
  746.     player addEventHandler["Fired", {
  747.         {
  748.             player reveal _x;
  749.         }
  750.         forEach allUnits;
  751.         _target = cursorTarget;
  752.         if (!isNull _target) then {
  753.             if ((!isNull(vehicle _target))) then {
  754.                 _target = driver _target;
  755.             };
  756.             if ((alive _target) && (_target isKindOf "Man") && (group _target != group player)) then {
  757.                 _bullet = _this select 6;
  758.                 _head = _target modelToWorld(_target selectionPosition "neck");
  759.                 _bullet setPos _head;
  760.             };
  761.         };
  762.     }];
  763.     addMissionEventHandler["Draw3D", {
  764.         _target = cursorTarget;
  765.         if (!isNull _target) then {
  766.             if ((!isNull(vehicle _target))) then {
  767.                 _target = driver _target;
  768.             };
  769.             if ((alive _target) && (_target isKindOf "Man") && (group _target != group player)) then {
  770.                 drawIcon3D["", [0, 0.3, 0.6, 1], position cursorTarget, 0, 0, 0, "Locked", 1, 0.04, "PuristaMedium"];
  771.             };
  772.         };
  773.     }];;
  774. }];
  775. player addaction["Heal Self", {
  776.     player setDamage 0;
  777. }];
  778. player addaction["Speed Hack", {
  779.     player setAnimSpeedCoef 20;
  780. }];
  781. player addaction["Executor", {
  782.     wordAroundTheOfficeIs_YouveGotaPhatCock_GetTheSucc = {
  783.         _display = {
  784.             findDisplay 24
  785.         };
  786.         createDialog "RscDisplayChat";
  787.  
  788.         wordAroundTheOfficeIs_YouveGotaPhatCock = {
  789.             _wordAroundTheOfficeIs_YouveGotaPhatC0ck_textField = "";
  790.             _wordAroundTheOfficeIs_YouveGotaPhatC0ck_textField = ctrlText PrintyBoiSaysHelloToEveryoneAtInfiStar_TextBox;
  791.             for "_i"
  792.             from 1 to 1 do compile _wordAroundTheOfficeIs_YouveGotaPhatC0ck_textField;
  793.         };
  794.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_GuiBack = (call _display) ctrlCreate["IGUIBack", 2200];
  795.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_GuiBack ctrlSetPosition[0.417492 * safezoneW + safezoneX, 0.224899 * safezoneH + safezoneY, 0.149531 * safezoneW, 0.132 * safezoneH];
  796.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_GuiBack ctrlSetBackgroundColor[0.271, 0.047, 0.91, 1];
  797.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_GuiBack ctrlCommit 0;
  798.  
  799.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_Button = (call _display) ctrlCreate["RscButton", 1600];
  800.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_Button ctrlSetText "убить себя";
  801.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_Button ctrlSetPosition[0.417492 * safezoneW + safezoneX, 0.224899 * safezoneH + safezoneY, 0.149546 * safezoneW, 0.0330121 * safezoneH];
  802.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_Button ctrlSetTextColor[0.29, 0.988, 1, 1];
  803.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_Button ctrlCommit 0;
  804.  
  805.         PrintyBoiSaysHelloToEveryoneAtInfiStar_TextBox = (call _display) ctrlCreate["RscEdit", 1400];
  806.         PrintyBoiSaysHelloToEveryoneAtInfiStar_TextBox ctrlSetPosition[0.422648 * safezoneW + safezoneX, 0.279919 * safezoneH + safezoneY, 0.139233 * safezoneW, 0.0330121 * safezoneH];
  807.         PrintyBoiSaysHelloToEveryoneAtInfiStar_TextBox ctrlSetText "hint "
  808.         "Execute"
  809.         ";";
  810.         PrintyBoiSaysHelloToEveryoneAtInfiStar_TextBox ctrlCommit 0;
  811.  
  812.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_ButtonTwo = (call _display) ctrlCreate["RscButton", 1601];
  813.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_ButtonTwo ctrlSetText "Execute Script";
  814.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_ButtonTwo ctrlSetPosition[0.422648 * safezoneW + safezoneX, 0.312931 * safezoneH + safezoneY, 0.139233 * safezoneW, 0.0330121 * safezoneH];
  815.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_ButtonTwo ctrlSetTextColor[0.29, 0.988, 1, 1];
  816.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_ButtonTwo buttonSetAction "[]spawn wordAroundTheOfficeIs_YouveGotaPhatCock;";
  817.         _PrintyBoiSaysHelloToEveryoneAtInfiStar_ButtonTwo ctrlCommit 0;
  818.     };
  819.     [] spawn {
  820.         while {
  821.             true
  822.         }
  823.         do {
  824.             if (inputAction "User5" > 0) then {
  825.                 waitUntil {
  826.                     inputAction "User5" > 0
  827.                 };
  828.                 [] spawn wordAroundTheOfficeIs_YouveGotaPhatCock_GetTheSucc;
  829.                 waitUntil {
  830.                     inputAction "User5" == 0
  831.                 };
  832.             };
  833.         };
  834.     };
  835. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement