Cheat.PrintColor([199, 193, 255, 255], " ▄████▄▓██   ██▓ ▄▄▄▄   ▓█████  ██▀███    ██████▓██   ██▓ ███▄    █  ▄████▄  " + "\n")
Cheat.PrintColor([199, 193, 255, 255], "▒██▀ ▀█ ▒██  ██▒▓█████▄ ▓█   ▀ ▓██ ▒ ██▒▒██    ▒ ▒██  ██▒ ██ ▀█   █ ▒██▀ ▀█  " + "\n")
Cheat.PrintColor([199, 193, 255, 255], "▒▓█    ▄ ▒██ ██░▒██▒ ▄██▒███   ▓██ ░▄█ ▒░ ▓██▄    ▒██ ██░▓██  ▀█ ██▒▒▓█    ▄ " + "\n")
Cheat.PrintColor([199, 193, 255, 255], "▒▓▓▄ ▄██▒░ ▐██▓░▒██░█▀  ▒▓█  ▄ ▒██▀▀█▄    ▒   ██▒ ░ ▐██▓░▓██▒  ▐▌██▒▒▓▓▄ ▄██▒" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "▒ ▓███▀ ░░ ██▒▓░░▓█  ▀█▓░▒████▒░██▓ ▒██▒▒██████▒▒ ░ ██▒▓░▒██░   ▓██░▒ ▓███▀ ░" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "░ ░▒ ▒  ░ ██▒▒▒ ░▒▓███▀▒░░ ▒░ ░░ ▒▓ ░▒▓░▒ ▒▓▒ ▒ ░  ██▒▒▒ ░ ▒░   ▒ ▒ ░ ░▒ ▒  ░" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "  ░  ▒  ▓██ ░▒░ ▒░▒   ░  ░ ░  ░  ░▒ ░ ▒░░ ░▒  ░ ░▓██ ░▒░ ░ ░░   ░ ▒░  ░  ▒   " + "\n")
Cheat.PrintColor([199, 193, 255, 255], "░       ▒ ▒ ░░   ░    ░    ░     ░░   ░ ░  ░  ░  ▒ ▒ ░░     ░   ░ ░ ░        " + "\n")
Cheat.PrintColor([199, 193, 255, 255], "░ ░     ░ ░      ░         ░  ░   ░           ░  ░ ░              ░ ░ ░      " + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                                 ███" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                              ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                            ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                          ██████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                        ██████    ███  ███████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "               █████████████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                 ████████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                    █████████████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                ███████████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "               ███   █████████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "            █████  ███████████  ███████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "           ███████████████ ██    █████████████  █████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "       ██████████████████   █     █████████████   ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "     ███████████████████         ███████████████    ███" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "    ████████                     ████████████████     ██" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "     █████                     ██████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "       █                   ███████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "             █████████████████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "               ████████████████████████████  █████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "           ██████████████████████████████    █████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "        ████████████████████████████████      ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "      ███████████████████████████████         ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "    ███████████████████████████████           ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "   ███████████████████   ██████               ███" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "  ████████████████                            ██" + "\n")
Cheat.PrintColor([199, 193, 255, 255], " ███████████████                 ██" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "███████████████                     ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "██████████ ███                        █████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "██████████  ██                          ███████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "███████████   █            ███     ████   ███████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "████████████                 ███     ██████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "███████████████              ████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "█ █████████████████         ███████████████████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "██  ████████████         ████████████████   ████████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], " █  ██████████████████████████████████           ████████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "    █████████████████████████████████              ██████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "    █████ ██████████████████  ████████              █████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "     ███     █████████████     ██████████              ██" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "    ███        ███ █████████     █████                 ██" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "    ███               ███████       ████████            █" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "     ██                   █████                         █" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "      █                    ████" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                            ███" + "\n")
Cheat.PrintColor([199, 193, 255, 255], "                             ██" + "\n")
username = Cheat.GetUsername();
Cheat.PrintColor([145, 197, 56, 255], "Welcome, " + username + "! your current version is: v 1.8 " + "\n");
Cheat.PrintColor([145, 197, 56, 255], "[CURRENT UPDATE]" + "\n");
Cheat.PrintColor([199, 193, 255, 255], "$ - [Improve] Fl indicator" + "\n");
Cheat.PrintColor([199, 193, 255, 255], "$ - [Add] Jumpscout" + "\n");
Cheat.PrintColor([199, 193, 255, 255], "$ - [Add] Clantag" + "\n");
Cheat.PrintColor([199, 193, 255, 255], "$ - [Add] Adtalk" + "\n");

var lasttime = 0;
function onRender( )
{
var tag = UI.GetValue("Script items", "Clantag");
var speed = 4.5;
var time = parseInt((Globals.Curtime() * speed))
if (time != lasttime)
{
if(tag == 0) { Local.SetClanTag(""); }
if (tag == 1) {
switch ((time) % 14) {
case 00:{ Local.SetClanTag("$ _____"); break; }
case 01:{ Local.SetClanTag("$ c____"); break; }
case 02:{ Local.SetClanTag("$ cy___"); break; }
case 03:{ Local.SetClanTag("$ cyb__"); break; }
case 04:{ Local.SetClanTag("$ cybe_"); break; }
case 05:{ Local.SetClanTag("$ cyber"); break; }
case 06:{ Local.SetClanTag("$ $$$$$"); break; }
case 07:{ Local.SetClanTag("$ ____");  break; }
case 08:{ Local.SetClanTag("$ s___");  break; }
case 09:{ Local.SetClanTag("$ sy__");  break; }
case 10:{ Local.SetClanTag("$ syn_");  break; }
case 12:{ Local.SetClanTag("$ sync");  break; }
case 13:{ Local.SetClanTag("$ $$$$");  break; } 
}
}
}
lasttime = time;
}

function get_metric_distance(a, b){
    return Math.floor(Math.sqrt(Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2) + Math.pow(a[2] - b[2], 2)) * 0.0254);
}

function canShoot(player){
    var index = Entity.GetWeapon(player)
    var classid = Entity.GetClassID(index);
    
    var weapon =  classid == 107 || classid == 108 || classid == 96 || classid == 99 || classid ==112 || classid == 155 || classid == 47;//checking if the selected weapon is knife or nade
    var clip = Entity.GetProp(index, "DT_BaseCombatWeapon", "m_iClip1");
    var getbuttons = Entity.GetProp(index,'CBasePlayer', 'm_fFlags');
    if(weapon || clip == 0 || getbuttons & 1 << 1 )
        return false;
    return true;
}

function closestTarget(){
    var enemies = Entity.GetEnemies();
    var dists = [];
    var damage = [];
    for(e in enemies) {
        if(!Entity.IsAlive(enemies[e]) || Entity.IsDormant(enemies[e]) || !Entity.IsValid(enemies[e])) continue;
        dists.push([enemies[e], calcDist(Entity.GetHitboxPosition(Entity.GetLocalPlayer(), 0), Entity.GetHitboxPosition(enemies[e], 0))]);
    }
    dists.sort(function(a, b)
    {
        return a[1] - b[1];
    });
    if(dists.length == 0 || dists == []) return target = -1; 
    return dists[0][0];
}

// clean dist func, thanks rzr
function calcDist(a, b){
    var x = a[0] - b[0];
    var y = a[1] - b[1];
    var z = a[2] - b[2];
    return Math.sqrt(x * x + y * y + z * z);
}

var noscope_target = -1;
var noscope_dist = {
	"ssg 08": 4,
    "awp": 4,
	"scar 20": 7,
	"g3sg1" : 7
};
var stop_attack2 = false;
function autoscope(){
    var auto_scope = false;
    var is_scoped = Entity.GetProp(local, "CCSPlayer", "m_bIsScoped");
    named = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
	if(stop_attack2){
		stop_attack2 = false;
		Cheat.ExecuteCommand("-attack2");
	}
	local = Entity.GetLocalPlayer();
	if(UI.GetValue("Adaptive Autoscope")){
		if((named !== "awp" && named !== "ssg 08" && named !== "scar 20" && named !== "g3sg1")){
			UI.SetValue("Rage", "GENERAL", "General", "Auto scope", true);
    	    return;
		};
		if(!Ragebot.GetTarget())
    	    noscope_target = closestTarget();
    	else
    	    noscope_target = Ragebot.GetTarget();
    	if(!Entity.IsAlive(noscope_target)){
    	    UI.SetValue("Rage", "GENERAL", "General", "Auto scope", true);
    	    return;
    	}
    	if(get_metric_distance(Entity.GetRenderOrigin(local), Entity.GetRenderOrigin(noscope_target)) < noscope_dist[named]){
    	    UI.SetValue("Rage", "GENERAL", "General", "Auto scope", false);
    	}
    	else{
    	    UI.SetValue("Rage", "GENERAL", "General", "Auto scope", true);
    	}
	}
    if(!is_scoped && auto_scope && !stop_attack2 && canShoot(local)){
        Cheat.ExecuteCommand("+attack2");
        stop_attack2 = true;
    }
}

