Advertisement
Mister_Stefan

Box Indicators (OT)

Mar 20th, 2022
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // made by NoVon << aka a normal guy
  2. UI.AddSubTab(["Config", "SUBTAB_MGR"], "Visuals")
  3. UI.AddCheckbox(["Config", "Visuals", "Visuals"], "Indicators");
  4. UI.AddColorPicker(["Config", "Visuals", "Visuals"], "Primary Color");
  5. UI.AddColorPicker(["Config", "Visuals", "Visuals"], "Secondary Color");
  6. UI.AddHotkey(["Config", "Scripts", "JS Keybinds"], "Minimum damage override", "Mindamage");
  7. UI.AddHotkey(["Config", "Scripts", "JS Keybinds"], "Freestanding", "Freestanding");
  8. UI.AddSliderInt(["Config", "Visuals", "Visuals"], "Offset X", 0, Global.GetScreenSize()[0]);
  9. UI.AddSliderInt(["Config", "Visuals", "Visuals"], "Offset Y", 0, Global.GetScreenSize()[1]);
  10.  
  11.  
  12. function in_bounds(vector, x, y, x2, y2) {
  13.     return(vector[0] > x) && (vector[1] > y) && (vector[0] < x2) && (vector[1] < y2)
  14. }
  15.  
  16. function hotkeylist() {
  17.     isdt = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"]);
  18.     sdt = UI.GetHotkeyState(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"]);
  19.     isduck = UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"]);
  20.     sduck = UI.GetHotkeyState(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"]);
  21.     ishideshot = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"]);
  22.     shideshot = UI.GetHotkeyState(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"]);
  23.     ismin = UI.GetValue(["Config", "Scripts", "JS Keybinds", "Minimum damage override"]);
  24.     smin = UI.GetHotkeyState(["Config", "Scripts", "JS Keybinds", "Minimum damage override"]);
  25.     isinv = UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "AA direction inverter"]);
  26.     sinv = UI.GetHotkeyState(["Rage", "Anti Aim", "General", "Key assignment", "AA direction inverter"]);
  27.     isfree = UI.GetValue(["Config", "Scripts", "JS Keybinds", "Freestanding"]);
  28.     sfree = UI.GetHotkeyState(["Config", "Scripts", "JS Keybinds", "Freestanding"]);
  29.     ispeek = UI.GetValue(["Misc.", "Keys", "Key assignment", "Auto peek"]);
  30.     speek = UI.GetHotkeyState(["Misc.", "Keys", "Key assignment", "Auto peek"]);
  31.     isfb = UI.GetValue(["Rage", "General", "Key assignment", "Force body aim"]);
  32.     sfb = UI.GetHotkeyState(["Rage", "General", "Key assignment", "Force body aim"]);
  33.     isfs = UI.GetValue(["Rage", "General", "Key assignment", "Force safe point"]);
  34.     sfs = UI.GetHotkeyState(["Rage", "General", "Key assignment", "Force safe point"]);
  35. }
  36.  
  37. function indicatorsbox() {
  38.     if(!UI.GetValue(["Config", "Visuals", "Visuals", "Indicators"])) return;
  39.     const local = Entity.GetLocalPlayer();
  40.     if (Entity.IsAlive(local)) {
  41.     var c = UI.GetColor(["Config", "Visuals", "Visuals", "Primary Color"]);
  42.     var cc = UI.GetColor(["Config", "Visuals", "Visuals", "Secondary Color"]);
  43.     var amount = Globals.ChokedCommands().toString()
  44.     var get = Math.min(Math.abs(Local.GetRealYaw() - Local.GetFakeYaw()) / 1, 119)
  45.     var yaw = Math.round(get).toString()
  46.     var recharge = Exploit.GetCharge();
  47.     var yaww = Math.abs(recharge).toFixed(2).toString()
  48.     var amountt = Math.abs(amount).toFixed().toString()
  49.     var font = Render.GetFont("MODENINE.TTF", 13.5, true);
  50.     const offsetX = UI.GetValue(["Config", "Visuals", "Visuals", "Offset X"]), offsetY = UI.GetValue(["Config", "Visuals", "Visuals", "Offset Y"])
  51.     hotkeylist();
  52.  
  53.     Render.FilledRect(offsetX, offsetY + -10, 240, 20, [25, 25, 25, 255]);
  54.     Render.FilledRect(offsetX, offsetY + 10, 240, 172, [20, 20, 20, 255]);
  55.  
  56.     Render.FilledRect(offsetX + 62, offsetY + 61, 130, 9, [29, 29, 29, 255])
  57.     Render.FilledRect(offsetX + 62, offsetY + 43, 130, 9, [29, 29, 29, 255])
  58.     Render.FilledRect(offsetX + 62, offsetY + 22, 130, 9, [29, 29, 29, 255])
  59.  
  60.     Render.FilledRect(offsetX + -1, offsetY + -10, 1, 192, [cc[0], cc[1], cc[2], cc[3]])
  61.     Render.FilledRect(offsetX + 240, offsetY + -10, 1, 192, [cc[0], cc[1], cc[2], cc[3]])
  62.  
  63.     Render.GradientRect(offsetX + 0, offsetY + -10, 120, 1, 1, [cc[0], cc[1], cc[2], cc[3]], [c[0], c[1], c[2], c[3]]);
  64.     Render.GradientRect(offsetX + 120, offsetY + -10, 120, 1, 1, [c[0], c[1], c[2], c[3]], [cc[0], cc[1], cc[2], cc[3]]);
  65.  
  66.     Render.GradientRect(offsetX + 0, offsetY + 10, 120, 1, 1, [cc[0], cc[1], cc[2], cc[3]], [c[0], c[1], c[2], c[3]]);
  67.     Render.GradientRect(offsetX + 120, offsetY + 10, 120, 1, 1, [c[0], c[1], c[2], c[3]], [cc[0], cc[1], cc[2], cc[3]]);
  68.  
  69.     Render.GradientRect(offsetX + 0, offsetY + 77, 120, 1, 1, [cc[0], cc[1], cc[2], cc[3]], [c[0], c[1], c[2], c[3]]);
  70.     Render.GradientRect(offsetX + 120, offsetY + 77, 120, 1, 1, [c[0], c[1], c[2], c[3]], [cc[0], cc[1], cc[2], cc[3]]);
  71.  
  72.     Render.GradientRect(offsetX + 0, offsetY + 181, 120, 1, 1, [cc[0], cc[1], cc[2], cc[3]], [c[0], c[1], c[2], c[3]]);
  73.     Render.GradientRect(offsetX + 120, offsetY + 181, 120, 1, 1, [c[0], c[1], c[2], c[3]], [cc[0], cc[1], cc[2], cc[3]]);
  74.  
  75.  
  76.     Render.String(offsetX + 200, offsetY + 19, 0, yaw, [255, 255, 255, 255], font);
  77.     Render.String(offsetX + 200, offsetY + 38, 0, amountt, [255, 255, 255, 255], font);
  78.     Render.String(offsetX + 200, offsetY + 57, 0, yaww, [255, 255, 255, 255], font);
  79.  
  80.     Render.String(offsetX + 75, offsetY + -6, 0, "{2time zone}", [255, 255, 255, 255], font);
  81.  
  82.     Render.String(offsetX + 8, offsetY + 19, 0, "Desync", [0, 0, 0, 255], font);
  83.     Render.String(offsetX + 7, offsetY + 19, 0, "Desync", [255, 255, 255, 255], font);
  84.  
  85.     Render.String(offsetX + 8, offsetY + 38, 0, "Choke", [0, 0, 0, 255], font);
  86.     Render.String(offsetX + 7, offsetY + 38, 0, "Choke",[255, 255, 255, 255], font);
  87.  
  88.     Render.String(offsetX + 8, offsetY + 57, 0, "Charge", [0, 0, 0, 255], font);
  89.     Render.String(offsetX + 7, offsetY + 57, 0, "Charge", [255, 255, 255, 255], font);
  90.  
  91.     Render.String(offsetX + 8, offsetY + 85, 0, "Double Tap", [0, 0, 0, 255], font);
  92.     Render.String(offsetX + 7, offsetY + 85, 0, "Double Tap", [255, 255, 255, 255], font);
  93.  
  94.     if(isdt == 1) {
  95.         if(sdt == "Always") {
  96.             Render.String(offsetX + 153, offsetY + 85, 0, "{Always}", [0, 0, 0, 255], font);
  97.             Render.String(offsetX + 154, offsetY + 85, 0, "{Always}", [c[0], c[1], c[2], 255], font);
  98.         }
  99.         if(sdt == "Toggle") {
  100.             Render.String(offsetX + 161, offsetY + 85, 0, "{Toggle}", [0, 0, 0, 255], font);
  101.             Render.String(offsetX + 162, offsetY + 85, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
  102.         }
  103.         if(sdt == "Hold") {
  104.             Render.String(offsetX + 168, offsetY + 85, 0, "{Hold}", [0, 0, 0, 255], font);
  105.             Render.String(offsetX + 169, offsetY + 85, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
  106.         }
  107.     }else{
  108.         Render.String(offsetX + 153, offsetY + 85, 0, "{Disabled}", [0, 0, 0, 255], font);
  109.         Render.String(offsetX + 154, offsetY + 85, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
  110.     }
  111.  
  112.     Render.String(offsetX + 8, offsetY + 104, 0, "Hide Shots", [0, 0, 0, 255], font);
  113.     Render.String(offsetX + 7, offsetY + 104, 0, "Hide Shots", [255, 255, 255, 255], font);
  114.     if(ishideshot == 1) {
  115.         if(shideshot == "Always") {
  116.             Render.String(offsetX + 153, offsetY + 104, 0, "{Always}", [0, 0, 0, 255], font);
  117.             Render.String(offsetX + 154, offsetY + 104, 0, "{Always}", [c[0], c[1], c[2], 255], font);
  118.         }
  119.         if(shideshot == "Toggle") {
  120.             Render.String(offsetX + 161, offsetY + 104, 0, "{Toggle}", [0, 0, 0, 255], font);
  121.             Render.String(offsetX + 162, offsetY + 104, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
  122.         }
  123.         if(shideshot == "Hold") {
  124.             Render.String(offsetX + 168, offsetY + 104, 0, "{Hold}", [0, 0, 0, 255], font);
  125.             Render.String(offsetX + 169, offsetY + 104, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
  126.         }
  127.     }else{
  128.         Render.String(offsetX + 153, offsetY + 104, 0, "{Disabled}", [0, 0, 0, 255], font);
  129.         Render.String(offsetX + 154, offsetY + 104, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
  130.     }
  131.  
  132.     Render.String(offsetX + 8, offsetY + 123, 0, "Fake Duck", [0, 0, 0, 255], font);
  133.     Render.String(offsetX + 7, offsetY + 123, 0, "Fake Duck", [255, 255, 255, 255], font);
  134.     if(isduck == 1) {
  135.         if(sduck == "Always") {
  136.             Render.String(offsetX + 154, offsetY + 123, 0, "{Always}", [0, 0, 0, 255], font);
  137.             Render.String(offsetX + 153, offsetY + 123, 0, "{Always}", [c[0], c[1], c[2], 255], font);
  138.         }
  139.         if(sduck == "Toggle") {
  140.             Render.String(offsetX + 161, offsetY + 123, 0, "{Toggle}", [0, 0, 0, 255], font);
  141.             Render.String(offsetX + 162, offsetY + 123, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
  142.         }
  143.         if(sduck == "Hold") {
  144.             Render.String(offsetX + 168, offsetY + 123, 0, "{Hold}", [0, 0, 0, 255], font);
  145.             Render.String(offsetX + 169, offsetY + 123, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
  146.         }
  147.     }else{
  148.         Render.String(offsetX + 154, offsetY + 123, 0, "{Disabled}", [0, 0, 0, 255], font);
  149.         Render.String(offsetX + 153, offsetY + 123, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
  150.     }
  151.  
  152.     Render.String(offsetX + 4, offsetY + 141, 0, "Inverter", [0, 0, 0, 255], font);
  153.     Render.String(offsetX + 5, offsetY + 141, 0, "Inverter", [255, 255, 255, 255], font);
  154.     if(isinv == 1) {
  155.         if(sinv == "Always") {
  156.             Render.String(offsetX + 154, offsetY + 141, 0, "{Always}", [0, 0, 0, 255], font);
  157.             Render.String(offsetX + 153, offsetY + 141, 0, "{Always}", [c[0], c[1], c[2], 255], font);
  158.         }
  159.         if(sinv == "Toggle") {
  160.             Render.String(offsetX + 161, offsetY + 141, 0, "{Toggle}", [0, 0, 0, 255], font);
  161.             Render.String(offsetX + 162, offsetY + 141, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
  162.         }
  163.         if(sinv == "Hold") {
  164.             Render.String(offsetX + 168, offsetY + 141, 0, "{Hold}", [0, 0, 0, 255], font);
  165.             Render.String(offsetX + 169, offsetY + 141, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
  166.         }
  167.     }else{
  168.         Render.String(offsetX + 154, offsetY + 141, 0, "{Disabled}", [0, 0, 0, 255], font);
  169.         Render.String(offsetX + 153, offsetY + 141, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
  170.     }
  171.  
  172.     Render.String(offsetX + 8, offsetY + 161, 0, "Min Damage", [0, 0, 0, 255], font);
  173.     Render.String(offsetX + 7, offsetY + 161, 0, "Min Damage", [255, 255, 255, 255], font);
  174.     if(ismin == 1) {
  175.         if(smin == "Always") {
  176.             Render.String(offsetX + 154, offsetY + 161, 0, "{Always}", [0, 0, 0, 255], font);
  177.             Render.String(offsetX + 153, offsetY + 161, 0, "{Always}", [c[0], c[1], c[2], 255], font);
  178.         }
  179.         if(smin == "Toggle") {
  180.             Render.String(offsetX + 161, offsetY + 161, 0, "{Toggle}", [0, 0, 0, 255], font);
  181.             Render.String(offsetX + 162, offsetY + 161, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
  182.         }
  183.         if(smin == "Hold") {
  184.             Render.String(offsetX + 168, offsetY + 161, 0, "{Hold}", [0, 0, 0, 255], font);
  185.             Render.String(offsetX + 169, offsetY + 161, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
  186.         }
  187.     }else{
  188.         Render.String(offsetX + 154, offsetY + 161, 0, "{Disabled}", [0, 0, 0, 255], font);
  189.         Render.String(offsetX + 153, offsetY + 161, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
  190.     }
  191.  
  192.     Render.GradientRect(offsetX + 64, offsetY + 45, amount / 13 * 117, 5, 1, [c[0], c[1], c[2], 255], [cc[0], cc[1], cc[2], 255]);
  193.     Render.GradientRect(offsetX + 64, offsetY + 24, yaw / 66 * 70, 5, 1, [c[0], c[1], c[2], 255], [cc[0], cc[1], cc[2], 255]);
  194.     Render.GradientRect(offsetX + 64, offsetY + 63, recharge / 16 * 2030, 5, 1, [c[0], c[1], c[2], 255], [cc[0], cc[1], cc[2], 255]);
  195.  
  196.     if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
  197.     const mouse_pos = Input.GetCursorPosition();
  198.     if (in_bounds(mouse_pos, offsetX, offsetY - 15, offsetX + 240, offsetY + 10)) {
  199.     UI.SetValue(["Config", "Visuals", "Visuals", "Offset X"], mouse_pos[0] - 220 / 2);
  200.     UI.SetValue(["Config", "Visuals", "Visuals", "Offset Y"], mouse_pos[1]);
  201.     }
  202. }
  203. }
  204. }
  205. Cheat.RegisterCallback("Draw", "indicatorsbox");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement