/*
name: Acatel indicators
author: Klient#1690
version: 2.0.0
*/
var outline_string = function(x, y, alignid, text, color, font) {Render.String(x - 1, y - 1, alignid, text, [0, 0, 0, color[3]], font);Render.String(x - 1, y, alignid, text, [0, 0, 0, color[3]], font);Render.String(x - 1, y + 1, alignid, text, [0, 0, 0, color[3]], font);Render.String(x, y + 1, alignid, text, [0, 0, 0, color[3]], font);Render.String(x, y - 1, alignid, text, [0, 0, 0, color[3]], font);Render.String(x + 1, y - 1, alignid, text, [0, 0, 0, color[3]], font);Render.String(x + 1, y, alignid, text, [0, 0, 0, color[3]], font);Render.String(x + 1, y + 1, alignid, text, [0, 0, 0, color[3]], font);Render.String(x, y, alignid, text, color, font);}
var menu_path = ["Visuals", "Acatel indicator", "Acatel indicator"]
UI.AddSubTab(["Visuals", "SUBTAB_MGR"], "Acatel indicator")
var active = UI.AddCheckbox(menu_path, "Enable Acatel indicator")
var active_beta = UI.AddCheckbox(menu_path, "Enable Acatel indicator beta")
var color_picker = UI.AddColorPicker(menu_path, "Acatel indicator color picker"); UI.SetColor(color_picker, [142, 165, 229, 55])
var ms_classes = {
"indicator": {
g_paint_handler: function() {
if (Entity.GetLocalPlayer() == null || !Entity.IsAlive(Entity.GetLocalPlayer())) return
if (!UI.GetValue(active)) return
var checkonshot = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"]); var checkdt = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"])
var safepoint = UI.GetValue(["Rage", "General", "General", "Key assignment", "Force safe point"]); var baim = UI.GetValue(["Rage", "General", "General", "Key assignment", "Force body aim"])
var small = Render.GetFont("smallest_pixel-7.ttf", 9, true)
var bodyyaw = Local.GetRealYaw() - Local.GetFakeYaw()
var cn = 1
var sx = Render.GetScreenSize()[0]; var sy = Render.GetScreenSize()[1]
var r = UI.GetColor(color_picker)[0]; var g = UI.GetColor(color_picker)[1]; var b = UI.GetColor(color_picker)[2]; var a = 255
var alpha = Math.sin(Math.abs((Math.PI * -1) + (Globals.Curtime() * 1.5) % (Math.PI * 2))) * 255
outline_string(sx/2, sy/2 + 20, 0, "ACATEL", [255, 255, 255, 255], small)
outline_string(sx/2 + Render.TextSize("ACATEL", small)[0]+2, sy/2 + 20, 0, UI.GetValue(active_beta) ? "BETA" : "", [r, g, b, alpha], small); cn+=1
outline_string(sx/2, (sy/2 + 18) + 5 * cn, 0, "FAKE YAW:", [r, g, b, 255], small)
outline_string(sx/2 + Render.TextSize("FAKE YAW:", small)[0]+2, (sy/2 + 18) + 5 * cn, 0, bodyyaw < 0 ? "L" : "R", [255, 255, 255, 255], small); cn+=1
outline_string(sx/2, (sy/2 + 21) + 5 * cn, 0, "DT", checkdt ? [170, 235, 140, 255] : [255, 255, 255, 100], small)
outline_string(sx/2 + 11, (sy/2 + 21) + 5 * cn, 0, "OS", checkonshot ? [170, 235, 140, 255] : [255, 255, 255, 100], small)
outline_string(sx/2 + 23, (sy/2 + 21) + 5 * cn, 0, "SP", safepoint ? [170, 235, 140, 255] : [255, 255, 255, 100], small)
outline_string(sx/2 + 35, (sy/2 + 21) + 5 * cn, 0, "BA", baim ? [170, 235, 140, 255] : [255, 255, 255, 100], small)
}
}
}
var callbacks = {
g_paint_handler: function() {
ms_classes.indicator.g_paint_handler()
}
}
Cheat.RegisterCallback("Draw", "callbacks.g_paint_handler")