function AdaptiveSilent()
{
if(!UI.GetValue("Script Items", "Adaptive Silent")) return;
    ply = Entity.GetLocalPlayer();
    ply_wep = Entity.GetWeapon(ply);

    var nextattack = Entity.GetProp(ply_wep, "CBaseCombatWeapon", "m_flNextPrimaryAttack");
    var Can = false;

    if (nextattack <= Globals.Curtime()) {
        Can = true;
    }
    
    if (Can)
    {
        var AdaptiveSilent = UI.GetValue("Rage", "GENERAL", "General", "Silent") ? UI.SetValue("Rage", "GENERAL", "General", "Silent", 0) : UI.SetValue("Rage", "GENERAL", "General", "Silent", 1)
    }
}

var r8 = true
function revolverfakelag(){
named = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
    if(UI.GetValue("Script items", "Revolver FL fix")) {
        if(named == "r8 revolver") {
            if(r8){
            flcache = UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled")
            r8 = false;
            }
            UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", false)
        }
    else{
        if(!r8){
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", flcache)
        r8 = true;
        }
        }
    }
}

var freestandin = true
function freekey(){
    if (UI.IsHotkeyActive("Script items", "Freestanding")) {
        if(freestandin){
            freecache = UI.GetValue("Anti-Aim", "Auto direction")
            freestandin = false;
        }
        UI.SetValue("Anti-Aim", "Auto direction", true)
    } else {
        if (!freestandin) {
            UI.SetValue("Anti-Aim", "Auto direction", freecache)
            freestandin = true;
        }
    }
}

var ahc = true
function airhit() {
    sov = UI.GetValue("Script items", "Jump scout hitchance")
    rov = UI.GetValue("Script items", "Jump revolver hitchance")
    local = Entity.GetLocalPlayer()
    var inAir = Entity.GetProp(local, 'CBasePlayer', 'm_hGroundEntity')
    if(!UI.GetValue("Script items", "Jumpscout/r8")) return;
        if(inAir =='m_hGroundEntity'){
            if(ahc){
            rcac = UI.GetValue("Rage", "HEAVY PISTOL", "Hitchance")
            scac = UI.GetValue("Rage", "SCOUT", "Hitchance")
            ahc = false;
            }
            if(isHeavyPistol(name)){
            UI.SetValue("Rage", "HEAVY PISTOL", "Hitchance", rov) }
            if(name == "ssg 08"){
            UI.SetValue("Rage", "SCOUT", "Hitchance", sov)}
        }
        else { if (!ahc) { UI.SetValue("Rage", "SCOUT", "Hitchance", scac), UI.SetValue("Rage", "HEAVY PISTOL", "Hitchance", rcac), ahc = true; }}
}

var air = true
function airtar() {
    local = Entity.GetLocalPlayer()
    var inAir = Entity.GetProp(local, 'CBasePlayer', 'm_hGroundEntity')
  if(!UI.GetValue("Script items", "At targets in air")) return;
    if (inAir =='m_hGroundEntity'){
        if(air){
        aircache = UI.GetValue("Anti-Aim", "At targets")
        air = false;
        }
        UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'At targets', true)}
    else { if (!air) { UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'At targets', aircache), air = true; }}
}

var original_aa = true

function manual_aa() {
    if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "right")) {
        if (original_aa) {
            yaw_offset_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
            original_aa = false;
        }
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 90);
    } else if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "left")) {
        if (original_aa) {
            yaw_offset_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
            original_aa = false;
        }
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", -90);
    } else {
        if (!original_aa) {
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_offset_cache);
            original_aa = true;
        }
    }
}

var aad = true

function legit_aa() {
    if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Legit AA")) {
        if (aad) {
            restrictions_cache = UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions");
            hiderealangle_cache = UI.GetValue("Anti-Aim", "Fake angles", "Hide real angle");
            yaw_offset_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
            jitter_offset_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
            pitch_cache = UI.GetValue("Anti-Aim", "Extra", "Pitch");
            desync_cache = UI.GetValue("Anti-Aim", "Fake angles", "LBY mode")
            aad = false;
        }
        UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", 0);
        UI.SetValue("Anti-Aim", "Fake angles", "Hide real angle", true);
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 0);
        UI.SetValue("Anti-Aim", "Extra", "Pitch", 0);
        UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 1)
    } else {
        if (!aad) {
            UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", restrictions_cache);
            UI.SetValue("Anti-Aim", "Fake angles", "Hide real angle", hiderealangle_cache);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_offset_cache);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset_cache);
            UI.SetValue("Anti-Aim", "Extra", "Pitch", pitch_cache);
            UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", desync_cache)
            aad = true;
        }
    }
}

function helper() {
    if (UI.GetValue("Script items", "Dtpeek teleport helper", true)) {
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek") && UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
            if (tphelp) {
                autostopmodescout = UI.GetValue("Rage", "SCOUT", "Accuracy", "Auto stop mode");
                autostopmodeawp = UI.GetValue("Rage", "AWP", "Accuracy", "Auto stop mode");
                safepointscout = UI.GetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point");
                safepointawp = UI.GetValue("Rage", "AWP", "Accuracy", "Prefer safe point");
                bodyaimscout = UI.GetValue("Rage", "SCOUT", "Accuracy", "Prefer body aim");
                bodyaimawp = UI.GetValue("Rage", "AWP", "Accuracy", "Prefer body aim");
                freestand = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction");
                tphelp = false
            }
            UI.SetValue("Rage", "SCOUT", "Accuracy", "Auto stop mode", false);
            UI.SetValue("Rage", "AWP", "Accuracy", "Auto stop mode", false);
            UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point", true);
            UI.SetValue("Rage", "AWP", "Accuracy", "Prefer safe point", true);
            UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer body aim", true);
            UI.SetValue("Rage", "AWP", "Accuracy", "Prefer body aim", true);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", true);
        } else {
            if (!tphelp) {
                UI.SetValue("Rage", "SCOUT", "Accuracy", "Auto stop mode", autostopmodescout);
                UI.SetValue("Rage", "AWP", "Accuracy", "Auto stop mode", autostopmodeawp);
                UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point", safepointscout);
                UI.SetValue("Rage", "AWP", "Accuracy", "Prefer safe point", safepointawp);
                UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer body aim", bodyaimscout);
                UI.SetValue("Rage", "AWP", "Accuracy", "Prefer body aim", bodyaimawp);
                UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", freestand);
                tphelp = true
            }
        }
        if (UI.GetValue("Script items", "Accuracy peek", true)) {
            if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek") && !UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
                if (accpeek) {
                    safepointscout = UI.GetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point");
                    safepointawp = UI.GetValue("Rage", "AWP", "Accuracy", "Prefer safe point");
                    bodyaimscout = UI.GetValue("Rage", "SCOUT", "Accuracy", "Prefer body aim");
                    bodyaimawp = UI.GetValue("Rage", "AWP", "Accuracy", "Prefer body aim");
                    accpeek = false
                }
                UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point", true);
                UI.SetValue("Rage", "AWP", "Accuracy", "Prefer safe point", true);
                UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer body aim", true);
                UI.SetValue("Rage", "AWP", "Accuracy", "Prefer body aim", true);
            } else {
                if (!accpeek) {
                    UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point", safepointscout);
                    UI.SetValue("Rage", "AWP", "Accuracy", "Prefer safe point", safepointawp);
                    UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer body aim", bodyaimscout);
                    UI.SetValue("Rage", "AWP", "Accuracy", "Prefer body aim", bodyaimawp);
                    accpeek = true
                }
            }
        }
    }
}

tphelp = true
accpeek = true

var dmgov = true

function isPistol(name) {
    if (name == "p2000" || name == "glock 18" || name == "dual berettas" || name == "usp s" || name == "five seven" || name == "p250" || name == "tec 9") {
        return true
    }
}

function isHeavyPistol(name) {
    if (name == "r8 revolver" || name == "desert eagle") {
        return true
    }
}

function isAutoSniper(name) {
    if (name == "scar 20" || name == "g3sg1") {
        return true
    }
}

