JS-скрипт Не работает Legit AA

Начинающий
Статус
Оффлайн
Регистрация
24 Апр 2021
Сообщения
62
Реакции[?]
1
Поинты[?]
0
Шапка, надеюсь вы скинете уже в рабочем формате)

JavaScript:
UI.AddCheckbox("Legit AA");
UI.AddHotkey("Legit AA on Key");

//LEGIT AA
var original_aa = true;
function legit_aa() {   
    if(UI.GetValue("Script items", "Legit AA") && UI.IsHotkeyActive("Script items", "Legit AA on Key")) {
        if(original_ld && original_aa) {
            cache = [UI.GetValue("Anti-Aim", "Fake angles", "LBY mode"),
            UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions"),
            UI.GetValue("Anti-Aim", "Fake angles", "Hide real angle"),
            UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset"),
            UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset"),
            UI.GetValue("Anti-Aim", "Extra", "Pitch"),
            UI.GetValue("Misc", "Miscellaneous", "Auto defuse"),
            UI.GetValue("Misc", "Miscellaneous", "Aim at bomb")];
            original_aa = false;
        }
        AntiAim.SetOverride(0);
        UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 1)
        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("Misc", "Miscellaneous", "Auto defuse", 1);
        UI.SetValue("Misc", "Miscellaneous", "Aim at bomb", 1);
        Cheat.ExecuteCommand("-use");
        Cheat.ExecuteCommand("Bind t +use");
    } else {
        if(!original_aa) {
            UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", cache[0])
            UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", cache[1]);
            UI.SetValue("Anti-Aim", "Fake angles", "Hide real angle", cache[2]);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", cache[3]);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", cache[4]);
            UI.SetValue("Anti-Aim", "Extra", "Pitch", cache[5]);
            UI.SetValue("Misc", "Miscellaneous", "Auto defuse", cache[6]);
            UI.SetValue("Misc", "Miscellaneous", "Aim at bomb", cache[7]);
            original_aa = true;
        }
    }
}

Cheat.RegisterCallback("CreateMove", "legit_aa");
 
Nike.lua
Олдфаг
Статус
Оффлайн
Регистрация
13 Окт 2020
Сообщения
2,748
Реакции[?]
1,466
Поинты[?]
2K
Что за пиздец в коде нахуй?
Можно было просто проверить, нажат ли хоткей и выставить все значения :NotLikeThis: :NotLikeThis:
 
Начинающий
Статус
Оффлайн
Регистрация
24 Апр 2021
Сообщения
62
Реакции[?]
1
Поинты[?]
0
Что за пиздец в коде нахуй?
Можно было просто проверить, нажат ли хоткей и выставить все значения :NotLikeThis: :NotLikeThis:
JavaScript:
UI.AddCheckbox("Legit AA");
UI.AddHotkey("Legit AA on Key");

//LEGIT AA
var original_aa = true;
function legit_aa() {   
    if (!UI.GetValue("Script items", "Legit AA")) return;
    if (!UI.IsHotkeyActive("Script items", "Legit AA on Key")) {
        if(original_ld && original_aa) {
            cache = [UI.GetValue("Anti-Aim", "Fake angles", "LBY mode"),
            UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions"),
            UI.GetValue("Anti-Aim", "Fake angles", "Hide real angle"),
            UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset"),
            UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset"),
            UI.GetValue("Anti-Aim", "Extra", "Pitch"),
            UI.GetValue("Misc", "Miscellaneous", "Auto defuse"),
            UI.GetValue("Misc", "Miscellaneous", "Aim at bomb")];
            original_aa = false;
        }
        AntiAim.SetOverride(0);
        UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 1)
        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("Misc", "Miscellaneous", "Auto defuse", 1);
        UI.SetValue("Misc", "Miscellaneous", "Aim at bomb", 1);
        Cheat.ExecuteCommand("-use");
        Cheat.ExecuteCommand("Bind t +use");
    } else {
        if(!original_aa) {
            UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", cache[0])
            UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", cache[1]);
            UI.SetValue("Anti-Aim", "Fake angles", "Hide real angle", cache[2]);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", cache[3]);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", cache[4]);
            UI.SetValue("Anti-Aim", "Extra", "Pitch", cache[5]);
            UI.SetValue("Misc", "Miscellaneous", "Auto defuse", cache[6]);
            UI.SetValue("Misc", "Miscellaneous", "Aim at bomb", cache[7]);
            original_aa = true;
        }
    }
}

Cheat.RegisterCallback("CreateMove", "legit_aa");
 
Начинающий
Статус
Оффлайн
Регистрация
6 Сен 2020
Сообщения
85
Реакции[?]
7
Поинты[?]
0
Шапка, надеюсь вы скинете уже в рабочем формате)

JavaScript:
UI.AddCheckbox("Legit AA");
UI.AddHotkey("Legit AA on Key");

//LEGIT AA
var original_aa = true;
function legit_aa() {  
    if(UI.GetValue("Script items", "Legit AA") && UI.IsHotkeyActive("Script items", "Legit AA on Key")) {
        if(original_ld && original_aa) {
            cache = [UI.GetValue("Anti-Aim", "Fake angles", "LBY mode"),
            UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions"),
            UI.GetValue("Anti-Aim", "Fake angles", "Hide real angle"),
            UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset"),
            UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset"),
            UI.GetValue("Anti-Aim", "Extra", "Pitch"),
            UI.GetValue("Misc", "Miscellaneous", "Auto defuse"),
            UI.GetValue("Misc", "Miscellaneous", "Aim at bomb")];
            original_aa = false;
        }
        AntiAim.SetOverride(0);
        UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 1)
        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("Misc", "Miscellaneous", "Auto defuse", 1);
        UI.SetValue("Misc", "Miscellaneous", "Aim at bomb", 1);
        Cheat.ExecuteCommand("-use");
        Cheat.ExecuteCommand("Bind t +use");
    } else {
        if(!original_aa) {
            UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", cache[0])
            UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", cache[1]);
            UI.SetValue("Anti-Aim", "Fake angles", "Hide real angle", cache[2]);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", cache[3]);
            UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", cache[4]);
            UI.SetValue("Anti-Aim", "Extra", "Pitch", cache[5]);
            UI.SetValue("Misc", "Miscellaneous", "Auto defuse", cache[6]);
            UI.SetValue("Misc", "Miscellaneous", "Aim at bomb", cache[7]);
            original_aa = true;
        }
    }
}

Cheat.RegisterCallback("CreateMove", "legit_aa");
Если не ошибаюсь, то это моя ультра параша с брокенкора (noad)
 
Начинающий
Статус
Оффлайн
Регистрация
24 Апр 2021
Сообщения
62
Реакции[?]
1
Поинты[?]
0
reinterpret_cast<bool*>
Пользователь
Статус
Оффлайн
Регистрация
21 Июл 2019
Сообщения
204
Реакции[?]
79
Поинты[?]
2K
Сверху Снизу