UI.AddSubTab(["Config", "SUBTAB_MGR"], "kasha")
var screensize = Render.GetScreenSize();
var ixul = screensize[0] / 2;
var igrecul = screensize[1] / 2;
white = [255, 255, 255, 255];
gradwhite = [255, 255, 255, 150];
UI.AddColorPicker(["Config", "kasha", "kasha"], "Desync Color")
function desync2() {
localplayer_alive = Entity.IsAlive(Entity.GetLocalPlayer())
tColor = [255, 255, 255, 255]
frestnd = [157, 170, 245, 255]
r = [255, 255, 255, 255][0]
g = [255, 255, 255, 255][1]
b = [255, 255, 255, 255][2]
var fake = Local.GetFakeYaw();
var real = Local.GetRealYaw();
var delta = Math.min(Math.abs(real - fake) / 2, 60).toFixed(0);
iloveyou = Number(delta);
var col = UI.GetColor(["Config", "kasha", "kasha", "Desync Color"])
var font2 = Render.GetFont("VerdanaB.ttf", 9, true)
if (localplayer_alive) {
Render.String(ixul - 0, igrecul + 400, 10, delta, [col[0], col[1], col[2], col[3]], font2)
Render.GradientRect(ixul - 10, igrecul + 420, 10, 2, 1, [col[0], col[1], col[2], 255], [col[0], col[1], col[2], col[3]]);
Render.GradientRect(ixul, igrecul + 420, 10, 2, 1, [col[0], col[1], col[2], 255], [col[0], col[1], col[2], col[3]]);
Render.GradientRect(ixul + 10, igrecul + 420, (10 + iloveyou) * 0.65, 2, 1, [col[0], col[1], col[2], col[3]], [col[0], col[1], col[2], 0]);
Render.GradientRect(ixul - 8 - (10 + iloveyou) * 0.65, igrecul + 420, (10 + iloveyou) * 0.65, 2, 1, [col[0], col[1], col[2], 0], [col[0], col[1], col[2], col[3]]);
}
}
Cheat.RegisterCallback("Draw", "desync2")