function bettermindmg() {
    pm = UI.GetValue("Script items", "Pistol mdmg")
    hpm = UI.GetValue("Script items", "Heavy Pistols mdmg")
    sm = UI.GetValue("Script items", "Scout mdmg")
    awm = UI.GetValue("Script items", "AWP mdmg")
    am = UI.GetValue("Script items", "AUTO mdmg")
    name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
    if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Weapon override")) {
        if (dmgov) {
            pc = UI.GetValue("Rage", "PISTOL", "Minimum damage")
            hpc = UI.GetValue("Rage", "HEAVY PISTOL", "Minimum damage")
            scc = UI.GetValue("Rage", "SCOUT", "Minimum damage")
            awpc = UI.GetValue("Rage", "AWP", "Minimum damage")
            atc = UI.GetValue("Rage", "AUTOSNIPER", "Minimum damage")
            dmgov = false;
        }
        if (isPistol(name)) {
            UI.SetValue("Rage", "PISTOL", "Minimum damage", pm)
        }
        if (isHeavyPistol(name)) {
            UI.SetValue("Rage", "HEAVY PISTOL", "Minimum damage", hpm)
        }
        if (name == "ssg 08") {
            UI.SetValue("Rage", "SCOUT", "Minimum damage", sm)
        }
        if (name == "awp") {
            UI.SetValue("Rage", "AWP", "Minimum damage", awm)
        }
        if (isAutoSniper(name)) {
            UI.SetValue("Rage", "AUTOSNIPER", "Minimum damage", am)
        }
    } else {
        if (!dmgov) {
            UI.SetValue("Rage", "PISTOL", "Minimum damage", pc)
            UI.SetValue("Rage", "HEAVY PISTOL", "Minimum damage", hpc)
            UI.SetValue("Rage", "SCOUT", "Minimum damage", scc)
            UI.SetValue("Rage", "AWP", "Minimum damage", awpc)
            UI.SetValue("Rage", "AUTOSNIPER", "Minimum damage", atc)
            dmgov = true;
        }
    }
}

var clock = 0

function adapjitter() {
    if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Adaptive jitter")) {
        clock = clock + 0.5
        if (clock > 1) {
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", -6);
            clock = 0
        } else {
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 26);
        }
    }
}

function anim() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Legfucker")) {
        clock = clock + 0.5
        if (clock > 1) {
            if (UI.GetValue("Misc", "GENERAL", "Movement", "Slide walk") && !UI.GetValue("Anti-Aim", "Extra", "Jitter move")) {
                UI.SetValue("Misc", "GENERAL", "Movement", "Slide walk", 0);
                UI.SetValue("Anti-Aim", "Extra", "Jitter move", 1);
                clock = 0
            } else {
                UI.SetValue("Misc", "GENERAL", "Movement", "Slide walk", 1);
                UI.SetValue("Anti-Aim", "Extra", "Jitter move", 0);
                clock = 0
            }
        }
    }
}

counter = 0

function NeverHit() {
    if (!UI.IsHotkeyActive("Script items", "Crook delta")) {
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Low delta")) {
            AntiAim.SetOverride(1);
            AntiAim.SetFakeOffset(0);
            if (UI.IsHotkeyActive("Anti-Aim", "Inverter")) {
                AntiAim.SetRealOffset(16);
            } else {
                AntiAim.SetRealOffset(-16);
            }
        } else
            AntiAim.SetOverride(0)
        return
    }
    inverted = (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) ? -1 : 1;
    var a11 = -72 * inverted;
    var a12 = 49 * inverted;
    var a13 = 15 * inverted;
    var a21 = 16 * inverted;
    var a22 = 3 * inverted;
    var a23 = 20 * inverted;
    var a31 = 4 * inverted;
    var a32 = -4 * inverted;
    var a33 = -2 * inverted
    AntiAim.SetOverride(1);
    if (counter > 2) {
        counter = 0;
    }
    switch (counter) {
        case 0:
            AntiAim.SetRealOffset(a11)
            AntiAim.SetLBYOffset(a12)
            AntiAim.SetFakeOffset(a13)
            break;
        case 1:
            AntiAim.SetRealOffset(a21)
            AntiAim.SetLBYOffset(a22)
            AntiAim.SetFakeOffset(a23)
            break;
        case 2:
            AntiAim.SetRealOffset(a31)
            AntiAim.SetLBYOffset(a32)
            AntiAim.SetFakeOffset(a33)
    }
    counter++
}

var getVelocity = function (index) {
    players = Entity.GetPlayers();
    for (i = 0; i < players.length; i++); {
        var velocity = Entity.GetProp(index, "CBasePlayer", "m_vecVelocity[0]");
        var speed = Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
    }
    return speed;
}

function safepoint() {
    if (UI.GetValue("Script items", "Safe point on limbs")) {
   //var
   localplayer_index = Entity.GetLocalPlayer( );
   localplayer_weapon = Entity.GetWeapon(localplayer_index);
   weapon_name = Entity.GetName(localplayer_weapon);
   
       if (getVelocity(localplayer_index) <= 100 && weapon_name  == "awp" || weapon_name  == "scar 20" || weapon_name  == "g3sg1" || weapon_name  == "r8 revolver" || weapon_name  == "desert eagle" ) {
          Ragebot.ForceHitboxSafety(0);
          Ragebot.ForceHitboxSafety(9);
          Ragebot.ForceHitboxSafety(10);
          Ragebot.ForceHitboxSafety(11);
          Ragebot.ForceHitboxSafety(12);
       }	 
     }
   }

function instantonpeek() {
    velocity = Math.round(getVelocity(Entity.GetLocalPlayer())).toString();
    if (!UI.GetValue("Script items", "Instant on move")) return;
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
        if (velocity > 5) {
            UI.SetValue("Rage", "GENERAL", "Exploits", "Doubletap instant", true)
        } else if (velocity < 5) {
            UI.SetValue("Rage", "GENERAL", "Exploits", "Doubletap instant", false)
        } else {
            UI.SetValue("Rage", "GENERAL", "Exploits", "Doubletap instant", false)
        }
    }
}

function staticLegs() {
    if (!UI.GetValue("Skeet legs [only fake-lag]") || Input.IsKeyPressed(0x20) || isInAir()) return;
    var fakelag = UI.GetValue("Skeet legs fakelag");
    switch (Globals.Tickcount() % fakelag) {
        case 0:
            UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", fakelag);
            UI.SetValue("Misc", "GENERAL", "Movement", "Slide walk", 1);
            break;
        case (fakelag - 1):
            UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", 0);
            UI.SetValue("Misc", "GENERAL", "Movement", "Slide walk", 1);
            UserCMD.SetMovement([0, 0, 0]);
            break;
    }
}

function isInAir() {
    var fv = Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_flFallVelocity");
    if (fv < -1 || fv > 1) {
    return true;
    }
    return false;
}

function getPlayerHealth(index) {
    return Entity.GetProp(index, "CPlayerResource", "m_iHealth");
}

function twoshot() {
    if (!UI.GetValue("Script items", "Enable Two-Shot")) return;
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap") && isAutoSniper(name)) {
        Ragebot.ForceTargetMinimumDamage(Ragebot.GetTarget(), Entity.GetProp(Ragebot.GetTarget(), "CBasePlayer", "m_iHealth") / 2)
    }
}

var screen_size = Global.GetScreenSize()

