Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // made by NoVon << aka a normal guy
- UI.AddSubTab(["Config", "SUBTAB_MGR"], "Visuals")
- UI.AddCheckbox(["Config", "Visuals", "Visuals"], "Indicators");
- UI.AddColorPicker(["Config", "Visuals", "Visuals"], "Primary Color");
- UI.AddColorPicker(["Config", "Visuals", "Visuals"], "Secondary Color");
- UI.AddHotkey(["Config", "Scripts", "JS Keybinds"], "Minimum damage override", "Mindamage");
- UI.AddHotkey(["Config", "Scripts", "JS Keybinds"], "Freestanding", "Freestanding");
- UI.AddSliderInt(["Config", "Visuals", "Visuals"], "Offset X", 0, Global.GetScreenSize()[0]);
- UI.AddSliderInt(["Config", "Visuals", "Visuals"], "Offset Y", 0, Global.GetScreenSize()[1]);
- function in_bounds(vector, x, y, x2, y2) {
- return(vector[0] > x) && (vector[1] > y) && (vector[0] < x2) && (vector[1] < y2)
- }
- function hotkeylist() {
- isdt = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"]);
- sdt = UI.GetHotkeyState(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"]);
- isduck = UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"]);
- sduck = UI.GetHotkeyState(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"]);
- ishideshot = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"]);
- shideshot = UI.GetHotkeyState(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"]);
- ismin = UI.GetValue(["Config", "Scripts", "JS Keybinds", "Minimum damage override"]);
- smin = UI.GetHotkeyState(["Config", "Scripts", "JS Keybinds", "Minimum damage override"]);
- isinv = UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "AA direction inverter"]);
- sinv = UI.GetHotkeyState(["Rage", "Anti Aim", "General", "Key assignment", "AA direction inverter"]);
- isfree = UI.GetValue(["Config", "Scripts", "JS Keybinds", "Freestanding"]);
- sfree = UI.GetHotkeyState(["Config", "Scripts", "JS Keybinds", "Freestanding"]);
- ispeek = UI.GetValue(["Misc.", "Keys", "Key assignment", "Auto peek"]);
- speek = UI.GetHotkeyState(["Misc.", "Keys", "Key assignment", "Auto peek"]);
- isfb = UI.GetValue(["Rage", "General", "Key assignment", "Force body aim"]);
- sfb = UI.GetHotkeyState(["Rage", "General", "Key assignment", "Force body aim"]);
- isfs = UI.GetValue(["Rage", "General", "Key assignment", "Force safe point"]);
- sfs = UI.GetHotkeyState(["Rage", "General", "Key assignment", "Force safe point"]);
- }
- function indicatorsbox() {
- if(!UI.GetValue(["Config", "Visuals", "Visuals", "Indicators"])) return;
- const local = Entity.GetLocalPlayer();
- if (Entity.IsAlive(local)) {
- var c = UI.GetColor(["Config", "Visuals", "Visuals", "Primary Color"]);
- var cc = UI.GetColor(["Config", "Visuals", "Visuals", "Secondary Color"]);
- var amount = Globals.ChokedCommands().toString()
- var get = Math.min(Math.abs(Local.GetRealYaw() - Local.GetFakeYaw()) / 1, 119)
- var yaw = Math.round(get).toString()
- var recharge = Exploit.GetCharge();
- var yaww = Math.abs(recharge).toFixed(2).toString()
- var amountt = Math.abs(amount).toFixed().toString()
- var font = Render.GetFont("MODENINE.TTF", 13.5, true);
- const offsetX = UI.GetValue(["Config", "Visuals", "Visuals", "Offset X"]), offsetY = UI.GetValue(["Config", "Visuals", "Visuals", "Offset Y"])
- hotkeylist();
- Render.FilledRect(offsetX, offsetY + -10, 240, 20, [25, 25, 25, 255]);
- Render.FilledRect(offsetX, offsetY + 10, 240, 172, [20, 20, 20, 255]);
- Render.FilledRect(offsetX + 62, offsetY + 61, 130, 9, [29, 29, 29, 255])
- Render.FilledRect(offsetX + 62, offsetY + 43, 130, 9, [29, 29, 29, 255])
- Render.FilledRect(offsetX + 62, offsetY + 22, 130, 9, [29, 29, 29, 255])
- Render.FilledRect(offsetX + -1, offsetY + -10, 1, 192, [cc[0], cc[1], cc[2], cc[3]])
- Render.FilledRect(offsetX + 240, offsetY + -10, 1, 192, [cc[0], cc[1], cc[2], cc[3]])
- 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]]);
- 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]]);
- 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]]);
- 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]]);
- 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]]);
- 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]]);
- 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]]);
- 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]]);
- Render.String(offsetX + 200, offsetY + 19, 0, yaw, [255, 255, 255, 255], font);
- Render.String(offsetX + 200, offsetY + 38, 0, amountt, [255, 255, 255, 255], font);
- Render.String(offsetX + 200, offsetY + 57, 0, yaww, [255, 255, 255, 255], font);
- Render.String(offsetX + 75, offsetY + -6, 0, "{2time zone}", [255, 255, 255, 255], font);
- Render.String(offsetX + 8, offsetY + 19, 0, "Desync", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 19, 0, "Desync", [255, 255, 255, 255], font);
- Render.String(offsetX + 8, offsetY + 38, 0, "Choke", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 38, 0, "Choke",[255, 255, 255, 255], font);
- Render.String(offsetX + 8, offsetY + 57, 0, "Charge", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 57, 0, "Charge", [255, 255, 255, 255], font);
- Render.String(offsetX + 8, offsetY + 85, 0, "Double Tap", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 85, 0, "Double Tap", [255, 255, 255, 255], font);
- if(isdt == 1) {
- if(sdt == "Always") {
- Render.String(offsetX + 153, offsetY + 85, 0, "{Always}", [0, 0, 0, 255], font);
- Render.String(offsetX + 154, offsetY + 85, 0, "{Always}", [c[0], c[1], c[2], 255], font);
- }
- if(sdt == "Toggle") {
- Render.String(offsetX + 161, offsetY + 85, 0, "{Toggle}", [0, 0, 0, 255], font);
- Render.String(offsetX + 162, offsetY + 85, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
- }
- if(sdt == "Hold") {
- Render.String(offsetX + 168, offsetY + 85, 0, "{Hold}", [0, 0, 0, 255], font);
- Render.String(offsetX + 169, offsetY + 85, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
- }
- }else{
- Render.String(offsetX + 153, offsetY + 85, 0, "{Disabled}", [0, 0, 0, 255], font);
- Render.String(offsetX + 154, offsetY + 85, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
- }
- Render.String(offsetX + 8, offsetY + 104, 0, "Hide Shots", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 104, 0, "Hide Shots", [255, 255, 255, 255], font);
- if(ishideshot == 1) {
- if(shideshot == "Always") {
- Render.String(offsetX + 153, offsetY + 104, 0, "{Always}", [0, 0, 0, 255], font);
- Render.String(offsetX + 154, offsetY + 104, 0, "{Always}", [c[0], c[1], c[2], 255], font);
- }
- if(shideshot == "Toggle") {
- Render.String(offsetX + 161, offsetY + 104, 0, "{Toggle}", [0, 0, 0, 255], font);
- Render.String(offsetX + 162, offsetY + 104, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
- }
- if(shideshot == "Hold") {
- Render.String(offsetX + 168, offsetY + 104, 0, "{Hold}", [0, 0, 0, 255], font);
- Render.String(offsetX + 169, offsetY + 104, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
- }
- }else{
- Render.String(offsetX + 153, offsetY + 104, 0, "{Disabled}", [0, 0, 0, 255], font);
- Render.String(offsetX + 154, offsetY + 104, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
- }
- Render.String(offsetX + 8, offsetY + 123, 0, "Fake Duck", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 123, 0, "Fake Duck", [255, 255, 255, 255], font);
- if(isduck == 1) {
- if(sduck == "Always") {
- Render.String(offsetX + 154, offsetY + 123, 0, "{Always}", [0, 0, 0, 255], font);
- Render.String(offsetX + 153, offsetY + 123, 0, "{Always}", [c[0], c[1], c[2], 255], font);
- }
- if(sduck == "Toggle") {
- Render.String(offsetX + 161, offsetY + 123, 0, "{Toggle}", [0, 0, 0, 255], font);
- Render.String(offsetX + 162, offsetY + 123, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
- }
- if(sduck == "Hold") {
- Render.String(offsetX + 168, offsetY + 123, 0, "{Hold}", [0, 0, 0, 255], font);
- Render.String(offsetX + 169, offsetY + 123, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
- }
- }else{
- Render.String(offsetX + 154, offsetY + 123, 0, "{Disabled}", [0, 0, 0, 255], font);
- Render.String(offsetX + 153, offsetY + 123, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
- }
- Render.String(offsetX + 4, offsetY + 141, 0, "Inverter", [0, 0, 0, 255], font);
- Render.String(offsetX + 5, offsetY + 141, 0, "Inverter", [255, 255, 255, 255], font);
- if(isinv == 1) {
- if(sinv == "Always") {
- Render.String(offsetX + 154, offsetY + 141, 0, "{Always}", [0, 0, 0, 255], font);
- Render.String(offsetX + 153, offsetY + 141, 0, "{Always}", [c[0], c[1], c[2], 255], font);
- }
- if(sinv == "Toggle") {
- Render.String(offsetX + 161, offsetY + 141, 0, "{Toggle}", [0, 0, 0, 255], font);
- Render.String(offsetX + 162, offsetY + 141, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
- }
- if(sinv == "Hold") {
- Render.String(offsetX + 168, offsetY + 141, 0, "{Hold}", [0, 0, 0, 255], font);
- Render.String(offsetX + 169, offsetY + 141, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
- }
- }else{
- Render.String(offsetX + 154, offsetY + 141, 0, "{Disabled}", [0, 0, 0, 255], font);
- Render.String(offsetX + 153, offsetY + 141, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
- }
- Render.String(offsetX + 8, offsetY + 161, 0, "Min Damage", [0, 0, 0, 255], font);
- Render.String(offsetX + 7, offsetY + 161, 0, "Min Damage", [255, 255, 255, 255], font);
- if(ismin == 1) {
- if(smin == "Always") {
- Render.String(offsetX + 154, offsetY + 161, 0, "{Always}", [0, 0, 0, 255], font);
- Render.String(offsetX + 153, offsetY + 161, 0, "{Always}", [c[0], c[1], c[2], 255], font);
- }
- if(smin == "Toggle") {
- Render.String(offsetX + 161, offsetY + 161, 0, "{Toggle}", [0, 0, 0, 255], font);
- Render.String(offsetX + 162, offsetY + 161, 0, "{Toggle}", [c[0], c[1], c[2], 255], font);
- }
- if(smin == "Hold") {
- Render.String(offsetX + 168, offsetY + 161, 0, "{Hold}", [0, 0, 0, 255], font);
- Render.String(offsetX + 169, offsetY + 161, 0, "{Hold}", [c[0], c[1], c[2], 255], font);
- }
- }else{
- Render.String(offsetX + 154, offsetY + 161, 0, "{Disabled}", [0, 0, 0, 255], font);
- Render.String(offsetX + 153, offsetY + 161, 0, "{Disabled}", [c[0], c[1], c[2], 255], font);
- }
- 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]);
- 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]);
- 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]);
- if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
- const mouse_pos = Input.GetCursorPosition();
- if (in_bounds(mouse_pos, offsetX, offsetY - 15, offsetX + 240, offsetY + 10)) {
- UI.SetValue(["Config", "Visuals", "Visuals", "Offset X"], mouse_pos[0] - 220 / 2);
- UI.SetValue(["Config", "Visuals", "Visuals", "Offset Y"], mouse_pos[1]);
- }
- }
- }
- }
- Cheat.RegisterCallback("Draw", "indicatorsbox");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement