JavaScript:
UI.AddCheckbox("Ideal yaw")
UI.AddSliderInt("Y Adding", 5, 75);
var screen_size = Global.GetScreenSize();
var add_y = 0
function ideal(){
if(UI.GetValue("Script items", "Ideal yaw")){
real_yaw = Local.GetRealYaw();
fake_yaw = Local.GetFakeYaw();
delta = Math.min(Math.abs(real_yaw - fake_yaw) /2, 60).toFixed(0);
font = Render.AddFont("Tahoma", 7, 500);
add_y = UI.GetValue("Script items", "Y Adding")
if(Entity.IsAlive(Entity.GetLocalPlayer())){
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "IDEAL YAW", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "IDEAL YAW", delta < 24 ? [220, 0, 29, 200] : [220, 135, 49, 255], font);
if(UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction")) {
add_y = add_y + 10
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "FREESTAND", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "FREESTAND", [209, 159, 230, 255], font);
} else {
add_y = add_y + 10
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "DYNAMIC", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "DYNAMIC", [209, 159, 230, 255], font);
}
if(UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
add_y = add_y + 10
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "DT", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "DT", Exploit.GetCharge() == 1 ? [25, 255, 25, 255] : [255, 0, 0, 255], font);
}
if(UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots")) {
add_y = add_y + 10
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "AA", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "AA", [255, 255, 255, 255], font);
}
if(UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Damage override key")) {
add_y = add_y + 10
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "DMG", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "DMG", [200, 185, 255, 255], font);
}
if(UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
add_y = add_y + 10
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y + 1, 0, "BODY", [0, 0, 0, 255], font);
Render.StringCustom(screen_size[0] / 2 + 2, screen_size[1] / 2 + add_y, 0, "BODY", [9, 228, 155, 255], font);
}
}
}
}
Cheat.RegisterCallback("Draw", "ideal")