function draw() {
    flags = Entity.GetProp(Entity.GetLocalPlayer(),'CBasePlayer', 'm_fFlags' )
    var local_player = Entity.GetLocalPlayer();
    if (!UI.GetValue("Script items", "Ind under crosshair")) return;
    if (Entity.IsAlive(local_player)) {
        var colindicators = UI.GetColor("Script items", "Indicators color")
        var anim = Math.sin(Math.abs(-Math.PI + (Globals.Curtime() * (1 / 0.5)) % (Math.PI * 2))) * 255
        var s = UI.GetValue("Script items", "y indicators")
        var isinverted = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "inverter")
        if (Entity.GetProp(local_player, "CCSPlayer", "m_bIsScoped") || UI.GetValue("Script items", "Indicators side") == 1) { c = 0, sc = screen_size[0] / 2 + 15, ad = -14, add = 42, circ = 69 } else { c = 1, sc = screen_size[0] / 2, ad = 12, add = 14, circ = 29 }
        var info = [
            ["DT", ["Rage", "GENERAL", "Exploits", "Doubletap"], colindicators],
            ["ONSHOT", ["Rage", "GENERAL", "Exploits", "Hide shots"], colindicators],
            ["DA", ["Script items", "Dormant"], colindicators],
            ["SAFE", ["Rage", "General", "Force safe point"], colindicators],
            ["BAIM", ["Rage", "General", "Force body aim"], colindicators],
            ["PEEK", ["Misc", "GENERAL", "Movement", "Auto peek"], colindicators],
            ["DUCK", ["Anti-Aim", "Extra", "Fake duck"], colindicators],
        ];
        if(UI.IsHotkeyActive("Script items", "Low delta")){ var ana = "LOW DELTA"} else if (UI.IsHotkeyActive("Script Items", "Crook delta")) { var ana = "CYBER YAW"} else if (UI.IsHotkeyActive("Script Items", "Legit AA")) { var ana = "LEGIT AA"} else if (UI.GetValue("Anti-Aim", "Auto direction")) { var ana = "IDEAL YAW"} else if (UI.IsHotkeyActive("Script Items", "Adaptive jitter")) { var ana = "ADAPTIVE JITTER"} else if (UI.GetValue("Anti-Aim", "LBY mode") == 1) { var ana = "OPPOSITE"} else if (UI.GetValue("Anti-Aim", "LBY mode") == 0) { var ana = "NORMAL"} else if (UI.GetValue("Anti-Aim", "LBY mode") == 2) { var ana = "SWAY"} else { var ana = "NOT DETECTED"}
        if(isAutoSniper(name)){ var dmg = UI.GetValue("Rage", "AUTOSNIPER", "Minimum damage")} else if(isPistol(name)){ var dmg = UI.GetValue("Rage", "PISTOL", "Minimum damage")} else if(isHeavyPistol(name)){ var dmg = UI.GetValue("Rage", "HEAVY PISTOL", "Minimum damage")} else if(name == "ssg 08"){ var dmg = UI.GetValue("Rage", "SCOUT", "Minimum damage")} else if(name == "awp"){ var dmg = UI.GetValue("Rage", "AWP", "Minimum damage")} else { var dmg = UI.GetValue("Rage", "GENERAL", "Minimum damage")}
        var keybinds = [];
        for (var i in info) {
            if (UI.IsHotkeyActive.apply(null, info[i][1])) {
                keybinds.push(i);
            }
        }
        Render.String(sc - 1, screen_size[1] / 2 + s + 1, c, isinverted ? "RIGHT" : "LEFT", [0, 0, 0, 255], 3);
        Render.String(sc - 1, screen_size[1] / 2 + s, c, isinverted ? "RIGHT" : "LEFT", [255, 255, 255, 255], 3);
        Render.String(sc - 1, screen_size[1] / 2 + s + 11, c, "CYBERSYNC", [0, 0, 0, anim], 3);
        Render.Circle(screen_size[0] / 2 + circ, screen_size[1] / 2 + s + 11, 1, [0, 0, 0, anim]);
        Render.String(screen_size[0] / 2 - ad, screen_size[1] / 2 + s + 10, c, "CYBER", isinverted ? [colindicators[0], colindicators[1], colindicators[2], anim] : [255, 255, 255, anim], 3);
        Render.String(screen_size[0] / 2 + add, screen_size[1] / 2 + s + 10, c, "SYNC", isinverted ? [255, 255, 255, anim] : [colindicators[0], colindicators[1], colindicators[2], anim], 3);
        Render.Circle(screen_size[0] / 2 + circ, screen_size[1] / 2 + s + 10, 1, isinverted ? [255, 255, 255, anim] : [colindicators[0], colindicators[1], colindicators[2], anim], 3);
        Render.String(sc - 1, screen_size[1] / 2 + s + 21, c, ana, [0, 0, 0, colindicators[3]], 3);
        Render.String(sc - 1, screen_size[1] / 2 + s + 20, c, ana, colindicators, 3);
        Render.String(sc - 1, screen_size[1] / 2 + s + 31, c, "DMG: " + dmg, [0, 0, 0, 255], 3);
        Render.String(sc - 1, screen_size[1] / 2 + s + 30, c, "DMG: " + dmg, [255, 255, 255, 255], 3);
        for (var j in keybinds) {
            Render.StringCustom(sc, screen_size[1] / 2 + s + 41 - (j * -13), c, info[keybinds[j]][0], [0, 0, 0, colindicators[3]], 3);
            Render.StringCustom(sc, screen_size[1] / 2 + s + 40 - (j * -13), c, info[keybinds[j]][0], info[keybinds[j]][2], 3);
        }
    }
}
var thirdperson_cache = UI.GetValue("Visuals", "WORLD", "View", "Thirdperson")
var person = 0,
    turned = 1

const thirdperson = function () {
    if (!UI.GetValue("Script items", "Enable anim thirdperson")) return;
    local = Entity.GetLocalPlayer()
    var thirdperson_cache = UI.GetValue("Thirdperson distance"),
        hotkey_state = UI.IsHotkeyActive("Script items", "Animated thirdperson"),
        fade_factor = ((1 / .005) * Globals.Frametime())
    if (hotkey_state && person != 1 && Entity.IsAlive(local))
        person = clamp(person - fade_factor, 49, thirdperson_cache)
    if (!hotkey_state && person != 0 || !Entity.IsAlive(local))
        person = clamp(person + fade_factor, 49, thirdperson_cache)
    if (hotkey_state && person == 49 && turned) {
        UI.ToggleHotkey("Visuals", "WORLD", "View", "Thirdperson")
        turned = 0
    }

    if (!hotkey_state && person > 49 && !turned) {
        UI.ToggleHotkey("Visuals", "WORLD", "View", "Thirdperson")
        turned = 1
    }

    if (turned && !UI.IsHotkeyActive("Visuals", "WORLD", "View", "Thirdperson") || !turned && UI.IsHotkeyActive("Visuals", "WORLD", "View", "Thirdperson"))
        UI.ToggleHotkey("Visuals", "WORLD", "View", "Thirdperson")
    if (person != 0) UI.SetValue("Visuals", "WORLD", "View", "Thirdperson", person);
}

function fsn() {
    ui_arat_val = UI.GetValue("Aspect ratio");
    UI.SetValue("Misc", "GENERAL", "Hidden cvars", true)
    switch (Global.FrameStage()) {
        case 5: {
            Global.ExecuteCommand("r_aspectratio " + ui_arat_val.toString() / 100);

            break;
        }
        default:
            break;
    }
}

should_draw = false
const reset = function () {
    should_draw = false;

}
const bomb_planted = function () {
    should_draw = true;
}

function set_dropdown_value(value, index, enable) {
    var mask = 1 << index;
    return enable ? (value | mask) : (value & ~mask);
}
clamp = function (val, min, max) {
    if (val > max)
        return max
    if (min > val)
        return min
    return val
}
animscope = 0;
function drawscope() {
    var local_player = Entity.GetLocalPlayer();
    var increment = 6 * Globals.Frametime()
    if (Entity.IsAlive(local_player)) {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable custom scope")) {
            scoped = Entity.GetProp(local_player, "CCSPlayer", "m_bIsScoped");
            var offset = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Distance from crosshair");
            var height = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Size of lines");
            var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Scope color");
            var color2 = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Scope color 2");

            if (scoped) {
                animscope = animscope + increment;
                if (animscope > 1) { animscope = 1 }
                Convar.SetFloat("r_drawvgui", should_draw ? 1 : 0);
                if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Viewmodel in scope") == 1) {
                    Convar.SetFloat("fov_cs_debug", 90)
                }
                Render.GradientRect(screen_size[0] / 2 + offset + height - height * animscope, screen_size[1] / 2, height * animscope, 1, 1, [color[0], color[1], color[2], color[3]* animscope], [color2[0], color2[1], color2[2], 0]);
                Render.GradientRect(screen_size[0] / 2 - height - offset, screen_size[1] / 2, height * animscope, 1, 1, [color2[0], color2[1], color2[2], 0], [color[0], color[1], color[2], color[3]* animscope]);
                Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 + offset + height - height * animscope, 1, height * animscope, 0, [color[0], color[1], color[2], color[3]* animscope], [color2[0], color2[1], color2[2], 0]);
                Render.GradientRect(screen_size[0] / 2, screen_size[1] / 2 - height - offset, 1, height * animscope, 0, [color2[0], color2[1], color2[2], 0], [color[0], color[1], color[2], color[3]* animscope]);
                if (UI.GetValue("Misc","JAVASCRIPT", "Script items", "Scope circle")){
                    draw_arc(screen_size[0] / 2, screen_size[1] / 2, 160, 9, 70 * animscope , 1, [ color[0], color[1], color[2], 160* animscope ]);
                    draw_arc(screen_size[0] / 2, screen_size[1] / 2, 160, 99, 70 * animscope, 1, [ color[0], color[1], color[2], 160 * animscope]);
                    draw_arc(screen_size[0] / 2, screen_size[1] / 2, 160, 189, 70 * animscope, 1, [ color[0], color[1], color[2], 160 * animscope]);
                    draw_arc(screen_size[0] / 2, screen_size[1] / 2, 160, 279, 70 * animscope, 1, [ color[0], color[1], color[2], 160 * animscope]);
                }
            }
            if (!scoped) {
                Convar.SetFloat("r_drawvgui", 1)
                Convar.SetFloat("fov_cs_debug", 0)
                animscope = 0
            }
        }
    } else {
        Convar.SetFloat("r_drawvgui", 1);
    }
}

ping = function () {
    var localplayer_alive = Entity.IsAlive(Entity.GetLocalPlayer());
    var ping = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString();
    var delay = UI.GetValue("Script items", "delay limit:");
    var pingenable = UI.IsHotkeyActive("Script items", "Ping Spike");

    if (localplayer_alive) {
        if (pingenable) {
            UI.SetValue("Misc", "GENERAL", "Miscellaneous", "Extended backtracking", delay < ping ? false : true);
        } else {
            UI.SetValue("Misc", "GENERAL", "Miscellaneous", "Extended backtracking", false);
        }
    }
}

function drawmanual() {
    if (!UI.GetValue("Script items", "Draw Manuals")) return;
    var anim = Math.sin(Math.abs(-Math.PI + (Globals.Curtime() * (1 / 0.5)) % (Math.PI * 2)))
    isleft = UI.IsHotkeyActive("Script items", "left"), isright = UI.IsHotkeyActive("Script items", "right"), arrow = UI.GetColor("Script items", "Active Manual"), arrown = UI.GetColor("Script items", "Manual")
    var local_player = Entity.GetLocalPlayer(); var isinverted = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "inverter")
    if (Entity.IsAlive(local_player)) {
        if(UI.GetValue("Script items", "Manual type") == 0){
            Render.Polygon([
                [screen_size[0] / 2 + 30, screen_size[1] / 2 - 7],
                [screen_size[0] / 2 + 43, screen_size[1] / 2],
                [screen_size[0] / 2 + 30, screen_size[1] / 2 + 7]
            ], isright ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown),
            Render.Polygon([
                [screen_size[0] / 2 - 30, screen_size[1] / 2 + 7],
                [screen_size[0] / 2 - 43, screen_size[1] / 2],
                [screen_size[0] / 2 - 30, screen_size[1] / 2 - 7]
            ], isleft ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown)
        }
        if(UI.GetValue("Script items", "Manual type") == 1){
            font = Render.AddFont( "Verdana", 12, 100);
            Render.StringCustom(screen_size[0] / 2 + 40, screen_size[1] / 2 - 8, 6, ">", isright ? [0, 0, 0, anim * arrow[3]] : [0, 0, 0, arrown[3]], font)
            Render.StringCustom(screen_size[0] / 2 + 40, screen_size[1] / 2 - 9, 6, ">", isright ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown, font)
            Render.StringCustom(screen_size[0] / 2 - 40, screen_size[1] / 2 - 8, 6, "<", isleft ? [0, 0, 0, anim * arrow[3]] : [0, 0, 0, arrown[3]], font)
            Render.StringCustom(screen_size[0] / 2 - 40, screen_size[1] / 2 - 9, 6, "<", isleft ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown, font)
        }
        if(UI.GetValue("Script items", "Manual type") == 2){
            font = Render.AddFont( "Verdana", 12, 100);
            Render.StringCustom(screen_size[0] / 2 + 40, screen_size[1] / 2 - 8, 6, ">", isright ? [0, 0, 0, anim * arrow[3]] : [0, 0, 0, arrown[3]], font)
            Render.StringCustom(screen_size[0] / 2 + 40, screen_size[1] / 2 - 9, 6, ">", isright ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown, font)
            Render.StringCustom(screen_size[0] / 2 - 40, screen_size[1] / 2 - 8, 6, "<", isleft ? [0, 0, 0, anim * arrow[3]] : [0, 0, 0, arrown[3]], font)
            Render.StringCustom(screen_size[0] / 2 - 40, screen_size[1] / 2 - 9, 6, "<", isleft ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown, font)
            Render.StringCustom(screen_size[0] / 2 + 30, screen_size[1] / 2 - 8, 6, ">", isinverted ? [0, 0, 0, anim * arrow[3]] : [0, 0, 0, arrown[3]], font)
            Render.StringCustom(screen_size[0] / 2 + 30, screen_size[1] / 2 - 9, 6, ">", isinverted ? [arrow[0], arrow[1], arrow[2], anim * arrow[3]] : arrown, font)
            Render.StringCustom(screen_size[0] / 2 - 30, screen_size[1] / 2 - 8, 6, "<", isinverted ? [0, 0, 0, arrown[3]] : [0, 0, 0, anim * arrow[3]], font)
            Render.StringCustom(screen_size[0] / 2 - 30, screen_size[1] / 2 - 9, 6, "<", isinverted ? arrown : [arrow[0], arrow[1], arrow[2], anim * arrow[3]], font)
        }
    }
}
function render_arc(x, y, radius, radius_inner, start_angle, end_angle, segments, color) {
    while (360 % segments != 0) {
        segments++;
    }
    segments = 360 / segments;
    for (var i = start_angle; i < start_angle + end_angle; i = i + segments) {
        var rad = i * Math.PI / 180;
        var rad2 = (i + segments) * Math.PI / 180;
        var rad_cos = Math.cos(rad);
        var rad_sin = Math.sin(rad);
        var rad2_cos = Math.cos(rad2);
        var rad2_sin = Math.sin(rad2);
        var x1_outer = x + rad_cos * radius;
        var y1_outer = y + rad_sin * radius;
        var x2_outer = x + rad2_cos * radius;
        var y2_outer = y + rad2_sin * radius;
        var x1_inner = x + rad_cos * radius_inner;
        var y1_inner = y + rad_sin * radius_inner;
        var x2_inner = x + rad2_cos * radius_inner;
        var y2_inner = y + rad2_sin * radius_inner;
        Render.Polygon([
            [x1_outer, y1_outer],
            [x2_outer, y2_outer],
            [x1_inner, y1_inner]
        ], color);
        Render.Polygon([
            [x1_inner, y1_inner],
            [x2_outer, y2_outer],
            [x2_inner, y2_inner]
        ], color);
    }
}

const desync = function () {
    if (UI.GetValue("Desync Circle")) {
        var adjust_angle = function (angle) {
            if (angle < 0) {
                angle = (90 + angle * (-1))
            } else if (angle > 0) {
                angle = (90 - angle)
            }
            return angle
        }
        var dsy = {
            "col": UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Desync Circle Color"),
            "inv": UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")
        }
        var local_player = Entity.GetLocalPlayer();
        if (Entity.IsAlive(local_player)) {
            var screens_size = Render.GetScreenSize();
            var screen_middle_x = screens_size[0] * 0.5;
            var screen_middle_y = screens_size[1] * 0.5;
            var view_angles = Local.GetViewAngles();
            var real_yaw = Local.GetRealYaw();
            var fake_yaw = Local.GetFakeYaw();
            var view_yaw = view_angles[1] - 180;
            var real = adjust_angle(real_yaw - view_yaw);
            var fake = adjust_angle(fake_yaw - view_yaw);
            render_arc(screen_middle_x, screen_middle_y, 7, 4, 0, 360, 32, [0, 0, 0, 255])
            render_arc(screen_middle_x, screen_middle_y, 7, 4, dsy.inv ? 90 : 270, dsy.inv ? 180 : 180, 32, dsy.col)
            render_arc(screen_middle_x, screen_middle_y, 15, 12, fake - (12 * 0.5), 44, 32, dsy.col)
        }
    }
}

function delta() {
    local = Entity.GetLocalPlayer();
    if (!UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Desync line") || !Entity.IsValid(local) || !Entity.IsAlive(local)) return;
    x = screen_size[0];
    y = screen_size[1];
    coldelt = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "line color");
    real_yaw = Local.GetRealYaw();
    fake_yaw = Local.GetFakeYaw();
    delta = Math.min(Math.abs(real_yaw - fake_yaw) / 2, 60).toFixed(0) - 15
    if (UI.GetValue("Script items", "Gradient")) {
        var coldelta = [coldelt[0], coldelt[1], coldelt[2], 0]
    } else {
        var coldelta = coldelt
    }
    Render.GradientRect(x / 2, y / 2 + 19, (45 / 60) * delta, 2, 1, coldelt, coldelta);
    Render.GradientRect(x / 2 - (45 / 60) * delta + 1, y / 2 + 19, (45 / 60) * delta, 2, 1, coldelta, coldelt);
}

var frame = 0;

function fluctates() {
    if (UI.GetValue("Script items", "Fluctate fakelags")) {
        frame++;
        if (frame == 30) frame = 1;
        if (frame >= 15 && frame <= 30) UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", true);
        else UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", false);
    }
}

var hidePbak = false;

function onshots() {
    if (!UI.GetValue("Script items", "onshot on slow walk")) return;
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
        forceonshot = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots");
        if (!forceonshot) {
            UI.ToggleHotkey("Rage", "GENERAL", "Exploits", "Hide shots");
            hidePbak = true;
        }
    } else if (hidePbak) {
        UI.ToggleHotkey("Rage", "GENERAL", "Exploits", "Hide shots");
        hidePbak = false;
    }
}

var dtPbak = false;

function dtsafe() {
    if (!UI.GetValue("Script items", "Force safe on dt")) return;
    if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
        forceSafePoint = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point');
        if (!forceSafePoint) {
            UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point');
            dtPbak = true;
        }
    } else if (dtPbak) {
        UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point');
        dtPbak = false;
    }
}

var safePbak = false;

function safeAWP() {
    if (!UI.GetValue("Script items", "SafeAwp")) return;
    if (name == "awp") {
        forceSafePoint = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point');
        if (!forceSafePoint) {
            UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point');
            safePbak = true;
        }
    } else if (safePbak) {
        UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point');
        safePbak = false;
    }
}

function watermark() {
      if (UI.GetValue("Script items", "Water ind") & (1<<0)){
        if (!World.GetServerString()) return;
        if(!UI.GetValue("Script items", "Rainbow")){
        col = UI.GetColor("Script items", "Water indicators")
        var gradient1 = col
        var gradient2 = col
        } else {
        var gradient1 = [203, 70, 205, 255]
        var gradient2 = [204, 227, 53, 255]
        }
        var today = new Date();
        var hours = today.getHours();
        var minutes = today.getMinutes();
        var seconds = today.getSeconds();
        var hours = hours <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
        var minutes = minutes <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
        var seconds = seconds <= 9 ? "0" + today.getSeconds() + "" : today.getSeconds();
        var tickrate = Globals.Tickrate().toString()
        var ping = Math.round(Local.Latency() * 1000 - 16)
        var font = Render.AddFont("Verdana", 7, 400);
        var text = "</> cybersync | " + username + " | delay: " + ping + "ms | " + tickrate + "tick | " + hours + minutes + seconds;
        var h = 18;
        var w = Render.TextSizeCustom(text, font)[0] + 8;
        x = Global.GetScreenSize()[0]
        var y = 10;
        x = x - w - 10;
        Render.GradientRect(x, 10, w, 2, 1, gradient1, gradient2);
        Render.FilledRect(x, y + 2, w, h, [0, 0, 0, 100]);
        Render.StringCustom(x + 4, y + 4, 0, text, [255, 255, 255, 255], font);
    }
}

function in_bounds(vec, x, y, x2, y2) {
    return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}

function draw_arc(x, y, radius, start_angle, percent, thickness, color) {
    var precision = (2 * Math.PI) / 30;
    var step = Math.PI / 180;
    var inner = radius - thickness;
    var end_angle = (start_angle + percent) * step;
    var start_angle = (start_angle * Math.PI) / 180;
    for (; radius > inner; --radius) {
        for (var angle = start_angle; angle < end_angle; angle += precision) {
            var cx = Math.round(x + radius * Math.cos(angle));
            var cy = Math.round(y + radius * Math.sin(angle));

            var cx2 = Math.round(x + radius * Math.cos(angle + precision));
            var cy2 = Math.round(y + radius * Math.sin(angle + precision));

            Render.Line(cx, cy, cx2, cy2, color);
        }
    }
}

function HSVtoRGB(h, s, v) {
    var r, g, b, i, f, p, q, t;

    i = Math.floor(h * 6);
    f = h * 6 - i;
    p = v * (1 - s);
    q = v * (1 - f * s);
    t = v * (1 - (1 - f) * s);

    switch (i % 6) {
        case 0:
            r = v, g = t, b = p;
            break;
        case 1:
            r = q, g = v, b = p;
            break;
        case 2:
            r = p, g = v, b = t;
            break;
        case 3:
            r = p, g = q, b = v;
            break;
        case 4:
            r = t, g = p, b = v;
            break;
        case 5:
            r = v, g = p, b = q;
            break;
    }

    return {
        r: Math.round(r * 255),
        g: Math.round(g * 255),
        b: Math.round(b * 255)
    };
}
var oldTick = Global.Tickcount()
var ticksToDelay = 1

function FKIND() {
        if (!World.GetServerString()) return;
        tickcount = Global.Tickcount();
        color = HSVtoRGB(tickcount % 350 / 350, 1, 1, 1, 255);
        const x = Global.GetScreenSize()[0],
            y = 32;
        var font = Render.AddFont("Verdana", 7, 100);
        if (UI.IsHotkeyActive("Rage", "Hide shots")) {
            var fl = "HS"
        } else if (UI.IsHotkeyActive("Rage", "Doubletap")) {
            var fl = "DT"
        } else if (!UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled")) {
            var fl = 1
        } else {
            var fl = UI.GetValue("Anti-Aim", "Limit")
        }
        if(!UI.GetValue("Script items", "Rainbow")){
        col = UI.GetColor("Script items", "Water indicators")
        var white = col
        var Gradient = [col[0],col[1],col[2],0]
        }
        else {
        var white = [color.r, color.g, color.b, 255]
        var Gradient = [color.r, color.g, color.b, 0]
        }
        var fps = Math.floor(1 / Global.Frametime()) /8
        var RealYaw = Local.GetRealYaw();
        var FakeYaw = Local.GetFakeYaw();
        var delta = Math.min(Math.abs(RealYaw - FakeYaw) / 2, 60).toFixed(1);
        var side = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter") ? ">" : "<";
        var text = "    FAKE(" + delta + ") side: " + side;
        var w = Render.TextSizeCustom(text, font)[0] + 8;
        var wz = Render.TextSizeCustom("FL:" + fl, font)[0] + 8;
        if (UI.GetValue("Script items", "Water ind") & (1<<1)) {
        Render.FilledRect(x - w - 61, y + 2, 1, 18, white);
        Render.FilledRect(x - w - 60, y + 2, w, 18, [0, 0, 0, 100]);
        draw_arc(x - 52 - w, y + 10, 5, 0, delta * 6, 2, white);
        draw_arc(x - 52 - w, y + 10, 5, 0, delta * 6, 2, [55, 177, 218, 10])
        Render.StringCustom(x - 54 - w, y + 4, 0, text, [255, 255, 255, 255], font);
        }
        if (UI.GetValue("Script items", "Water ind") & (1<<2)) {
        Render.FilledRect(x - wz - 10, y + 2, wz, 18, [0, 0, 0, 100]);
        Render.GradientRect( x - wz - 10, y + 19, wz /2, 1, 1, Gradient, white);
        Render.GradientRect( x - wz /2 - 10, y + 19, wz /2, 1, 1, white, Gradient);
        Render.StringCustom(x - 8 - wz, y + 4, 0, "FL: " + fl, [255, 255, 255, 255], font);
        }
        if (UI.GetValue("Script items", "Water ind") & (1<<3)) {
        Render.FilledRect(screen_size[0] - 280, 32 + 2, 90, 18, [0, 0, 0, 100])
        Render.FilledRect(screen_size[0] - 190, 32 + 2, 1, 18, white)
        Render.GradientRect(screen_size[0] - fps - 217, 32 + 5, fps, 12, 1, Gradient, white)
        Render.StringCustom(screen_size[0] - 216, 32 + 4, 0, "| IO", [255,255,255,255], 7)
    }
}
function calc_dist(a, b) {
    x = a[0] - b[0];
    y = a[1] - b[1];
    z = a[2] - b[2];
    return Math.sqrt(x * x + y * y + z * z);
}

function normalize_yaw(angle) {
    angle = (angle % 360 + 360) % 360;
    return angle > 180 ? angle - 360 : angle;
}

function subtract(a, b) {
    x = a[0] - b[0];
    y = a[1] - b[1];
    z = a[2] - b[2];
    var vec = [x, y, z];
    return (vec)
}

function VectorAngles(forward) {
    var angles;
    var tmp, yaw, pitch;

    if (forward[1] == 0 && forward[0] == 0) {
        yaw = 0;
        if (forward[2] > 0)
            pitch = 270;
        else
            pitch = 90;
    } else {
        yaw = (Math.atan2(forward[1], forward[0]) * 180 / Math.PI);
        if (yaw < 0)
            yaw += 360;
        tmp = Math.sqrt(forward[0] * forward[0] + forward[1] * forward[1]);
        pitch = (Math.atan2(-forward[2], tmp) * 180 / Math.PI);
        if (pitch < 0)
            pitch += 360;
    }

    x = pitch;
    y = yaw;
    z = 0;
    angles = [x, y, z];

    return angles;
}

function can_shoot(Player) {
    var index = Entity.GetWeapon(Player)
    var classid = Entity.GetClassID(index);

    var weapon = classid == 107 || classid == 108 || classid == 96 || classid == 99 || classid == 112 || classid == 155 || classid == 47;
    var clip = Entity.GetProp(index, "DT_BaseCombatWeapon", "m_iClip1");
    var getbuttons = Entity.GetProp(index, 'CBasePlayer', 'm_fFlags');
    if (weapon || clip == 0 || getbuttons & 1 << 1)
        return false;
    return true;
}
va = function (a, b) {
    return [a[0] + b[0], a[1] + b[1], a[2] + b[2]];
}

function calculate_yaw(src, to) {
    var delta = [src[0] - to[0], src[1] - to[1]];
    var yaw = Math.atan(delta[1] / delta[0]);
    yaw = normalize_yaw(yaw * 180 / Math.PI);
    if (delta[0] >= 0)
        yaw = normalize_yaw(yaw + 180);
    return yaw;
}
var a, d, c;
var shot = false;

function check() {
    var e = Entity.GetEnemies();
    var d = e.filter(function (e) {
        return Entity.IsDormant(e) && Entity.IsAlive(e) && Trace.Bullet(Entity.GetLocalPlayer(), e, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(e), [0, 0, 45]))[1] > 1;
    });
    var c = d.sort(function (a, b) {
        return Trace.Bullet(Entity.GetLocalPlayer(), a, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(a), [0, 0, 45]))[1] - Trace.Bullet(Entity.GetLocalPlayer(), b, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(b), [0, 0, 45]))[1];
    })[0];
    if (!c) {
        return;
    }
    var weapon_index = Entity.GetWeapon(Entity.GetLocalPlayer());
    var m_flNextPrimaryAttack = Entity.GetProp(weapon_index, "DT_BaseCombatWeapon", "m_flNextPrimaryAttack");
    var viewangle = VectorAngles(subtract(va(Entity.GetRenderOrigin(c), [0, 0, 45]), Entity.GetEyePosition(Entity.GetLocalPlayer())));
    if (!can_shoot(Entity.GetLocalPlayer())) {
        return;
    }
    if (UI.IsHotkeyActive("Script Items", "Dormant")) {
        if (!UI.IsHotkeyActive("Rage", "Doubletap"))
            if (Globals.Curtime() - m_flNextPrimaryAttack > 0.1) {
                UserCMD.SetAngles(viewangle);
                Cheat.ExecuteCommand("+attack");
                shot = true;
            }
    }
}

function wrap() {
    try {
        check()
    } catch (e) {
        Cheat.Print("error: \n" + e.stack)
    }
}

function shoot() {
    if (shot) {
        Cheat.ExecuteCommand("-attack");
        shot = false
    }
}

function dtSpeed(a) {
    var me = Entity.GetLocalPlayer();
    var wpn = Entity.GetWeapon(me);
    if (me == null || wpn == null) return false;
    var tickbase = Entity.GetProp(me, "CCSPlayer", "m_nTickBase");
    var curtime = Globals.TickInterval() * (tickbase - a)
    if (curtime < Entity.GetProp(me, "CCSPlayer", "m_flNextAttack")) return false;
    if (curtime < Entity.GetProp(wpn, "CBaseCombatWeapon", "m_flNextPrimaryAttack")) return false;
    return true;
}

rech = Globals.Tickcount()

function dt() {
    var is_charged = Exploit.GetCharge()
    var recharge_delay = 8
    Exploit[(is_charged != 1 ? "Enable" : "Disable") + "Recharge"]()
    if (UI.GetValue('Script items', 'DT Recharge')) {
        if (dtSpeed(recharge_delay) && is_charged != 1) {
            Exploit.DisableRecharge()
            Exploit.Recharge()
        }
    }
}

function d()
{
    if(!UI.GetValue("Script items", "Strafer fix")) return;
    UI.SetValue("Misc", "GENERAL", "Movement", "Turn speed", UI.GetValue("Script items", "Strafer speed"))
}

const Adtalk = [
    'по ебалу за тупость',
    'by best js * cybersync *',
    'Вступай в клуб больших членов! используй cybersync!',
    'вахвзахвахва найс с кряком жмякнул',
    'ХАХАЗВАЗХВЗАХВХА НИЩЕНКА В ЧЕСТЬ ТЕБЯ РЕКУ НАЗВАЛИ',
    'про тебя даже песня есть, там типо А СОСАТЬ ЭТО ТАЛАНТ',
    'ты че не с cybersync\'ом играешь ? ты че мамонт ???',
    'РНБ КЛУБ! КУРИМ ЖИРНЫЙ ЧЛЕН И ЕБЕМ ТВОЮ МАТЬ!',
    'вахвазхвазхвахв изи лошок от кряка отлетел',
    'фикс брейн баг',
    'оНо жЕ мНе ВсЕ пРоЛузАлО',
    'оправдайся в чате',
    'одной ногой играю ◣_◢',
    'ебаный мамонт',
    'Почему твоя мать подписана у меня как \'Дроп\' ?',
    'Я твоей мамке потолок обоссал ХАХАХАХАХА',
    'Кордов не важно сколько, ты на них сосала :)',
    'Это так, да, это так, сосать — это талант',
    'Меф, кокс, героин, гашик, эксзи, амф, лучшие закладки вашего города писать в тг - fipp1337',
    'Чудище, попробуй cybersync',
    'Джс бай резольвер xd',
    'Устал от однотипных скриптов? Попробуй cybersync'
];

const on_player_death = function()
{
    if(UI.GetValue("Script items", "Adtalk"))
    {
        const attacker = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
        if(Entity.IsLocalPlayer(attacker) && attacker != Entity.GetEntityFromUserID(Event.GetInt("userid")))
        {
            Cheat.ExecuteCommand("say " + Adtalk[Math.floor(Math.random() * Adtalk.length)]);
        }
    }
};

UI.AddDropdown('Sections', ["Rage", "Anti-Aim", "Visuals", "Misc"]);
const menucontrol = function () {
    const MENU = UI.GetValue("Script items", "Sections"),
    rage = MENU == 0;
    aa   = MENU == 1;
    vis  = MENU == 2;
    misc = MENU == 3;
UI.SetEnabled('Script items', 'Dtpeek teleport helper', rage), UI.SetEnabled('Script items', 'Accuracy peek', rage), UI.SetEnabled('Script items', 'Enable Two-Shot', rage), UI.SetEnabled('Script items', 'Jumpscout/r8', rage), UI.SetEnabled('Script items', 'Jump scout hitchance', rage && UI.GetValue('Script items', 'Jumpscout/r8')), UI.SetEnabled('Script items', 'Jump revolver hitchance', rage && UI.GetValue('Script items', 'Jumpscout/r8')), UI.SetEnabled('Script items', 'Enable Damage override', rage), UI.SetEnabled('Script items', 'Weapon override', rage && UI.GetValue("Script items", "Enable Damage override")), UI.SetEnabled('Script items', 'Pistol mdmg', rage && UI.GetValue("Script items", "Enable Damage override")), UI.SetEnabled('Script items', 'Heavy Pistols mdmg', rage && UI.GetValue("Script items", "Enable Damage override")), UI.SetEnabled('Script items', 'Scout mdmg', rage && UI.GetValue("Script items", "Enable Damage override")), UI.SetEnabled('Script items', 'AWP mdmg', rage && UI.GetValue("Script items", "Enable Damage override")), UI.SetEnabled('Script items', 'AUTO mdmg', rage && UI.GetValue("Script items", "Enable Damage override")), UI.SetEnabled('Script items', 'Legit AA', aa), UI.SetEnabled('Script items', 'Low delta', aa), UI.SetEnabled('Script items', 'Crook delta', aa), UI.SetEnabled('Script items', 'Adaptive jitter', aa), UI.SetEnabled('Script items', 'Legfucker', aa), UI.SetEnabled('Script items', 'Dormant', rage), UI.SetEnabled('Script items', 'Fluctate fakelags', aa), UI.SetEnabled('Script items', 'Skeet legs [only fake-lag]', aa), UI.SetEnabled('Script items', 'left', aa), UI.SetEnabled('Script items', 'right', aa), UI.SetEnabled('Script items', 'Ind under crosshair', vis), UI.SetEnabled('Script items', 'Indicators color', vis && UI.GetValue("Script items", "Ind under crosshair")), UI.SetEnabled('Script items', 'Enable custom scope', vis), UI.SetEnabled('Script items', 'Scope circle', vis && UI.GetValue("Script items", "Enable custom scope")), UI.SetEnabled('Script items', 'Viewmodel in scope', vis && UI.GetValue("Script items", "Enable custom scope")), UI.SetEnabled('Script items', 'Distance from crosshair', vis && UI.GetValue("Script items", "Enable custom scope")), UI.SetEnabled('Script items', 'Size of lines', vis && UI.GetValue("Script items", "Enable custom scope")), UI.SetEnabled('Script items', 'Scope color', vis && UI.GetValue("Script items", "Enable custom scope")), UI.SetEnabled('Script items', 'Scope color 2', vis && UI.GetValue("Script items", "Enable custom scope")), UI.SetEnabled('Script items', 'Enable anim thirdperson', misc), UI.SetEnabled('Script items', 'Animated thirdperson', misc && UI.GetValue("Script items", "Enable anim thirdperson")), UI.SetEnabled('Script items', 'Thirdperson distance', misc), UI.SetEnabled('Script items', 'Aspect ratio', misc), UI.SetEnabled('Script items', 'Ping Spike', rage), UI.SetEnabled('Script items', 'delay limit:', rage), UI.SetEnabled('Script items', 'Draw Manuals', vis), UI.SetEnabled('Script items', 'Active Manual', vis && UI.GetValue("Script items", "Draw Manuals")), UI.SetEnabled('Script items', 'Manual', vis && UI.GetValue("Script items", "Draw Manuals")), UI.SetEnabled('Script items', 'Manual type', vis && UI.GetValue("Script items", "Draw Manuals")), UI.SetEnabled('Script items', 'Desync Circle', vis), UI.SetEnabled('Script items', 'Desync Circle Color', vis && UI.GetValue("Script items", "Desync Circle")), UI.SetEnabled('Script items', 'Desync line', vis), UI.SetEnabled('Script items', 'line color', vis && UI.GetValue("Script items", "Desync line")), UI.SetEnabled('Script items', 'Gradient', vis && UI.GetValue("Script items", "Desync line")), UI.SetEnabled('Script items', 'Skeet legs fakelag', aa && UI.GetValue("Script items", "Skeet legs [only fake-lag]")), UI.SetEnabled('Script items', 'Instant on move', rage), UI.SetEnabled('Script items', 'y indicators', vis && UI.GetValue("Script items", "Ind under crosshair")), UI.SetEnabled('Script items', 'SafeAwp', rage), UI.SetEnabled('Script items', 'onshot on slow walk', aa), UI.SetEnabled('Script items', 'Water ind', vis), UI.SetEnabled('Script items', 'Force safe on dt', rage), UI.SetEnabled('Script items', 'DT Recharge', rage), UI.SetEnabled("Script items", "Safe point on limbs", rage), UI.SetEnabled('Script items', 'At targets in air', aa), UI.SetEnabled('Script items', 'Freestanding', aa), UI.SetEnabled('Script items', 'Revolver FL fix', rage), UI.SetEnabled('Script items', 'Rainbow', vis), UI.SetEnabled('Script items', 'Water indicators', vis && !UI.GetValue("Script items", "Rainbow")), UI.SetEnabled('Script items', 'Adaptive Autoscope', rage), UI.SetEnabled('Script items', 'Adaptive Silent', rage), UI.SetEnabled('Script items', 'Indicators side', vis && UI.GetValue("Script items", "Ind under crosshair")), UI.SetEnabled('Script items', 'Strafer fix', misc), UI.SetEnabled('Script items', 'Strafer speed', misc && UI.GetValue("Script items", "Strafer fix")), UI.SetEnabled("Script items", "Clantag", misc), UI.SetEnabled("Script items", "Adtalk", misc)
};
Cheat.RegisterCallback('Draw', 'menucontrol')
UI.AddCheckbox("Dtpeek teleport helper"), UI.AddCheckbox("Adaptive Autoscope"), UI.AddCheckbox("Adaptive Silent"), UI.AddCheckbox("Revolver FL fix"), UI.AddCheckbox("SafeAwp"), UI.AddCheckbox("Safe point on limbs"), UI.AddCheckbox("Force safe on dt"), UI.AddCheckbox("DT Recharge"), UI.AddCheckbox("Accuracy peek"), UI.AddCheckbox("Instant on move"), UI.AddCheckbox("Enable Two-Shot"), UI.AddHotkey("Ping Spike"), UI.AddSliderInt("delay limit:", 50, 185), UI.AddHotkey("Dormant"), UI.AddCheckbox("Jumpscout/r8"), UI.AddSliderInt("Jump scout hitchance", 0, 100), UI.AddSliderInt("Jump revolver hitchance", 0, 100), UI.AddCheckbox("Enable Damage override"), UI.AddHotkey("Weapon override"), UI.AddSliderInt("Pistol mdmg", 0, 130), UI.AddSliderInt("Heavy Pistols mdmg", 0, 130), UI.AddSliderInt("Scout mdmg", 0, 130), UI.AddSliderInt("AWP mdmg", 0, 130), UI.AddSliderInt("AUTO mdmg", 0, 130), UI.AddHotkey("Legit AA"), UI.AddHotkey("Low delta"), UI.AddHotkey("Crook delta"), UI.AddHotkey("Adaptive jitter"), UI.AddHotkey("Freestanding"), UI.AddCheckbox("onshot on slow walk"), UI.AddCheckbox("At targets in air"), UI.AddCheckbox("Legfucker"), UI.AddCheckbox("Skeet legs [only fake-lag]"), UI.AddSliderInt("Skeet legs fakelag", 5, 15), UI.AddCheckbox("Fluctate fakelags"), UI.AddHotkey("left"), UI.AddHotkey("right"), UI.AddCheckbox("Draw Manuals"), UI.AddDropdown("Manual type", ["polygon", "arrow", "double arrow"]), UI.AddColorPicker("Active Manual"), UI.AddColorPicker("Manual"), UI.AddCheckbox("Desync Circle"), UI.AddColorPicker("Desync Circle Color"), UI.AddCheckbox("Desync line"), UI.AddColorPicker("line color"), UI.AddCheckbox("Gradient"), UI.AddCheckbox("Ind under crosshair"), UI.AddDropdown("Indicators side", ["centered", "right"]), UI.AddColorPicker("Indicators color"), UI.AddSliderInt("y indicators", 25, 90), UI.AddMultiDropdown("Water ind", ["Watermark", "Fake", "FL", "IO"]), UI.AddCheckbox("Rainbow"), UI.AddColorPicker("Water indicators"), UI.AddCheckbox("Enable custom scope"), UI.AddCheckbox("Scope circle"), UI.AddCheckbox("Viewmodel in scope"), UI.AddSliderInt("Distance from crosshair", 0, 200), UI.AddSliderInt("Size of lines", 20, 200), UI.AddColorPicker("Scope color"), UI.AddColorPicker("Scope color 2"), UI.AddCheckbox("Enable anim thirdperson"), UI.AddHotkey("Animated thirdperson"), UI.AddSliderInt("Thirdperson distance", 50, 250), UI.AddSliderInt("Aspect ratio", 0, 500), UI.AddCheckbox("Strafer fix"), UI.AddSliderInt("Strafer speed", 0, 500), UI.AddCheckbox("Clantag"), UI.AddCheckbox("Adtalk")
Cheat.RegisterCallback("Draw", "helper"), Cheat.RegisterCallback("CreateMove", "legit_aa"), Cheat.RegisterCallback("CreateMove", "bettermindmg"), Cheat.RegisterCallback("CreateMove", "anim"), Cheat.RegisterCallback("CreateMove", "adapjitter"), Cheat.RegisterCallback("CreateMove", "staticLegs"), Cheat.RegisterCallback("Draw", "draw"), Cheat.RegisterCallback("FrameStageNotify", "thirdperson"), Global.RegisterCallback("FrameStageNotify", "fsn"), Cheat.RegisterCallback("Draw", "drawscope"), Cheat.RegisterCallback("CreateMove", "manual_aa"), Cheat.RegisterCallback("CreateMove", "twoshot"), Global.RegisterCallback("CreateMove", "fluctates"), Cheat.RegisterCallback("CreateMove", "ping"), Cheat.RegisterCallback("Draw", "NeverHit"), Cheat.RegisterCallback("Draw", "drawmanual"), Cheat.RegisterCallback("Draw", "desync"), Cheat.RegisterCallback("Draw", "delta"), Cheat.RegisterCallback("CreateMove", "instantonpeek"), Global.RegisterCallback("CreateMove", "safeAWP"), Global.RegisterCallback("CreateMove", "onshots"), Cheat.RegisterCallback("Draw", "FKIND"), Cheat.RegisterCallback("Draw", "watermark"), Cheat.RegisterCallback("Draw", "dtsafe"), Cheat.RegisterCallback("CreateMove", "wrap"), Cheat.RegisterCallback("weapon_fire", "shoot"), Cheat.RegisterCallback("CreateMove", "dt"), Cheat.RegisterCallback("CreateMove", "safepoint"), Cheat.RegisterCallback("Draw", "airtar"), Cheat.RegisterCallback("Draw", "airhit"), Cheat.RegisterCallback("Draw", "revolverfakelag"), Cheat.RegisterCallback("Draw", "freekey"), Global.RegisterCallback("CreateMove", "autoscope"), Cheat.RegisterCallback("Draw", "AdaptiveSilent"), Cheat.RegisterCallback("Draw", "d"), Cheat.RegisterCallback("Draw", "onRender"), Cheat.RegisterCallback("player_death", "on_player_death")