JS-скрипт Infernal tech. v2.0 | FREE | Big update

Изучает плюсы
Начинающий
Статус
Оффлайн
Регистрация
12 Июн 2020
Сообщения
101
Реакции[?]
27
Поинты[?]
0
Панки, хой! Я все еще анархист, а у скрипта вышел в2. Все же он должен был выйти часов в 7 вечера, но я решил, что слишком затянул с апдейтом. Прошло 3 недели с момента начала работы (с 18 июля, но были дни, когда я отдыхал).

В скрипте присутствует копипаст и трешкод. Спасибо некоторым людям за исходники, которые я нашел на форуме не буду их сейчас называть (mafia007 люблю тебя <3)

Discord сервер скрипта все еще жив. Если нужно -
Пожалуйста, авторизуйтесь для просмотра ссылки.


На данный момент в скрипте почти 20 функций. Надеюсь, вам понравится.

Баг репорты и пожелания советую отправлять мне в лс или в группу дс, чтобы не засорять тему

Плюсы скрипта:
Около 20 полезных функций
Отзывчивый саппорт
Ответственный кодер
Ест мало фпс
Обширная (очень) настройка визуалов

Функции скрипта:
Rage:
Safety on lethal
Adaptive noscope
Autopeek helper
HP/2 on dt (only auto) (aka two shot)
Mindmg override (Через Ragebot.ForceTargetMinimumDamage)
Hitchance override (Через Ragebot.ForceTargetHitchance)

Anti-Aim:
Better AA (2 types: random jitter and static desync) (real offset + LBY offset)
AA inverter on stand
Freestand on key
Manual aa (team skeet styled)

Visual:
Original indicators
Keybinds
Watermark
Hitlogs
Custom third person distance
Leg fucker

Misc:
Aspect ratio
Pingspike with custom ping limit
Clan-tag
FPS boost

Скрины скрипта:
Пожалуйста, авторизуйтесь для просмотра ссылки.

Апдейты скрипта:
08.08.21 - Релиз в2
09.08.21 - Микро апдейт.
Добавлено 2 стиля для мануал стрелок
Переписаны индикаторы (более чистый код)

Скачать скрипт:
Пожалуйста, авторизуйтесь для просмотра ссылки.

Пожалуйста, авторизуйтесь для просмотра ссылки.
И у меня еще слоган был: "Не покупайте пасты, они должны быть бесплатными!"​
 
Последнее редактирование:
Забаненный
Статус
Оффлайн
Регистрация
18 Окт 2020
Сообщения
458
Реакции[?]
55
Поинты[?]
2K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
спасибо, скачал
 
👁Вас заметили!👁
Пользователь
Статус
Оффлайн
Регистрация
20 Май 2021
Сообщения
503
Реакции[?]
110
Поинты[?]
2K
Посмотреть вложение 157321

Панки, хой! Короче здорова. Я тут +-недельку посидел. Потом +- дня 4 оптимизировал скрипт, фиксил баги и вот. Самая стабильная версия скрипта 1.3 готова. Хочу еще сделать обзор своей жс на ютубе, но сначала захотел запостить ее здесь. Ну что, приступим.
Функционал:
Раге:
1.Дормант аим, чтобы ебать рип есп на вв
2.Сейф поинты он лимбы чтобы по ногам не мисать
3.Сейф поинты он авп чтобы по с авепе не мисать
4.хп\2 он ауто + дт, чтобы дамаг выбивать
5.Аутопик хелпер для удобства
6.Форсе хед, чтобы только в голову стрелять
7.Миндамаг, чтобы по единичке шить
Непопадайки:
1.Лагсинки
2.Альтернатив фейклаги, чтобы не предиктили
3.Фристенды, чтобы мануалом шить
4.лоу дельта он слоувалк, чтобы у скитов бомбило
5.Анти брутфорсе, чтобы у всех бомбило
Визуалы:
1.Индикаторы под прицелом, чтобы красиво
2.АА стейт арровс, чтобы знать где десинк
3.Кастом фог, чтобы красиво х2
4.Кейбинды, чтобы знать что прожал
5.Ватермарк, чтобы на медии все знали, что вы играете с лучшим скриптом
6.Эксплоит индикатор, ваще хз, может вам надо, а так опять красиво
(+ 5 стилей для 4,5,6(классик, градиент, скит, радуга, фейд)
Миска хак:
1.Аспект ратио, чтобы чувствовать себя виртуалом
2.Хит \ Бай логи, чтобы знать о скидках на покупки и хитах + мисах, чтобы снова поорать на кряк
3.Модель чанджер, чтобы красиво х3
Меню:
1.Анимированный лейбл, чтобы уникально
2.Таб секшн, чтобы удобно
Автор скрипта: ANARXIST#0911
Скрины:
Пожалуйста, авторизуйтесь для просмотра ссылки.
- все скрины, включая все индикаторы
Апдейт лог:
27.06.21(1:47) - релиз темы
И всегда помните: "Не покупайте сраные пасты за 200, 300 и более рублей. Получите лучше бесплатно!"
Красиво, респект
Посмотреть вложение 157321

Панки, хой! Короче здорова. Я тут +-недельку посидел. Потом +- дня 4 оптимизировал скрипт, фиксил баги и вот. Самая стабильная версия скрипта 1.3 готова. Хочу еще сделать обзор своей жс на ютубе, но сначала захотел запостить ее здесь. Ну что, приступим.
Функционал:
Раге:
1.Дормант аим, чтобы ебать рип есп на вв
2.Сейф поинты он лимбы чтобы по ногам не мисать
3.Сейф поинты он авп чтобы по с авепе не мисать
4.хп\2 он ауто + дт, чтобы дамаг выбивать
5.Аутопик хелпер для удобства
6.Форсе хед, чтобы только в голову стрелять
7.Миндамаг, чтобы по единичке шить
Непопадайки:
1.Лагсинки, чтобы на углу стоять
2.Альтернатив фейклаги, чтобы не предиктили
3.Фристенды, чтобы мануалом шить
4.лоу дельта он слоувалк, чтобы у скитов бомбило
5.Анти брутфорсе, чтобы у всех бомбило
Визуалы:
1.Индикаторы под прицелом, чтобы красиво
2.АА стейт арровс, чтобы знать где десинк
3.Кастом фог, чтобы красиво х2
4.Кейбинды, чтобы знать что прожал
5.Ватермарк, чтобы на медии все знали, что вы играете с лучшим скриптом
6.Эксплоит индикатор, ваще хз, может вам надо, а так опять красиво
(+ 5 стилей для 4,5,6(классик, градиент, скит, радуга, фейд)
Миска хак:
1.Аспект ратио, чтобы чувствовать себя виртуалом
2.Хит \ Бай логи, чтобы знать о скидках на покупки и хитах + мисах, чтобы снова поорать на кряк
3.Модель чанджер, чтобы красиво х3
Меню:
1.Анимированный лейбл, чтобы уникально
2.Таб секшн, чтобы удобно
Автор скрипта: ANARXIST#0911
Скрины:
Пожалуйста, авторизуйтесь для просмотра ссылки.
- все скрины, включая все индикаторы
Апдейт лог:
27.06.21(1:47) - релиз темы
И всегда помните: "Не покупайте сраные пасты за 200, 300 и более рублей. Получите лучше бесплатно!"
Кса... ты линк не добавил
 
Начинающий
Статус
Оффлайн
Регистрация
29 Дек 2019
Сообщения
160
Реакции[?]
18
Поинты[?]
2K
Посмотреть вложение 157321

Панки, хой! Короче здорова. Я тут +-недельку посидел. Потом +- дня 4 оптимизировал скрипт, фиксил баги и вот. Самая стабильная версия скрипта 1.3 готова. Хочу еще сделать обзор своей жс на ютубе, но сначала захотел запостить ее здесь. Ну что, приступим.
Функционал:
Раге:
1.Дормант аим, чтобы ебать рип есп на вв
2.Сейф поинты он лимбы чтобы по ногам не мисать
3.Сейф поинты он авп чтобы по с авепе не мисать
4.хп\2 он ауто + дт, чтобы дамаг выбивать
5.Аутопик хелпер для удобства
6.Форсе хед, чтобы только в голову стрелять
7.Миндамаг, чтобы по единичке шить
Непопадайки:
1.Лагсинки, чтобы на углу стоять
2.Альтернатив фейклаги, чтобы не предиктили
3.Фристенды, чтобы мануалом шить
4.лоу дельта он слоувалк, чтобы у скитов бомбило
5.Анти брутфорсе, чтобы у всех бомбило
Визуалы:
1.Индикаторы под прицелом, чтобы красиво
2.АА стейт арровс, чтобы знать где десинк
3.Кастом фог, чтобы красиво х2
4.Кейбинды, чтобы знать что прожал
5.Ватермарк, чтобы на медии все знали, что вы играете с лучшим скриптом
6.Эксплоит индикатор, ваще хз, может вам надо, а так опять красиво
(+ 5 стилей для 4,5,6(классик, градиент, скит, радуга, фейд)
Миска хак:
1.Аспект ратио, чтобы чувствовать себя виртуалом
2.Хит \ Бай логи, чтобы знать о скидках на покупки и хитах + мисах, чтобы снова поорать на кряк
3.Модель чанджер, чтобы красиво х3
Меню:
1.Анимированный лейбл, чтобы уникально
2.Таб секшн, чтобы удобно
Автор скрипта: ANARXIST#0911
Скрины:
Пожалуйста, авторизуйтесь для просмотра ссылки.
- все скрины, включая все индикаторы
Апдейт лог:
27.06.21(1:47) - релиз темы
И всегда помните: "Не покупайте сраные пасты за 200, 300 и более рублей. Получите лучше бесплатно!"
вау, появился повод зайти с кряком. спасибо
 
Изучает плюсы
Начинающий
Статус
Оффлайн
Регистрация
12 Июн 2020
Сообщения
101
Реакции[?]
27
Поинты[?]
0
Посмотреть вложение 157321

Панки, хой! Короче здорова. Я тут +-недельку посидел. Потом +- дня 4 оптимизировал скрипт, фиксил баги и вот. Самая стабильная версия скрипта 1.3 готова. Хочу еще сделать обзор своей жс на ютубе, но сначала захотел запостить ее здесь. Ну что, приступим.
Функционал:
Раге:
1.Дормант аим, чтобы ебать рип есп на вв
2.Сейф поинты он лимбы чтобы по ногам не мисать
3.Сейф поинты он авп чтобы по с авепе не мисать
4.хп\2 он ауто + дт, чтобы дамаг выбивать
5.Аутопик хелпер для удобства
6.Форсе хед, чтобы только в голову стрелять
7.Миндамаг, чтобы по единичке шить
Непопадайки:
1.Лагсинки, чтобы на углу стоять
2.Альтернатив фейклаги, чтобы не предиктили
3.Фристенды, чтобы мануалом шить
4.лоу дельта он слоувалк, чтобы у скитов бомбило
5.Анти брутфорсе, чтобы у всех бомбило
Визуалы:
1.Индикаторы под прицелом, чтобы красиво
2.АА стейт арровс, чтобы знать где десинк
3.Кастом фог, чтобы красиво х2
4.Кейбинды, чтобы знать что прожал
5.Ватермарк, чтобы на медии все знали, что вы играете с лучшим скриптом
6.Эксплоит индикатор, ваще хз, может вам надо, а так опять красиво
(+ 5 стилей для 4,5,6(классик, градиент, скит, радуга, фейд)
Миска хак:
1.Аспект ратио, чтобы чувствовать себя виртуалом
2.Хит \ Бай логи, чтобы знать о скидках на покупки и хитах + мисах, чтобы снова поорать на кряк
3.Модель чанджер, чтобы красиво х3
Меню:
1.Анимированный лейбл, чтобы уникально
2.Таб секшн, чтобы удобно
Автор скрипта: ANARXIST#0911
Скрины:
Пожалуйста, авторизуйтесь для просмотра ссылки.
- все скрины, включая все индикаторы
Апдейт лог:
27.06.21(1:47) - релиз темы
И всегда помните: "Не покупайте сраные пасты за 200, 300 и более рублей. Получите лучше бесплатно!"
Еще кстати у автора есть дискорд канал этой жски, но так как yougame не любит рекламу посторонних ресурсов, пишите в лс дискорда, там типо регулярные апдейты жски (ANARXIST#0911)
Ё маё, случайно
 
Олдфаг
Статус
Оффлайн
Регистрация
28 Дек 2018
Сообщения
2,585
Реакции[?]
1,436
Поинты[?]
2K
Скрипт нового поколения, а чтобы его получить надо писать кому-то и ждать пока ответят.
 
Государственная служба РФ
Пользователь
Статус
Оффлайн
Регистрация
26 Дек 2018
Сообщения
361
Реакции[?]
70
Поинты[?]
0
life is cheap, death is free!
Эксперт
Статус
Оффлайн
Регистрация
9 Дек 2019
Сообщения
1,602
Реакции[?]
513
Поинты[?]
2K
Респект конечно, но большая часть функций юзелесс и то что просто жрет фпс
 
legacy king
Начинающий
Статус
Оффлайн
Регистрация
29 Апр 2021
Сообщения
156
Реакции[?]
17
Поинты[?]
1K
Посмотреть вложение 157321

Панки, хой! Короче здорова. Я тут +-недельку посидел. Потом +- дня 4 оптимизировал скрипт, фиксил баги и вот. Самая стабильная версия скрипта 1.3 готова. Хочу еще сделать обзор своей жс на ютубе, но сначала захотел запостить ее здесь. Ну что, приступим.
Функционал:
Раге:
1.Дормант аим, чтобы ебать рип есп на вв
2.Сейф поинты он лимбы чтобы по ногам не мисать
3.Сейф поинты он авп чтобы по с авепе не мисать
4.хп\2 он ауто + дт, чтобы дамаг выбивать
5.Аутопик хелпер для удобства
6.Форсе хед, чтобы только в голову стрелять
7.Миндамаг, чтобы по единичке шить
Непопадайки:
1.Лагсинки, чтобы на углу стоять
2.Альтернатив фейклаги, чтобы не предиктили
3.Фристенды, чтобы мануалом шить
4.лоу дельта он слоувалк, чтобы у скитов бомбило
5.Анти брутфорсе, чтобы у всех бомбило
Визуалы:
1.Индикаторы под прицелом, чтобы красиво
2.АА стейт арровс, чтобы знать где десинк
3.Кастом фог, чтобы красиво х2
4.Кейбинды, чтобы знать что прожал
5.Ватермарк, чтобы на медии все знали, что вы играете с лучшим скриптом
6.Эксплоит индикатор, ваще хз, может вам надо, а так опять красиво
(+ 5 стилей для 4,5,6(классик, градиент, скит, радуга, фейд)
Миска хак:
1.Аспект ратио, чтобы чувствовать себя виртуалом
2.Хит \ Бай логи, чтобы знать о скидках на покупки и хитах + мисах, чтобы снова поорать на кряк
3.Модель чанджер, чтобы красиво х3
Меню:
1.Анимированный лейбл, чтобы уникально
2.Таб секшн, чтобы удобно
Автор скрипта: ANARXIST#0911
Скрины:
Пожалуйста, авторизуйтесь для просмотра ссылки.
- все скрины, включая все индикаторы
Апдейт лог:
27.06.21(1:47) - релиз темы
И всегда помните: "Не покупайте сраные пасты за 200, 300 и более рублей. Получите лучше бесплатно!"
Еще кстати у автора есть дискорд канал этой жски, но так как yougame не любит рекламу посторонних ресурсов, пишите в лс, там типо регулярные апдейты жски (ANARXIST#0911)
Добавь линк на скачку.
 
Забаненный
Статус
Оффлайн
Регистрация
31 Дек 2018
Сообщения
442
Реакции[?]
212
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Посмотреть вложение 157321

Панки, хой! Короче здорова. Я тут +-недельку посидел. Потом +- дня 4 оптимизировал скрипт, фиксил баги и вот. Самая стабильная версия скрипта 1.3 готова. Хочу еще сделать обзор своей жс на ютубе, но сначала захотел запостить ее здесь. Ну что, приступим.
Функционал:
Раге:
1.Дормант аим, чтобы ебать рип есп на вв
2.Сейф поинты он лимбы чтобы по ногам не мисать
3.Сейф поинты он авп чтобы по с авепе не мисать
4.хп\2 он ауто + дт, чтобы дамаг выбивать
5.Аутопик хелпер для удобства
6.Форсе хед, чтобы только в голову стрелять
7.Миндамаг, чтобы по единичке шить
Непопадайки:
1.Лагсинки, чтобы на углу стоять
2.Альтернатив фейклаги, чтобы не предиктили
3.Фристенды, чтобы мануалом шить
4.лоу дельта он слоувалк, чтобы у скитов бомбило
5.Анти брутфорсе, чтобы у всех бомбило
Визуалы:
1.Индикаторы под прицелом, чтобы красиво
2.АА стейт арровс, чтобы знать где десинк
3.Кастом фог, чтобы красиво х2
4.Кейбинды, чтобы знать что прожал
5.Ватермарк, чтобы на медии все знали, что вы играете с лучшим скриптом
6.Эксплоит индикатор, ваще хз, может вам надо, а так опять красиво
(+ 5 стилей для 4,5,6(классик, градиент, скит, радуга, фейд)
Миска хак:
1.Аспект ратио, чтобы чувствовать себя виртуалом
2.Хит \ Бай логи, чтобы знать о скидках на покупки и хитах + мисах, чтобы снова поорать на кряк
3.Модель чанджер, чтобы красиво х3
Меню:
1.Анимированный лейбл, чтобы уникально
2.Таб секшн, чтобы удобно
Автор скрипта: ANARXIST#0911
Скрины:
Пожалуйста, авторизуйтесь для просмотра ссылки.
- все скрины, включая все индикаторы
Апдейт лог:
27.06.21(1:47) - релиз темы
Короче забыл вчера прикрепить ссылку на скачку, поздно было (просто у автора маразм)
Короче вот
Пожалуйста, авторизуйтесь для просмотра ссылки.
И всегда помните: "Не покупайте сраные пасты за 200, 300 и более рублей. Получите лучше бесплатно!"
Еще кстати у автора есть дискорд канал этой жски, но так как yougame не любит рекламу посторонних ресурсов, пишите в лс, там типо регулярные апдейты жски (ANARXIST#0911)
Deobf
JavaScript:
UI.AddLabel(" <----------------------------------->");
UI.AddLabel("               [Infernal tech]");
UI.AddLabel("                [---Very---]");
UI.AddLabel("                [----hot---]");
UI.AddLabel("                [----js----]");
UI.AddLabel("    [Credits to ANARXIST#0911]");
UI.AddLabel(" <----------------------------------->");
UI.SetEnabled("Script items", "               [Infernal tech]", 0);
UI.SetEnabled("Script items", "                [---Very---]", 0);
UI.SetEnabled("Script items", "                [----hot---]", 0);
UI.SetEnabled("Script items", "                [----js----]", 0);
var lasttime = 0;

function anim_label() {
    var b = parseInt((Globals.Curtime() * 2));
    if (b != lasttime) {
        switch ((b) % 5) {
        case 0:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 1);
            break;
        case 1:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 1);
            break;
        case 2:
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "                [---Very---]", 1);
            break;
        case 3:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 1);
            break;
        case 4:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 1);
            break
        }
    }
    lasttime = b
}
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([255, 130, 130, 255], "      ███████████    █      ███    ██████   █████   ██████        █      ███   █      ███\n");
Cheat.PrintColor([255, 130, 130, 255], "           ██        █     ██      █    █  ██        ██  ██       █     ██     ██       █\n");
Cheat.PrintColor([255, 130, 130, 255], "           ██        ██   ██      ██    █  █        ██    █       ██   ██     ███      ██\n");
Cheat.PrintColor([255, 130, 130, 255], "          ██        ████  █     ██████     ██████   ███████      ████  █      █ █     ██\n");
Cheat.PrintColor([255, 130, 130, 255], "         ██         █  ████      ██  █    ███       █ ██         █  ████     ████     █\n");
Cheat.PrintColor([255, 130, 130, 255], "         ██        ██   ██      ██       ██        ██  ██   █   ██   ██     ██  ██ █  ██    █\n");
Cheat.PrintColor([255, 130, 130, 255], "     ██████████   ██     ██     ██        ██████   ██    ████  ██     ██  ███    ██     ████\n");
Cheat.PrintColor([255, 130, 130, 255], "\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                               ██\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                            ██  ████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                         ██   ████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                          █████████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                           ████████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                             █████████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                  ███      ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                   ██   █████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ████ █████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                            █████  ██ ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                          ██████   ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                          █████     ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                         ████       ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                         █         ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                   ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                  ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ██\n");
Cheat.PrintColor([255, 130, 130, 255], "\n");
Cheat.PrintColor([130, 130, 255, 255], "                        ████           █████      █████        ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ████████   ██         ██   ███     ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                            ██        █         ██      █     █      █\n");
Cheat.PrintColor([130, 130, 255, 255], "                            █          ██████   █            █████████\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ██        ███        ██          ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ██       ██           ██    ██   █      █\n");
Cheat.PrintColor([130, 130, 255, 255], "                          ██         ██████       ██████   ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([130, 130, 255, 255], "Infernal tech loaded successfully\n");
Cheat.PrintColor([130, 130, 255, 255], "Welcome: " + Cheat.GetUsername() + "\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([255, 205, 255, 255], "Don't buy shitty pastes. Get the best for free!\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
const menu = function () {
    const b = UI.GetValue("Script items", "Menu");
    rage = b == 0, aa = b == 1, vis = b == 2, misc = b == 3, cont = b == 4;
    UI.SetEnabled("Script items", "Mindmg", rage);
    UI.SetEnabled("Script items", "Dormant Aimbot", rage);
    UI.SetEnabled("Script items", "Force sp on limbs", rage);
    UI.SetEnabled("Script items", "Enable HP/2", rage);
    UI.SetEnabled("Script items", "Force Head", rage);
    UI.SetEnabled("Script items", "Autopeek helper [beta]", rage);
    UI.SetEnabled("Script items", "Force sp on AWP", rage);
    UI.SetEnabled("Script items", "LD on slow walk", aa);
    UI.SetEnabled("Script items", "Freestand on key", aa);
    UI.SetEnabled("Script items", "Alternative fake-lag", aa);
    UI.SetEnabled("Script items", "Lagsync", aa);
    UI.SetEnabled("Script items", "Anti-bruteforce", aa);
    UI.SetEnabled("Script items", "Indicators", vis);
    UI.SetEnabled("Script items", "Enable AA arrows", vis);
    UI.SetEnabled("Script items", "Fog", vis);
    UI.SetEnabled("Script items", "KeyBinds", vis);
    UI.SetEnabled("Script items", "Watermark", vis);
    UI.SetEnabled("Script items", "Exploits indicator", vis);
    UI.SetEnabled("Script items", "Aspect ratio changer", misc);
    UI.SetEnabled("Script items", "Logs", misc);
    UI.SetEnabled("Script items", "Model changer (based on team)", misc);
    UI.SetEnabled("Script items", "ClanTag", misc);
    UI.SetEnabled("Script items", "FPS Boost", misc);
    UI.SetEnabled("Script items", "Discord - ANARXIST#0911", cont);
    UI.SetEnabled("Script items", "YouTube - youtube.com/c/anarxist", cont);
    UI.SetEnabled("Script items", "VK - vk.com/an4rx1st", cont);
    UI.SetEnabled("Script items", "OnlyFans - soon...", cont)
};
UI.AddDropdown("Menu", ["Rage", "Anti-Aim", "Visuals", "Misc", "Contacts"]);
UI.AddLabel("Discord - ANARXIST#0911");
UI.AddLabel("YouTube - youtube.com/c/anarxist");
UI.AddLabel("VK - vk.com/an4rx1st");
UI.AddLabel("OnlyFans - soon...");
UI.AddCheckbox("Dormant Aimbot");
UI.AddHotkey("Dormant Aimbot keybind");
UI.AddCheckbox("Force sp on limbs");
UI.AddMultiDropdown("Force safepoint on limbs", ["Legs", "Feet"]);
UI.AddCheckbox("Enable HP/2");
UI.AddLabel("Works only with auto & enabled DT");
UI.AddCheckbox("Force Head");
UI.AddHotkey("Force Head keybind");
UI.AddCheckbox("Autopeek helper [beta]");
UI.AddCheckbox("Mindmg");
UI.AddHotkey("Minimum Damage Override");
UI.AddSliderInt("Heavy Pistol Mindmg", 0, 130);
UI.AddSliderInt("Scout Mindmg", 0, 130);
UI.AddSliderInt("AWP Mindmg", 0, 130);
UI.AddSliderInt("Auto Mindmg", 0, 130);
UI.AddLabel("<------------------------------------>");
UI.AddSliderInt("Normal Heavy Pistol dmg", 0, 130);
UI.AddSliderInt("Normal Scout dmg", 0, 130);
UI.AddSliderInt("Normal AWP dmg", 0, 130);
UI.AddSliderInt("Normal Auto dmg", 0, 130);
UI.AddCheckbox("Force sp on AWP");
UI.AddCheckbox("Lagsync");
UI.AddCheckbox("Freestand on key");
UI.AddHotkey("Freestand keybind");
UI.AddCheckbox("Alternative fake-lag");
UI.AddSliderInt("Send", 0, 16);
UI.AddSliderInt("Choke", 0, 16);
UI.AddCheckbox("LD on slow walk");
UI.AddCheckbox("Anti-bruteforce");
UI.AddCheckbox("Indicators");
UI.AddCheckbox("Enable AA arrows");
UI.AddColorPicker("Main color");
UI.AddCheckbox("Fog");
UI.AddColorPicker("Fog color");
UI.AddSliderInt("Distance", 0, 2000);
UI.AddSliderInt("Density", 0, 100);
UI.AddCheckbox("KeyBinds");
UI.AddCheckbox("Watermark");
UI.AddCheckbox("Exploits indicator");
UI.AddCheckbox("Indicators transparency");
UI.AddCheckbox("Aspect ratio changer");
UI.AddSliderFloat("Aspect ratio", 0, 5);
UI.AddCheckbox("Logs");
UI.AddCheckbox("Model changer (based on team)");
UI.AddDropdown("CT", ["None", "'TwoTimes' McCoy", "Seal Team 6 Soldier", "Buckshot", "Lt. Commander Ricksaw", "Dragomir", "Rezan The Ready", "Maximus", "Blackwolf", "The Doctor' Romanov", "B Squadron Officer", "3rd Commando Company", "Special Agent Ava", "Operator", "Markus Delrow", "Michael Syfers", "Enforcer", "Slingshot", "Soldier", "The Elite Mr. Muhlik", "Ground Rebel", "Osiris", "Prof. Shahmat", "Heavy armor"]);
UI.AddDropdown("T", ["None", "'TwoTimes' McCoy", "Seal Team 6 Soldier", "Buckshot", "Lt. Commander Ricksaw", "Dragomir", "Rezan The Ready", "Maximus", "Blackwolf", "The Doctor' Romanov", "B Squadron Officer", "3rd Commando Company", "Special Agent Ava", "Operator", "Markus Delrow", "Michael Syfers", "Enforcer", "Slingshot", "Soldier", "The Elite Mr. Muhlik", "Ground Rebel", "Osiris", "Prof. Shahmat", "Heavy armor"]);
UI.AddCheckbox("ClanTag");
UI.AddCheckbox("FPS Boost");

function calc_dist(f, e) {
    x = f[0] - e[0];
    y = f[1] - e[1];
    z = f[2] - e[2];
    return Math.sqrt(x * x + y * y + z * z)
}

function for_tab() {
    if (UI.GetValue("Script items", "Dormant Aimbot")) {
        UI.SetEnabled("Script items", "Dormant Aimbot keybind", rage)
    } else {
        UI.SetEnabled("Script items", "Dormant Aimbot keybind", 0)
    }
}

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

function subtract(f, e) {
    x = f[0] - e[0];
    y = f[1] - e[1];
    z = f[2] - e[2];
    var g = [x, y, z];
    return (g)
}

function VectorAngles(b) {
    var j;
    var e, g, f;
    if (b[1] == 0 && b[0] == 0) {
        g = 0;
        if (b[2] > 0) {
            f = 270
        } else {
            f = 90
        }
    } else {
        g = (Math.atan2(b[1], b[0]) * 180 / Math.PI);
        if (g < 0) {
            g += 360
        }
        e = Math.sqrt(b[0] * b[0] + b[1] * b[1]);
        f = (Math.atan2(-b[2], e) * 180 / Math.PI);
        if (f < 0) {
            f += 360
        }
    }
    x = f;
    y = g;
    z = 0;
    j = [x, y, z];
    return j
}

function can_shoot(e) {
    var b = Entity.GetWeapon(e);
    var g = Entity.GetClassID(b);
    var f = g == 107 || g == 108 || g == 96 || g == 99 || g == 112 || g == 155 || g == 47;
    var j = Entity.GetProp(b, "DT_BaseCombatWeapon", "m_iClip1");
    var k = Entity.GetProp(b, "CBasePlayer", "m_fFlags");
    if (f || j == 0 || k & 1 << 1) {
        return false
    }
    return true
}
va = function (f, e) {
    return [f[0] + e[0], f[1] + e[1], f[2] + e[2]]
};

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

function check() {
    var j = Entity.GetEnemies();
    var l = j.filter(function (n) {
        return Entity.IsDormant(n) && Entity.IsAlive(n) && Trace.Bullet(Entity.GetLocalPlayer(), n, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(n), [0, 0, 45]))[1] > 1
    });
    var m = l.sort(function (n, e) {
        return Trace.Bullet(Entity.GetLocalPlayer(), n, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(n), [0, 0, 45]))[1] - Trace.Bullet(Entity.GetLocalPlayer(), e, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(e), [0, 0, 45]))[1]
    })[0];
    if (!m) {
        return
    }
    var g = Entity.GetWeapon(Entity.GetLocalPlayer());
    var f = Entity.GetProp(g, "DT_BaseCombatWeapon", "m_flNextPrimaryAttack");
    var b = VectorAngles(subtract(va(Entity.GetRenderOrigin(m), [0, 0, 45]), Entity.GetEyePosition(Entity.GetLocalPlayer())));
    if (!can_shoot(Entity.GetLocalPlayer())) {
        return
    }
    if (UI.IsHotkeyActive("Script Items", "Dormant Aimbot")) {
        if (Globals.Curtime() - f > 0.1) {
            UserCMD.SetAngles(b);
            var k = Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_fFlags");
            Cheat.ExecuteCommand("+attack");
            shot = true;
            dmg = Trace.Bullet(Entity.GetLocalPlayer(), m, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(m), [0, 0, 45]))[1]
        }
    }
}

function wrap() {
    try {
        check()
    } catch (b) {}
}

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

function safeLegs() {
    const b = UI.GetValue("Misc", "Force safepoint on limbs");
    if (b & (1 << 0)) {
        Ragebot.ForceHitboxSafety(7);
        Ragebot.ForceHitboxSafety(8);
        Ragebot.ForceHitboxSafety(9);
        Ragebot.ForceHitboxSafety(10)
    }
    if (b & (1 << 1)) {
        Ragebot.ForceHitboxSafety(11);
        Ragebot.ForceHitboxSafety(12)
    }
}

function safe_tab() {
    if (UI.GetValue("Script items", "Force sp on limbs")) {
        UI.SetEnabled("Script items", "Force safepoint on limbs", rage)
    } else {
        UI.SetEnabled("Script items", "Force safepoint on limbs", 0)
    }
}

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

function hp_tab() {
    if (UI.GetValue("Script items", "Enable HP/2")) {
        UI.SetEnabled("Script items", "Works only with auto & enabled DT", rage)
    } else {
        UI.SetEnabled("Script items", "Works only with auto & enabled DT", 0)
    }
}

function maine() {
    if (UI.GetValue("Rage", "General", "Exploits", "Doubletap")) {
        var b = Ragebot.GetTarget();
        health = getPlayerHealth(b);
        if (!UI.GetValue("Script items", "Enable HP/2") == 1) {
            return
        }
        if (!Entity.IsAlive(b)) {
            return
        }
        switch (health) {
        case health >= 80:
            Ragebot.ForceTargetMinimumDamage(b, 51);
            break;
        case health <= 79:
            Ragebot.ForceTargetMinimumDamage(b, 41);
            break;
        case health >= 40 && health <= 59:
            Ragebot.ForceTargetMinimumDamage(b, 31);
            break;
        case health >= 20 && health <= 39:
            Ragebot.ForceTargetMinimumDamage(b, 21);
            break
        }
    }
}
var general_hit_cache = UI.GetValue("Rage", "GENERAL", "Targeting", "Hitboxes");
var pistol_hit_cache = UI.GetValue("Rage", "PISTOL", "Targeting", "Hitboxes");
var heavy_hit_cache = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes");
var scout_hit_cache = UI.GetValue("Rage", "SCOUT", "Targeting", "Hitboxes");
var awp_hit_cache = UI.GetValue("Rage", "AWP", "Targeting", "Hitboxes");
var auto_hit_cache = UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes");

function fhead_tab() {
    if (UI.GetValue("Script items", "Force Head")) {
        UI.SetEnabled("Script items", "Force Head keybind", rage)
    } else {
        UI.SetEnabled("Script items", "Force Head keybind", 0)
    }
}

function force_head() {
    if (UI.IsHotkeyActive("Script items", "Force Head keybind")) {
        UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", 1)
    } else {
        UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", general_hit_cache);
        UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", pistol_hit_cache);
        UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", heavy_hit_cache);
        UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", scout_hit_cache);
        UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", awp_hit_cache);
        UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", auto_hit_cache)
    }
}
var screen_size = Global.GetScreenSize();
var isInverted;
var drawDangerous = 1;
var heavy_old = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage");
var scout_old = UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage");
var awp_old = UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage");
var auto_old = UI.GetValue("Rage", "AUTOSNIPERS", "Targeting", "Minimum damage");

function isActive(b) {
    return UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", b)
}

function setValue(b, e) {
    UI.SetValue("Rage", b.toUpperCase(), "Targeting", "Minimum damage", e)
}

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

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

function isAwp(b) {
    if (b == "awp") {
        return true
    }
}

function isScout(b) {
    if (b == "ssg 08") {
        return true
    }
}

function isElse(b) {
    if (!b == "ssg 08" || b == "awp" || b == "scar 20" || weapon_name == "g3sg1" || b == "r8 revolver" || b == "desert eagle") {
        return true
    }
}

function onCM() {
    var g = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg");
    var f = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg");
    var e = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg");
    var b = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg");
    heavy_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg");
    scout_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg");
    awp_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg");
    auto_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg");
    weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
    if (isActive("Minimum Damage Override") && isHeavyPistol(weapon_name) && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
        setValue("HEAVY PISTOL", heavy_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("HEAVY PISTOL", g)
        } else {
            setValue("HEAVY PISTOL", heavy_old)
        }
    }
    if (isActive("Minimum Damage Override") && weapon_name == "ssg 08" && UI.GetValue("Script items", "Mindmg")) {
        setValue("SCOUT", scout_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("SCOUT", f)
        } else {
            setValue("SCOUT", scout_old)
        }
    }
    if (isActive("Minimum Damage Override") && weapon_name == "awp" && UI.GetValue("Script items", "Mindmg")) {
        setValue("AWP", awp_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("AWP", e)
        } else {
            setValue("AWP", awp_old)
        }
    }
    if (isActive("Minimum Damage Override") && isAutoSniper(weapon_name) && UI.GetValue("Script items", "Mindmg")) {
        setValue("AUTOSNIPER", auto_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("AUTOSNIPER", b)
        } else {
            setValue("AUTOSNIPER", scout_old)
        }
    }
}

function mindmg_tab() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "<------------------------------------>", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg", rage)
    } else {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "<------------------------------------>", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg", 0)
    }
}
var spback = false;

function awp_sp() {
    SlocalPlayer = Entity.GetLocalPlayer();
    SlocalPlayerWeapon = Entity.GetWeapon(SlocalPlayer);
    SlocalPlayerWeaponName = Entity.GetName(SlocalPlayerWeapon);
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Force sp on AWP") && SlocalPlayerWeaponName == "awp") {
        forcesp = UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point");
        if (!forcesp) {
            UI.ToggleHotkey("Rage", "GENERAL", "General", "Force safe point");
            spback = true
        }
    } else {
        if (spback) {
            UI.ToggleHotkey("Rage", "GENERAL", "General", "Force safe point");
            spback = false
        }
    }
}
multiplierOptions = [-2, -1, 1, 2];
var fl_cache = UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled");

function LagSync() {
    if (UI.GetValue("Script items", "Lagsync")) {
        AntiAim.SetOverride(1);
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", 1);
        AntiAim.SetFakeOffset(getRandomIntInclusive(20, 40));
        AntiAim.SetRealOffset(getRandomIntInclusive(30, 50) * multiplierOptions[getRandomIntInclusive(0, multiplierOptions.length)])
    } else {
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", fl_cache)
    }
}

function getRandomIntInclusive(e, b) {
    e = Math.ceil(e);
    b = Math.floor(b);
    return Math.floor(Math.random() * (b - e + 1)) + e
}

function fs_tab() {
    if (UI.GetValue("Script items", "Freestand on key")) {
        UI.SetEnabled("Script items", "Freestand keybind", aa)
    } else {
        UI.SetEnabled("Script items", "Freestand keybind", 0)
    }
}

function freestand() {
    if (UI.IsHotkeyActive("Script items", "Freestand keybind")) {
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", 1)
    } else {
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", autodir_old)
    }
}

function fl_tab() {
    if (UI.GetValue("Script items", "Alternative fake-lag")) {
        UI.SetEnabled("Script items", "Send", aa);
        UI.SetEnabled("Script items", "Choke", aa)
    } else {
        UI.SetEnabled("Script items", "Send", 0);
        UI.SetEnabled("Script items", "Choke", 0)
    }
}
var tickcount = 0;
var flip = false;

function set_fl() {
    var e = UI.GetValue("Script items", "Send");
    var b = UI.GetValue("Script items", "Choke");
    if (tickcount >= b && !flip) {
        flip = true;
        tickcount = 0
    }
    if (tickcount >= e && flip) {
        flip = false;
        tickcount = 0
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", !flip ? b : 0);
    tickcount++
}

function roundstart() {
    tickcount = 0
}

function exploit_conf() {
    var b = Entity.GetLocalPlayer();
    if (!b || !Entity.IsAlive(b)) {
        return
    }
    var f = Entity.GetProp(b, "DT_BasePlayer", "m_vecVelocity[0]");
    var e = Math.sqrt(f[0] * f[0] + f[1] * f[1] + f[2] * f[2]);
    var g = false;
    if (e > 5) {
        g = true
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", g);
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
        var g = false
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", g)
}
var autodir_old = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction");
var instant_old = UI.GetValue("Rage", "Exploits", "Doubletap instant");

function autopeek() {
    var b = Entity.GetGameRulesProxy();
    if (UI.GetValue("Script items", "Autopeek helper [beta]") && UI.IsHotkeyActive("Misc", "Movement", "Auto peek")) {
        UI.SetValue("Rage", "Exploits", "Doubletap instant", 1);
        !Entity.GetProp(b, "CCSGameRulesProxy", "m_bIsValveDS") && !UI.IsHotkeyActive("Script items", "Freestand keybind") && UI.ToggleHotkey("Script items", "Freestand keybind");
        !Entity.GetProp(b, "CCSGameRulesProxy", "m_bIsValveDS") && !UI.IsHotkeyActive("Rage", "GENERAL", "Doubletap") && UI.ToggleHotkey("Rage", "GENERAL", "Doubletap")
    }
}

function GetScriptOption(b) {
    var e = UI.GetValue("Misc", "JAVASCRIPT", "Script items", b);
    return e
}

function getRndInteger(e, b) {
    return Math.floor(Math.random() * (b - e + 1)) + e
}

function ld() {
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
        AntiAim.SetOverride(1);
        if (GetScriptOption("LD on slow walk")) {
            var k = -20;
            var f = 0;
            var j = getRndInteger(15, 25);
            var b = getRndInteger(20, 30);
            AntiAim.SetRealOffset(k);
            AntiAim.SetFakeOffset(f);
            var g = j + b;
            var e = j - 20;
            AntiAim.SetLBYOffset(j);
            AntiAim.SetLBYOffset(b);
            AntiAim.SetLBYOffset(g);
            AntiAim.SetFakeOffset(e)
        }
    }
}

function unload() {
    AntiAim.SetOverride(0)
}

function main() {
    var b = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
    if (b) {
        AntiAim.SetOverride(1);
        AntiAim.SetFakeOffset(0);
        AntiAim.SetRealOffset(-45);
        AntiAim.SetLBYOffset(0)
    } else {
        AntiAim.SetOverride(1);
        AntiAim.SetFakeOffset(0);
        AntiAim.SetRealOffset(45);
        AntiAim.SetLBYOffset(0)
    }
}

function invert() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Anti-bruteforce")) {
        UI.ToggleHotkey("Anti-Aim", "Fake angles", "Inverter")
    }
}
screen_size = Global.GetScreenSize();
alpha_main = 0;
alpha_anim = 0;
add_anim = 0;
value_duck = 0;
alpha_duck_anim = 0;
alpha_duck = 0;
add_duck = 0;
value_safe = 0;
alpha_safe = 0;
add_safe = 0;
value_da = 0;
alpha_da = 0;
add_da = 0;
value_damage = 0;
alpha_damage = 0;
add_damage = 0;
value_legit = 0;
alpha_legit = 0;
add_legit = 0;
value_autopeek = 0;
alpha_autopeek = 0;
add_autopeek = 0;
value_onshot = 0;
alpha_onshot = 0;
add_onshot = 0;
value_fs = 0;
alpha_fs = 0;
add_fs = 0;
value_dt = 0;
alpha_dt = 0;
add_dt = 0;
red_dt = 0;
green_dt = 0;
value_hs = 0;
alpha_hs = 0;
add_hs = 0;
value_arc = 0;
alpha_anim_state = false;
alpha_duck_state = false;
clamp = function (f, e, b) {
    if (f > b) {
        return b
    }
    if (e > f) {
        return e
    }
    return f
};

function indication() {
    if (UI.GetValue("Script items", "Indicators")) {
        if (World.GetServerString() == "") {
            return
        }
        player = Entity.GetLocalPlayer();
        isDoubletap = UI.IsHotkeyActive("Rage", "Exploits", "Doubletap") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isHideShot = UI.IsHotkeyActive("Rage", "Exploits", "Hide shots") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isDamageOverride = UI.IsHotkeyActive("Script items", "Minimum Damage Override");
        isAutoPeek = UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek");
        isForceBody = UI.IsHotkeyActive("Rage", "General", "Force body aim");
        isFakeDuck = UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isDormant = UI.IsHotkeyActive("Script items", "Dormant Aimbot keybind");
        isInverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
        isDesyncMode = UI.GetValue("Anti-Aim", "Fake angles", "Fake desync");
        isFreestand = UI.IsHotkeyActive("Script items", "Freestand keybind");
        isLegitAA = UI.IsHotkeyActive("Rage", "General", "Force body aim");
        isSlowWalk = UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk");
        isSafety = UI.IsHotkeyActive("Rage", "General", "Force safe point");
        var e = UI.GetColor("Misc", "JAVASCRIPT", "Main color");
        var b = Global.GetScreenSize();
        add_y = 80;
        add_factor = 10;
        fade_factor = ((1 / 0.15) * Globals.Frametime() * 200) / 200;
        fade_factor_anim = ((1 / 0.9) * Globals.Frametime()) * 200;
        fade_factor_duck = ((1 / 0.1) * Globals.Frametime()) * 200;
        if ((!Entity.IsAlive(player) && alpha_main != 0 || Input.IsKeyPressed(9))) {
            alpha_main = clamp(alpha_main - fade_factor * 100, 0, 255)
        }
        if (Entity.IsAlive(player) && alpha_main != 255 && !Input.IsKeyPressed(9)) {
            alpha_main = clamp(alpha_main + fade_factor * 100, 0, 255)
        }
        if (isDamageOverride && alpha_damage != 1 && alpha_main == 255) {
            value_damage = clamp(value_damage + fade_factor, 0, 1);
            alpha_damage = clamp(alpha_damage + fade_factor * value_damage, 0, 1);
            add_damage = clamp(add_damage + fade_factor * add_damage, 0, 1)
        }
        if (!isDamageOverride && alpha_damage != 0 || alpha_main != 255) {
            value_damage = clamp(value_damage - fade_factor, 0, 1);
            alpha_damage = clamp(alpha_damage - fade_factor * alpha_damage, 0, 1);
            add_damage = clamp(add_damage - fade_factor * add_damage, 0, 1)
        }
        if (alpha_damage < 0.01) {
            alpha_damage = 0
        }
        if (add_damage < 0.01) {
            add_damage = 0
        }
        if (isLegitAA && alpha_legit != 1 && alpha_main == 255) {
            value_legit = clamp(value_legit + fade_factor, 0, 1);
            alpha_legit = clamp(alpha_legit + fade_factor * value_legit, 0, 1);
            add_legit = clamp(add_legit + fade_factor * value_legit, 0, 1)
        }
        if (!isLegitAA && alpha_legit != 0 || alpha_main != 255) {
            value_legit = clamp(value_legit - fade_factor, 0, 1);
            alpha_legit = clamp(alpha_legit - fade_factor * alpha_legit, 0, 1);
            add_legit = clamp(add_legit - fade_factor * add_legit, 0, 1)
        }
        if (alpha_legit < 0.01) {
            alpha_legit = 0
        }
        if (add_legit < 0.01) {
            add_legit = 0
        }
        if (isAutoPeek && alpha_autopeek != 1 && alpha_main == 255) {
            value_autopeek = clamp(value_autopeek + fade_factor, 0, 1);
            alpha_autopeek = clamp(alpha_autopeek + fade_factor * value_autopeek, 0, 1);
            add_autopeek = clamp(add_autopeek + fade_factor * value_autopeek, 0, 1)
        }
        if (!isAutoPeek && alpha_autopeek != 0 || alpha_main != 255) {
            value_autopeek = clamp(value_autopeek - fade_factor, 0, 1);
            alpha_autopeek = clamp(alpha_autopeek - fade_factor * alpha_autopeek, 0, 1);
            add_autopeek = clamp(add_autopeek - fade_factor * add_autopeek, 0, 1)
        }
        if (alpha_autopeek < 0.01) {
            alpha_autopeek = 0
        }
        if (add_autopeek < 0.01) {
            add_autopeek = 0
        }
        if (isFreestand && alpha_fs != 1 && alpha_main == 255) {
            value_fs = clamp(value_fs + fade_factor, 0, 1);
            alpha_fs = clamp(alpha_fs + fade_factor * value_fs, 0, 1);
            add_fs = clamp(add_fs + fade_factor * value_fs, 0, 1)
        }
        if (!isFreestand && alpha_fs != 0 || alpha_main != 255) {
            value_fs = clamp(value_fs - fade_factor, 0, 1);
            alpha_fs = clamp(alpha_fs - fade_factor * alpha_fs, 0, 1);
            add_fs = clamp(add_fs - fade_factor * add_fs, 0, 1)
        }
        if (alpha_fs < 0.01) {
            alpha_fs = 0
        }
        if (add_fs < 0.01) {
            add_fs = 0
        }
        if (isSafety && alpha_safe != 1 && alpha_main == 255) {
            value_safe = clamp(value_safe + fade_factor, 0, 1);
            alpha_safe = clamp(alpha_safe + fade_factor * value_safe, 0, 1);
            add_safe = clamp(add_safe + fade_factor * value_safe, 0, 1)
        }
        if (!isSafety && alpha_safe != 0 || alpha_main != 255) {
            value_safe = clamp(value_safe - fade_factor, 0, 1);
            alpha_safe = clamp(alpha_safe - fade_factor * alpha_safe, 0, 1);
            add_safe = clamp(add_safe - fade_factor * add_safe, 0, 1)
        }
        if (alpha_safe < 0.01) {
            alpha_safe = 0
        }
        if (add_safe < 0.01) {
            add_safe = 0
        }
        if (isDormant && alpha_da != 1 && alpha_main == 255) {
            value_da = clamp(value_da + fade_factor, 0, 1);
            alpha_da = clamp(alpha_da + fade_factor * value_da, 0, 1);
            add_da = clamp(add_da + fade_factor * value_da, 0, 1)
        }
        if (!isDormant && alpha_da != 0 || alpha_main != 255) {
            value_da = clamp(value_da - fade_factor, 0, 1);
            alpha_da = clamp(alpha_da - fade_factor * alpha_da, 0, 1);
            add_da = clamp(add_da - fade_factor * add_da, 0, 1)
        }
        if (alpha_da < 0.01) {
            alpha_da = 0
        }
        if (add_da < 0.01) {
            add_da = 0
        }
        if (!isDoubletap && !isHideShot && alpha_main == 255) {
            add_anim = clamp(add_anim + fade_factor, 0, 1);
            if (alpha_anim_state == false) {
                alpha_anim = clamp(alpha_anim + fade_factor_anim, 0, 255);
                if (alpha_anim == 255) {
                    alpha_anim_state = true
                }
            } else {
                alpha_anim = clamp(alpha_anim - fade_factor_anim, 0, 255);
                if (alpha_anim == 0) {
                    alpha_anim_state = false
                }
            }
        } else {
            alpha_anim = clamp(alpha_anim - fade_factor * 100, 0, 255);
            add_anim = clamp(add_anim - fade_factor * add_anim, 0, 1)
        }
        if (isFakeDuck) {
            if (alpha_duck_state == false) {
                alpha_duck_anim = clamp(alpha_duck_anim + fade_factor_duck, 0, 255);
                if (alpha_duck_anim == 255) {
                    alpha_duck_state = true
                }
            } else {
                alpha_duck_anim = clamp(alpha_duck_anim - fade_factor_duck, 0, 255);
                if (alpha_duck_anim == 0) {
                    alpha_duck_state = false
                }
            }
        }
        if (!isFakeDuck) {
            alpha_duck_anim = alpha_duck * 255
        }
        if (isFakeDuck && add_duck != 1 && alpha_main == 255) {
            value_duck = clamp(value_duck + fade_factor, 0, 1);
            add_duck = clamp(add_duck + fade_factor * value_duck, 0, 1);
            alpha_duck = clamp(alpha_duck + fade_factor * value_duck, 0, 1)
        }
        if (!isFakeDuck && alpha_duck != 0 || alpha_main != 255) {
            value_duck = clamp(value_duck - fade_factor, 0, 1);
            add_duck = clamp(add_duck - fade_factor * add_duck, 0, 1);
            alpha_duck = clamp(alpha_duck - fade_factor * alpha_duck, 0, 1)
        }
        if (alpha_duck < 0.01) {
            alpha_duck = 0
        }
        if (add_duck < 0.01) {
            add_duck = 0
        }
        if (!isFakeDuck && isDoubletap && green_dt != 1 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            value_dt = clamp(value_dt + fade_factor, 0, 1);
            alpha_dt = clamp(alpha_dt + fade_factor * value_dt, 0, 1);
            green_dt = clamp(green_dt + fade_factor * value_dt, 0, 1)
        }
        if (!isFakeDuck && isDoubletap) {
            add_dt = clamp(add_dt + fade_factor * value_dt, 0, 1)
        }
        if (!isDoubletap || alpha_main != 255 || isFakeDuck) {
            alpha_dt = clamp(alpha_dt - fade_factor * alpha_dt, 0, 1)
        }
        if (!isDoubletap || alpha_main != 255 || isFakeDuck) {
            add_dt = clamp(add_dt - fade_factor * add_dt, 0, 1)
        }
        if (!isDoubletap && alpha_dt != 0 || Exploit.GetCharge() <= 0.3 || alpha_main != 255) {
            value_dt = clamp(value_dt - fade_factor, 0, 1);
            green_dt = clamp(green_dt - fade_factor * green_dt, 0, 1)
        }
        if (isDoubletap && red_dt != 150 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            red_dt = clamp(red_dt - fade_factor * 75, 150, 255)
        }
        if (!isDoubletap && red_dt != 255 || Exploit.GetCharge() <= 0.3 || alpha_main != 255) {
            red_dt = clamp(red_dt + fade_factor * 75, 150, 255)
        }
        if (alpha_dt < 0.01) {
            alpha_dt = 0
        }
        if (add_dt < 0.01) {
            add_dt = 0
        }
        dt_color = [red_dt, 255 * green_dt, 0, 255 * alpha_dt];
        if (!isFakeDuck && isHideShot && !isDoubletap && alpha_hs != 1 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            value_hs = clamp(value_hs + fade_factor, 0, 1);
            alpha_hs = clamp(alpha_hs + fade_factor * value_hs, 0, 1);
            add_hs = clamp(alpha_hs + fade_factor * value_hs, 0, 1)
        }
        if (!isHideShot || isDoubletap && alpha_hs != 0 || alpha_main != 255 || isFakeDuck) {
            value_hs = clamp(value_hs - fade_factor, 0, 1);
            alpha_hs = clamp(alpha_hs - fade_factor * alpha_hs, 0, 1);
            add_hs = clamp(alpha_hs - fade_factor * add_hs, 0, 1)
        }
        hs_color = [138, 43, 226, alpha_hs * 255];
        if (isDesyncMode == 0) {
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 26, 1, "INFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 26, 1, "RNAL", [0, 0, 0, 255], 3);
            if (isInverter == 1) {
                Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [e[0], e[1], e[2], 255], 3);
                Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [255, 255, 255, 255], 3)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [255, 255, 255, 255], 3);
                    Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [e[0], e[1], e[2], 255], 3)
                }
            }
        }
        if (isDesyncMode == 1) {
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 26, 1, "INFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 26, 1, "RNAL", [0, 0, 0, 255], 3);
            if (isInverter == 1) {
                Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [255, 255, 255, 255], 3);
                Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [e[0], e[1], e[2], 255], 3)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [e[0], e[1], e[2], 255], 3);
                    Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [255, 255, 255, 255], 3)
                }
            }
        }
        if (alpha_dt != 0) {
            add_y = add_y + add_dt * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 26, screen_size[1] / 2 + add_y - 45, 0, "DOUBLE TAP", [0, 0, 0, dt_color[3]], 3);
            Render.StringCustom(screen_size[0] / 2 - 25, screen_size[1] / 2 + add_y - 44, 0, "DOUBLE TAP", dt_color, 3)
        }
        if (isLegitAA) {
            add_y = add_y + add_legit * add_factor + 2;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 + add_y - 46, 0, "BODY", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "BODY", [255, 215, 0, 255], 3)
        }
        if (isSafety) {
            add_y = add_y + add_safe * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 + add_y - 46, 0, "SAFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "SAFE", [0, 191, 255, 255], 3)
        }
        if (alpha_hs != 0) {
            add_y = add_y + add_hs * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 8, screen_size[1] / 2 + add_y - 45, 0, "HIDE", [0, 0, 0, hs_color[3]], 3);
            Render.StringCustom(screen_size[0] / 2 - 7, screen_size[1] / 2 + add_y - 44, 0, "HIDE", hs_color, 3)
        }
        if (isFakeDuck || alpha_duck_anim > 0 && alpha_main > 50) {
            add_y = add_y + add_duck * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 - 2 + add_y - 45, 0, "DUCK", [0, 0, 0, alpha_duck_anim], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "DUCK", [0, 250, 154, alpha_duck_anim], 3)
        }
        if (alpha_da > 0) {
            add_y = add_y + add_da * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 22, screen_size[1] / 2 - 2 + add_y - 44, 0, "DORMANT", [0, 0, 0, alpha_da * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 21, screen_size[1] / 2 + add_y - 45, 0, "DORMANT", [238, 130, 238, alpha_da * 255], 3)
        }
        if (alpha_fs > 0) {
            add_y = add_y + add_fs * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 24, screen_size[1] / 2 - 2 + add_y - 42, 0, "FREESTAND", [0, 0, 0, alpha_fs * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 23, screen_size[1] / 2 + add_y - 43, 0, "FREESTAND", [0, 250, 154, alpha_fs * 255], 3)
        }
        if (isAutoPeek) {
            add_y = add_y + add_autopeek * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 23, screen_size[1] / 2 - 2 + add_y - 42, 0, "AUTOPEEK", [0, 0, 0, alpha_autopeek * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 22, screen_size[1] / 2 + add_y - 43, 0, "AUTOPEEK", [135, 206, 250, alpha_autopeek * 255], 3)
        }
    }
}

function menu_cb() {
    enabled = UI.GetValue("Anti-aim indication")
}

function menu_check() {
    if (UI.IsMenuOpen()) {
        menu_cb()
    }
}
UI.SetEnabled("Script items", "Main color", 0);
var screen_size = Global.GetScreenSize();

function ind() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable AA arrows")) {
        if (!World.GetServerString()) {
            return
        }
        isInverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
        isDesyncMode = UI.GetValue("Anti-Aim", "Fake angles", "Fake desync");
        var f = UI.GetColor("Misc", "JAVASCRIPT", "Main color");
        var e = Global.GetScreenSize();
        x = e[0];
        y = e[1];
        if (isDesyncMode == 0) {
            Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 4, 1, ">>>", [0, 0, 0, 255], 7);
            Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 4, 1, "<<<", [0, 0, 0, 255], 7);
            if (isInverter == 1) {
                Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [255, 255, 255, 255], 7);
                Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [f[0], f[1], f[2], 255], 7)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [255, 255, 255, 255], 7);
                    Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [f[0], f[1], f[2], 255], 7)
                }
            }
        }
        if (isDesyncMode == 1) {
            Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 4, 1, ">>>", [0, 0, 0, 255], 7);
            Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 4, 1, "<<<", [0, 0, 0, 255], 7);
            if (isInverter == 1) {
                Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [f[0], f[1], f[2], 255], 7);
                Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [255, 255, 255, 255], 7)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [f[0], f[1], f[2], 255], 7);
                    Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [255, 255, 255, 255], 7)
                }
            }
        }
    }
    var g = 0;
    var b = 0;
    var j = false
}

function main_color_vis() {
    if (UI.GetValue("Script items", "Indicators") || UI.GetValue("Script items", "Enable AA arrows")) {
        UI.SetEnabled("Script items", "Main color", vis)
    } else {
        UI.SetEnabled("Script items", "Main color", 0)
    }
}

function player_connect() {
    var b = Event.GetInt("userid");
    if (Entity.GetEntityFromUserID(b) == Entity.GetLocalPlayer()) {
        lastPressed = Global.Tickcount();
        olDoubleTapick = Global.Tickcount();
        lastPressed = Global.Tickcount();
        oldTick = Global.Tickcount()
    }
}

function fog_tab() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fog")) {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Fog color", vis);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Distance", vis);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Density", vis)
    } else {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Fog color", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Distance", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Density", 0)
    }
}

function fog() {
    if (!UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fog")) {
        if (Convar.GetString("fog_override") !== "0") {
            Convar.SetString("fog_override", "0")
        }
        return
    }
    if (Convar.GetString("fog_override") !== "1") {
        Convar.SetString("fog_override", "1")
    }
    const b = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Fog color");
    const f = b[0] + " " + b[1] + " " + b[2];
    const g = UI.GetString("Misc", "JAVASCRIPT", "Script items", "Distance");
    const e = (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Density") / 100).toString();
    if (Convar.GetString("fog_color") !== f) {
        Convar.SetString("fog_color", f)
    }
    if (Convar.GetString("fog_end") !== g) {
        Convar.SetString("fog_start", "0");
        Convar.SetString("fog_end", g)
    }
    if (Convar.GetString("fog_maxdensity") !== e) {
        Convar.SetString("fog_maxdensity", e)
    }
}

function HSVtoRGB(m, B, w) {
    var e, n, u, l, o, k, j, A;
    l = Math.floor(m * 6);
    o = m * 6 - l;
    k = w * (1 - B);
    j = w * (1 - o * B);
    A = w * (1 - (1 - o) * B);
    switch (l % 6) {
    case 0:
        e = w, n = A, u = k;
        break;
    case 1:
        e = j, n = w, u = k;
        break;
    case 2:
        e = k, n = w, u = A;
        break;
    case 3:
        e = k, n = j, u = w;
        break;
    case 4:
        e = A, n = k, u = w;
        break;
    case 5:
        e = w, n = k, u = j;
        break
    }
    return {
        r: Math.round(e * 255),
        g: Math.round(n * 255),
        b: Math.round(u * 255)
    }
}
const x1 = UI.AddSliderInt("Hotkeys_x", 0, Global.GetScreenSize()[0]);
const y1 = UI.AddSliderInt("Hotkeys_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled("Script items", "Hotkeys_x", 0);
UI.SetEnabled("Script items", "Hotkeys_y", 0);
var alpha = 0;
var maxwidth = 0;
var swalpha = 0;
var fdalpha = 0;
var apalpha = 0;
var aialpha = 0;
var spalpha = 0;
var fbalpha = 0;
var dtalpha = 0;
var hsalpha = 0;
var doalpha = 0;
var textalpha = 0;
var headalpha = 0;
var h = new Array();

function in_bounds(g, b, j, e, f) {
    return (g[0] > b) && (g[1] > j) && (g[0] < e) && (g[1] < f)
}

function main_hotkeys() {
    weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
    if (UI.GetValue("Script items", "KeyBinds")) {
        if (isHeavyPistol(weapon_name)) {
            var l = (UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage"))
        } else {
            if (isScout(weapon_name)) {
                var l = (UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage"))
            } else {
                if (isAwp(weapon_name)) {
                    var l = (UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage"))
                } else {
                    if (isAutoSniper(weapon_name)) {
                        var l = (UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Minimum damage"))
                    } else {
                        var l = "-"
                    }
                }
            }
        }
        if (!World.GetServerString()) {
            return
        }
        const q = UI.GetValue("Misc", "JAVASCRIPT", "Hotkeys_x"),
            o = UI.GetValue("Misc", "JAVASCRIPT", "Hotkeys_y");
        var j = Render.AddFont("Verdana", 7, 100);
        var k = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
        var m = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
        var p = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
        var r = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
        var e = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
        var n = 8 * Globals.Frametime();
        var f = 75;
        var b = 0;
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Dormant Aimbot keybind")) {
            swalpha = Math.min(swalpha + n, 1)
        } else {
            swalpha = swalpha - n;
            if (swalpha < 0) {
                swalpha = 0
            }
            if (swalpha == 0) {
                h.splice(h.indexOf("Dormant   "))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Force Head keybind")) {
            headalpha = Math.min(headalpha + n, 1)
        } else {
            headalpha = headalpha - n;
            if (headalpha < 0) {
                headalpha = 0
            }
            if (headalpha == 0) {
                h.splice(h.indexOf("Force Head"))
            }
        }
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            fdalpha = Math.min(fdalpha + n, 1)
        } else {
            fdalpha = fdalpha - n;
            if (fdalpha < 0) {
                fdalpha = 0
            }
            if (fdalpha == 0) {
                h.splice(h.indexOf("Duck peek"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            apalpha = Math.min(apalpha + n, 1)
        } else {
            apalpha = apalpha - n;
            if (apalpha < 0) {
                apalpha = 0
            }
            if (apalpha == 0) {
                h.splice(h.indexOf("Auto peek"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestand keybind")) {
            aialpha = Math.min(aialpha + n, 1)
        } else {
            aialpha = aialpha - n;
            if (aialpha < 0) {
                aialpha = 0
            }
            if (aialpha == 0) {
                h.splice(h.indexOf("Freestand"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            dtalpha = Math.min(dtalpha + n, 1)
        } else {
            dtalpha = dtalpha - n;
            if (dtalpha < 0) {
                dtalpha = 0
            }
            if (dtalpha == 0) {
                h.splice(h.indexOf("Double tap"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            hsalpha = Math.min(hsalpha + n, 1)
        } else {
            hsalpha = hsalpha - n;
            if (hsalpha < 0) {
                hsalpha = 0
            }
            if (hsalpha == 0) {
                h.splice(h.indexOf("Hide shots"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            spalpha = Math.min(spalpha + n, 1)
        } else {
            spalpha = spalpha - n;
            if (spalpha < 0) {
                spalpha = 0
            }
            if (spalpha == 0) {
                h.splice(h.indexOf("Safe point"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            fbalpha = Math.min(fbalpha + n, 1)
        } else {
            fbalpha = fbalpha - n;
            if (fbalpha < 0) {
                fbalpha = 0
            }
            if (fbalpha == 0) {
                h.splice(h.indexOf("Body aim   "))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override")) {
            doalpha = Math.min(doalpha + n, 1)
        } else {
            doalpha = doalpha - n;
            if (doalpha < 0) {
                doalpha = 0
            }
            if (doalpha == 0) {
                h.splice(h.indexOf("Dmg"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Dormant Aimbot keybind")) {
            if (h.indexOf("Dormant   ") == -1) {
                h.push("Dormant   ")
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Force Head keybind")) {
            if (h.indexOf("Force Head") == -1) {
                h.push("Force Head")
            }
        }
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            if (h.indexOf("Duck peek") == -1) {
                h.push("Duck peek")
            }
        }
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            if (h.indexOf("Auto peek") == -1) {
                h.push("Auto peek")
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestand keybind")) {
            if (h.indexOf("Freestand") == -1) {
                h.push("Freestand")
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            if (h.indexOf("Double tap") == -1) {
                h.push("Double tap")
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            if (h.indexOf("Hide shots") == -1) {
                h.push("Hide shots")
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            if (h.indexOf("Safe point") == -1) {
                h.push("Safe point")
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            if (h.indexOf("Body aim") == -1) {
                h.push("Body aim   ")
            }
        }
        if (h.length > 0) {
            alpha = Math.min(alpha + n, 1)
        } else {
            alpha = alpha - n;
            if (alpha < 0) {
                alpha = 0
            }
        }
        for (i = 0; i < h.length; i++) {
            if (Render.TextSizeCustom(h[i], j)[0] > b) {
                b = Render.TextSizeCustom(h[i], j)[0]
            }
        }
        if (b == 0) {
            b = 50
        }
        f = f + b + 20;
        if (UI.GetValue("Script items", "Indicators style") == 1) {
            Render.GradientRect(q, o + 3, f, 2, 1, [p[0], p[1], p[2], p[3]], [r[0], r[1], r[2], r[3]])
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 2) {
                Render.GradientRect(q, o + 3, f / 2 + 5, 2, 1, [48, 206, 230, 255], [220, 57, 218, 255]);
                Render.GradientRect(q + 77, o + 3, f / 2 - 3, 2, 1, [220, 57, 218, 255], [220, 232, 47, 255])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 3) {
                    Render.GradientRect(q, o + 3, f, 2, 1, [k.g, k.b, k.r, 255], [k.r, k.g, k.b, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 4) {
                        Render.GradientRect(q, o + 3, f / 2 + 5, 2, 1, [e[0], e[1], e[2], 55], [e[0], e[1], e[2], 255]);
                        Render.GradientRect(q + 77, o + 3, f / 2 - 3, 2, 1, [e[0], e[1], e[2], 255], [e[0], e[1], e[2], 55])
                    } else {
                        Render.GradientRect(q, o + 3, f, 2, 1, [m[0], m[1], m[2], m[3]], [m[0], m[1], m[2], m[3]])
                    }
                }
            }
        }
        if (!UI.GetValue("Script items", "Indicators transparency")) {
            Render.FilledRect(q, o + 5, f, 18, [35, 35, 35, 255])
        } else {
            Render.FilledRect(q, o + 5, f, 18, [35, 35, 35, 0])
        }
        Render.StringCustom(q + f / 2 - (Render.TextSizeCustom("keybinds", j)[0] / 2) + 2, o + 9, 0, "keybinds", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q + f / 2 - (Render.TextSizeCustom("keybinds", j)[0] / 2) + 1, o + 8, 0, "keybinds", [255, 255, 255, 255], j);
        Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, "MinDamage", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, "MinDamage", [255, 255, 255, 255], j);
        Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[" + l + "]", j)[0], o + 26 + 6 + 18 * i, 0, "[" + l + "]", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[" + l + "]", j)[0], o + 26 + 6 + 18 * i, 0, "[" + l + "]", [255, 255, 255, 255], j);
        for (i = 0; i < h.length; i++) {
            switch (h[i]) {
            case "Dormant   ":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, swalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, swalpha * 255], j);
                break;
            case "Force Head":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, headalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, headalpha * 255], j);
                break;
            case "Duck peek":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, fdalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, fdalpha * 255], j);
                break;
            case "Auto peek":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, apalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, apalpha * 255], j);
                break;
            case "Freestand":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, aialpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, aialpha * 255], j);
                break;
            case "Double tap":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, dtalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, dtalpha * 255], j);
                break;
            case "Hide shots":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, hsalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, hsalpha * 255], j);
                break;
            case "Safe point":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, spalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, spalpha * 255], j);
                Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [0, 0, 0, spalpha * 255 / 1.3], j);
                Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [255, 255, 255, spalpha * 255], j);
                break;
            case "Body aim   ":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, fbalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, fbalpha * 255], j);
                Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [0, 0, 0, fbalpha * 255 / 1.3], j);
                Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [255, 255, 255, fbalpha * 255], j);
                break
            }
        }
    }
    if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
        const g = Global.GetCursorPosition();
        if (in_bounds(g, q, o, q + f, o + 30)) {
            UI.SetValue("Misc", "JAVASCRIPT", "Hotkeys_x", g[0] - f / 2);
            UI.SetValue("Misc", "JAVASCRIPT", "Hotkeys_y", g[1] - 20)
        }
    }
}

function watermark() {
    if (UI.GetValue("Scripts items", "Watermark")) {}
    const J = Global.GetScreenSize();
    var b = 0;
    var w = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
    var t = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
    var g = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
    var A = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
    var H = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
    UI.SetEnabled("Script items", "Classic color", 0);
    UI.SetEnabled("Script items", "First Gradient", 0);
    UI.SetEnabled("Script items", "Second Gradient", 0);
    UI.SetEnabled("Script items", "Faded color", 0);
    if (UI.GetValue("Script items", "Watermark")) {
        if (b == 0) {
            var I = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString(),
                G = new Date(),
                F = G.getHours(),
                v = Local.GetRealYaw(),
                u = Local.GetFakeYaw(),
                j = Math.min(Math.abs(v - u) / 2, 60).toFixed(1),
                s = Math.min(Math.round(1.7 * Math.abs(j)), 100),
                E = G.getMinutes(),
                r = Render.AddFont("Verdana", 7, 100),
                q = Render.AddFont("Verdana", 7, 0),
                D = F <= 9 ? "0" + G.getHours() + ":" : G.getHours() + ":",
                C = E <= 9 ? "0" + G.getMinutes() + "" : G.getMinutes(),
                p = "";
            if (World.GetServerString() != "") {
                p += "Infernal tech | [version 1.3] | youtube.com/c/anarxist | " + I + "ms "
            }
            p += "| " + D + C;
            var B = 28;
            const o = Render.TextSizeCustom(p, q)[0] + 15;
            var f = Global.GetScreenSize()[0] - 2,
                e = 29;
            f = f - o - 12;
            if (!UI.GetValue("Script items", "Indicators transparency")) {
                Render.FilledRect(f + 13, e - 15, o - 6, 17, [35, 35, 35, 255])
            } else {
                Render.FilledRect(f + 13, e - 15, o - 6, 17, [35, 35, 35, 0])
            }
            Render.StringCustom(f + 17, 16, 0, p, [0, 0, 0, 255], q);
            Render.StringCustom(f + 17, 16, 0, p, [255, 255, 255, 255], q);
            if (UI.GetValue("Script items", "Indicators style") == 1) {
                Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [g[0], g[1], g[2], g[3]], [A[0], A[1], A[2], A[3]])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 2) {
                    Render.GradientRect(f + 13, e - 17, o - 173, 2, 2, [48, 206, 230, 255], [220, 57, 218, 255]);
                    Render.GradientRect(f + 172, e - 17, o - 165, 2, 2, [220, 57, 218, 255], [220, 232, 47, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 3) {
                        Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [w.g, w.b, w.r, 255], [w.r, w.g, w.b, 255])
                    } else {
                        if (UI.GetValue("Script items", "Indicators style") == 4) {
                            Render.GradientRect(f + 13, e - 17, o - 173, 2, 2, [H[0], H[1], H[2], 55], [H[0], H[1], H[2], 255]);
                            Render.GradientRect(f + 172, e - 17, o - 165, 2, 2, [H[0], H[1], H[2], 255], [H[0], H[1], H[2], 55])
                        } else {
                            Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [t[0], t[1], t[2], t[3]], [t[0], t[1], t[2], t[3]])
                        }
                    }
                }
            }
            var n = "" + j.toString() + " degrees  | safety: " + s.toString() + "%",
                m = Render.TextSizeCustom(n, r)[0] + 15,
                l = Global.GetScreenSize()[0] - 2,
                k = 29;
            l = l - m - 12;
            if (UI.GetValue("Script items", "Indicators style") == 1) {
                Render.GradientRect(l + 12, k + 6, 2, 18, 10, [g[0], g[1], g[2], g[3]], [A[0], A[1], A[2], A[3]])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 2) {
                    Render.GradientRect(l + 12, k + 6, 2, 18, 10, [48, 206, 230, 255], [220, 57, 218, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 3) {
                        Render.GradientRect(l + 12, k + 6, 2, 18, 10, [w.g, w.b, w.r, 255], [w.r, w.g, w.b, 255])
                    } else {
                        if (UI.GetValue("Script items", "Indicators style") == 4) {
                            Render.GradientRect(l + 12, k + 6, 2, 18, 10, [H[0], H[1], H[2], 255], [H[0], H[1], H[2], 55])
                        } else {
                            Render.GradientRect(l + 12, k + 6, 2, 18, 10, [t[0], t[1], t[2], t[3]], [t[0], t[1], t[2], t[3]])
                        }
                    }
                }
            }
            if (!UI.GetValue("Script items", "Indicators transparency")) {
                Render.FilledRect(l + 14, k + 6, m - 7, 18, [35, 35, 35, 255])
            } else {
                Render.FilledRect(l + 14, k + 6, m - 7, 18, [35, 35, 35, 0])
            }
            Render.StringCustom(l + 20, k + 9, 0, n, [0, 0, 0, 180], r);
            Render.StringCustom(l + 19, k + 8, 0, n, [255, 255, 255, 255], r);
            mz(l + 22, k + 14, 5, 0, j * 6, 2, [255, 255, 255, 255])
        }
    }
}

function get_icon(b) {
    var e = "";
    switch (b) {
    case "desert eagle":
        e = "a";
        break;
    case "dual berettas":
        e = "b";
        break;
    case "five seven":
        e = "c";
        break;
    case "glock 18":
        e = "d";
        break;
    case "ak 47":
        e = "e";
        break;
    case "aug":
        e = "f";
        break;
    case "awp":
        e = "g";
        break;
    case "famas":
        e = "h";
        break;
    case "m249":
        e = "i";
        break;
    case "g3sg1":
        e = "j";
        break;
    case "galil ar":
        e = "k";
        break;
    case "m4a4":
        e = "l";
        break;
    case "m4a1 s":
        e = "m";
        break;
    case "mac 10":
        e = "n";
        break;
    case "p2000":
        e = "o";
        break;
    case "mp5 sd":
        e = "p";
        break;
    case "ump 45":
        e = "q";
        break;
    case "xm1014":
        e = "r";
        break;
    case "pp bizon":
        e = "s";
        break;
    case "mag 7":
        e = "t";
        break;
    case "negev":
        e = "u";
        break;
    case "sawed off":
        e = "v";
        break;
    case "tec 9":
        e = "w";
        break;
    case "zeus x27":
        e = "x";
        break;
    case "p250":
        e = "y";
        break;
    case "mp7":
        e = "z";
        break;
    case "mp9":
        e = "A";
        break;
    case "nova":
        e = "B";
        break;
    case "p90":
        e = "C";
        break;
    case "scar 20":
        e = "D";
        break;
    case "sg 553":
        e = "E";
        break;
    case "ssg 08":
        e = "F";
        break;
    case "knife":
        e = "G";
        break;
    case "flashbang":
        e = "H";
        break;
    case "high explosive grenade":
        e = "I";
        break;
    case "smoke grenade":
        e = "J";
        break;
    case "molotov":
        e = "K";
        break;
    case "decoy grenade":
        e = "L";
        break;
    case "incendiary grenade":
        e = "M";
        break;
    case "c4 explosive":
        e = "N";
        break;
    case "usp s":
        e = "P";
        break;
    case "cz75 auto":
        e = "Q";
        break;
    case "r8 revolver":
        e = "R";
        break;
    case "bayonet":
        e = "V";
        break;
    case "flip knife":
        e = "W";
        break;
    case "gut knife":
        e = "X";
        break;
    case "karambit":
        e = "Y";
        break;
    case "m9 bayonet":
        e = "Z";
        break;
    case "falchion knife":
        e = "1";
        break;
    case "bowie knife":
        e = "2";
        break;
    case "butterfly knife":
        e = "3";
        break;
    case "shadow daggers":
        e = "4";
        break;
    case "ursus knife":
        e = "5";
        break;
    case "navaja knife":
        e = "6";
        break;
    case "stiletto knife":
        e = "7";
        break;
    case "skeleton knife":
        e = "8";
        break;
    case "huntsman knife":
        e = "0";
        break;
    case "talon knife":
        e = "8";
        break;
    case "classic knife":
        e = "25";
        break;
    case "paracord knife":
        e = "Z";
        break;
    case "survival knife":
        e = "Z";
        break;
    case "nomad knife":
        e = "Z";
        break;
    default:
        e = "";
        break
    }
    return e
}
UI.AddSliderInt("dt_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("dt_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled("Script items", "dt_x", 0);
UI.SetEnabled("Script items", "dt_y", 0);
UI.AddDropdown("Indicators style", ["Classic", "Gradient", "Skeet", "Rainbow", "Faded"]);
UI.AddColorPicker("Classic color");
UI.AddColorPicker("First Gradient");
UI.AddColorPicker("Second Gradient");
UI.AddColorPicker("Faded color");

function in_bounds(g, b, j, e, f) {
    return (g[0] > b) && (g[1] > j) && (g[0] < e) && (g[1] < f)
}
var fa = 0;
var sa = 0;

function main_dt() {
    var j = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
    var m = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
    var q = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
    var u = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
    var e = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
    if (UI.GetValue("Script items", "Exploits indicator")) {
        const r = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "dt_x"),
            p = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "dt_y");
        localplayer_index = Entity.GetLocalPlayer();
        localplayer_weapon = Entity.GetWeapon(localplayer_index);
        weapon_name = Entity.GetName(localplayer_weapon);
        g_Local_classname = Entity.GetClassName(localplayer_weapon);
        var o = Entity.GetProp(localplayer_weapon, "CBaseCombatWeapon", "m_flNextPrimaryAttack");
        var l = false;
        if (o <= Globals.Curtime()) {
            l = true
        }
        var n = 8 * Globals.Frametime();
        var k = [5, 128, 187, 255];
        var g = Render.AddFont("Verdana", 7, 100);
        var b = Render.AddFont("bullet", 18, 100);
        if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            var t = "DT | tickbase(v): 14"
        } else {
            if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
                var t = "HS | tickbase(v): 7  "
            } else {
                var t = " -  | tickbase(v): 0  "
            }
        }
        var s = Render.TextSizeCustom(t, g)[0] + 8;
        if (!UI.GetValue("Script items", "Indicators transparency")) {
            Render.FilledRect(r, p, s, 20, [35, 35, 35, 255])
        } else {
            Render.FilledRect(r, p, s, 20, [35, 35, 35, 0])
        }
        Render.FilledRect(r, p + 2, s, 18, [17, 17, 17, 0]);
        Render.StringCustom(r + 5, p + 5, 0, t, [0, 0, 0, 180], g);
        Render.StringCustom(r + 4, p + 4, 0, t, [255, 255, 255, 255], g);
        if (UI.GetValue("Script items", "Indicators style") == 1) {
            Render.GradientRect(r, p - 1, s, 2, 2, [q[0], q[1], q[2], q[3]], [u[0], u[1], u[2], u[3]])
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 2) {
                Render.GradientRect(r, p - 1, s / 2 + 4, 2, 2, [48, 206, 230, 255], [220, 57, 218, 255]);
                Render.GradientRect(r + 56, p - 1, s / 2, 2, 2, [220, 57, 218, 255], [220, 232, 47, 255])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 3) {
                    Render.GradientRect(r, p - 1, s, 2, 2, [j.g, j.b, j.r, 255], [j.r, j.g, j.b, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 4) {
                        Render.GradientRect(r, p - 1, s / 2 + 4, 2, 2, [e[0], e[1], e[2], 55], [e[0], e[1], e[2], 255]);
                        Render.GradientRect(r + 56, p - 1, s / 2, 2, 2, [e[0], e[1], e[2], 255], [e[0], e[1], e[2], 55])
                    }
                }
            }
        }
        if (UI.GetValue("Script items", "Indicators style") == 0) {
            Render.GradientRect(r, p - 1, s, 2, 2, [m[0], m[1], m[2], m[3]], [m[0], m[1], m[2], m[3]])
        }
        Render.String(r + 4, p + 22, 0, get_icon(weapon_name), [255, 255, 255, 255], 5);
        if ((g_Local_classname == "CKnife" || g_Local_classname == "CWeaponSSG08" || g_Local_classname == "CWeaponAWP" || weapon_name == "r8 revolver" || g_Local_classname == "CHEGrenade" || g_Local_classname == "CMolotovGrenade" || g_Local_classname == "CIncendiaryGrenade" || g_Local_classname == "CFlashbang" || g_Local_classname == "CSmokeGrenade" || g_Local_classname == "CDecoyGrenade" || g_Local_classname == "CWeaponTaser" || g_Local_classname == "CC4")) {} else {
            if (l) {
                fa = Math.min(fa + n, 1);
                Render.StringCustom(r + 10 + Render.TextSize(get_icon(weapon_name), 5)[0], p + 18, 0, "A", [255, 255, 255, fa * 255], b)
            } else {
                fa = 0
            }
            if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
                sa = Math.min(sa + n, 1);
                Render.StringCustom(r + 30 + Render.TextSize(get_icon(weapon_name), 5)[0], p + 18, 0, "A", [255, 255, 255, sa * 255], b)
            } else {
                sa = 0
            }
        }
        if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
            const f = Global.GetCursorPosition();
            if (in_bounds(f, r, p, r + s, p + 30)) {
                UI.SetValue("Misc", "JAVASCRIPT", "Script items", "dt_x", f[0] - s / 2);
                UI.SetValue("Misc", "JAVASCRIPT", "Script items", "dt_y", f[1] - 20)
            }
        }
    }
}

function ind_vis() {
    if (UI.GetValue("Script items", "KeyBinds") || UI.GetValue("Script items", "Watermark") || UI.GetValue("Script items", "Exploits indicator")) {
        UI.SetEnabled("Script items", "Indicators style", vis);
        UI.SetEnabled("Script items", "Indicators transparency", vis)
    } else {
        UI.SetEnabled("Script items", "Indicators style", 0);
        UI.SetEnabled("Script items", "Indicators transparency", 0)
    }
    if (UI.GetValue("Script items", "Indicators style") == 1) {
        UI.SetEnabled("Script items", "Classic color", 0);
        UI.SetEnabled("Script items", "First Gradient", vis);
        UI.SetEnabled("Script items", "Second Gradient", vis);
        UI.SetEnabled("Script items", "Faded color", 0)
    } else {
        if (UI.GetValue("Script items", "Indicators style") == 2) {
            UI.SetEnabled("Script items", "Classic color", 0);
            UI.SetEnabled("Script items", "First Gradient", 0);
            UI.SetEnabled("Script items", "Second Gradient", 0);
            UI.SetEnabled("Script items", "Faded color", 0)
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 3) {
                UI.SetEnabled("Script items", "Classic color", 0);
                UI.SetEnabled("Script items", "First Gradient", 0);
                UI.SetEnabled("Script items", "Second Gradient", 0);
                UI.SetEnabled("Script items", "Faded color", 0)
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 4) {
                    UI.SetEnabled("Script items", "Classic color", 0);
                    UI.SetEnabled("Script items", "First Gradient", 0);
                    UI.SetEnabled("Script items", "Second Gradient", 0);
                    UI.SetEnabled("Script items", "Faded color", vis)
                } else {
                    UI.SetEnabled("Script items", "Classic color", vis);
                    UI.SetEnabled("Script items", "First Gradient", 0);
                    UI.SetEnabled("Script items", "Second Gradient", 0);
                    UI.SetEnabled("Script items", "Faded color", 0)
                }
            }
        }
    }
    if (!UI.GetValue("Script items", "KeyBinds") && (!UI.GetValue("Script items", "Watermark")) && (!UI.GetValue("Script items", "Exploits indicator"))) {
        UI.SetEnabled("Script items", "Classic color", 0);
        UI.SetEnabled("Script items", "First Gradient", 0);
        UI.SetEnabled("Script items", "Second Gradient", 0);
        UI.SetEnabled("Script items", "Faded color", 0)
    }
}

function on_cm() {
    if (Convar.GetFloat("r_aspectratio") != UI.GetValue("Script items", "Aspect ratio")) {
        Convar.SetFloat("r_aspectratio", UI.GetValue("Script items", "Aspect ratio"))
    }
}

function ar_tab() {
    if (UI.GetValue("Script items", "Aspect ratio changer")) {
        UI.SetEnabled("Script items", "Aspect ratio", misc)
    } else {
        UI.SetEnabled("Script items", "Aspect ratio", 0)
    }
}

function on_unload() {
    Cheat.ExecuteCommand("r_aspectratio 0")
}
hitboxes = ["generic", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "?"];
var scriptitems = ("Misc", "JAVASCRIPT", "Script items");
var shots = 0;
var predicthc = 0;
var safety = 0;
var hitboxName = "";
var choked = 0;
var exploit = 0;
var logs = [];
var logsct = [];
var logsalpha = [];

function getHitboxName(b) {
    switch (b) {
    case 0:
        hitboxName = "head";
        break;
    case 1:
        hitboxName = "head";
        break;
    case 2:
        hitboxName = "stomach";
        break;
    case 3:
        hitboxName = "stomach";
        break;
    case 4:
        hitboxName = "stomach";
        break;
    case 5:
        hitboxName = "chest";
        break;
    case 6:
        hitboxName = "chest";
        break;
    case 7:
        hitboxName = "left leg";
        break;
    case 8:
        hitboxName = "right leg";
        break;
    case 9:
        hitboxName = "left leg";
        break;
    case 10:
        hitboxName = "right leg";
        break;
    case 11:
        hitboxName = "left leg";
        break;
    case 12:
        hitboxName = "right leg";
        break;
    case 13:
        hitboxName = "left arm";
        break;
    case 14:
        hitboxName = "right arm";
        break;
    case 15:
        hitboxName = "left arm";
        break;
    case 16:
        hitboxName = "left arm";
        break;
    case 17:
        hitboxName = "right arm";
        break;
    case 18:
        hitboxName = "right arm";
        break;
    default:
        hitboxName = "body"
    }
    return hitboxName
}

function HitgroupName(b) {
    return hitboxes[b] || "body"
}
var target = -1;
var shots_fired = 0;
var hits = 0;
var lastUpdate = 0;
var logged = false;

function ragebot_fire() {
    predicthc = Event.GetInt("hitchance");
    safety = Event.GetInt("safepoint");
    hitboxName = getHitboxName(Event.GetInt("hitbox"));
    exploit = (Event.GetInt("exploit") + 1).toString();
    target = Event.GetInt("target_index");
    shots_fired++;
    logged = false;
    lastUpdate = Globals.Curtime()
}

function hitlog() {
    var j = Entity.GetEntityFromUserID(Event.GetInt("userid"));
    var f = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
    if (f == Entity.GetLocalPlayer() && j == target) {
        hits++
    }
    var e = "Hit ";
    me = Entity.GetLocalPlayer();
    hitbox = Event.GetInt("hitgroup");
    target_damage = Event.GetInt("dmg_health");
    target_health = Event.GetInt("health");
    victim = Event.GetInt("userid");
    f = Event.GetInt("attacker");
    weapon = Event.GetString("weapon");
    victimIndex = Entity.GetEntityFromUserID(victim);
    attackerIndex = Entity.GetEntityFromUserID(f);
    name = Entity.GetName(victimIndex);
    var g = Globals.Tickcount() % 17;
    var b = "";
    if (exploit == 2) {
        b += "T"
    }
    b += "B";
    if (hitbox == 1) {
        b += "H"
    }
    if (safety == 1) {
        safety = "true"
    } else {
        safety = "false"
    }
    if (weapon == "hegrenade") {
        e = "Naded "
    } else {
        if (weapon == "inferno") {
            e = "Burned "
        } else {
            if (weapon == "knife") {
                e = "Knifed "
            }
        }
    }
    if (UI.GetValue("Script items", "Logs")) {
        if (me == attackerIndex && me != victimIndex) {
            Cheat.PrintColor([39, 255, 39, 255], "[Infernal tech] ");
            if (e == "Hit ") {
                Cheat.Print("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) aimed=" + hitboxName + "(" + predicthc.toString() + "%%) safety=" + safety + " (" + b + ") (" + g + ":" + exploit + ")\n");
                logs.push("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) aimed=" + hitboxName + "(" + predicthc.toString() + "%%) safety=" + safety + " (" + b + ") (" + g + ":" + exploit + ")")
            } else {
                Cheat.Print("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) \n");
                logs.push("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining)")
            }
            logsct.push(Globals.Curtime());
            logsalpha.push(255)
        }
    }
    if (shots == 99) {
        shots = 0
    } else {
        shots++
    }
}

function removelogs() {
    if (logs.length > 6) {
        logs.shift();
        logsct.shift();
        logsalpha.shift()
    }
    if (logsct[0] + 6.5 < Globals.Curtime()) {
        logsalpha[0] -= Globals.Frametime() * 600;
        if (logsalpha[0] < 0) {
            logs.shift();
            logsct.shift();
            logsalpha.shift()
        }
    }
}

function item_purchase() {
    Cheat.PrintColor([255, 128, 0, 255], "[Infernal tech] ");
    Cheat.Print(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid"))) + " bought " + Event.GetString("weapon") + "\n");
    logs.push(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid"))) + " bought " + Event.GetString("weapon") + "");
    logsct.push(Globals.Curtime());
    logsalpha.push(255)
}

function onDraw() {
    if (!World.GetServerString()) {
        return
    }
    var f = Render.AddFont("Lucida Console", 8, 0);
    for (i = 0; i < logs.length; i++) {
        Render.StringCustom(4, 4 + 13 * i, 0, logs[i], [0, 0, 0, logsalpha[i]], f);
        Render.StringCustom(3, 3 + 13 * i, 0, logs[i], [255, 255, 255, logsalpha[i]], f)
    }
    if (shots_fired > hits && (Globals.Curtime() - lastUpdate > 0.33)) {
        if (Globals.Curtime() - lastUpdate > 1) {
            shots_fired = 0;
            hits = 0
        }
        if (!logged) {
            var g = Globals.Tickcount() % 16;
            logged = true;
            var b = "true";
            var j = "?";
            if (safety == 0) {
                b = "false"
            }
            if (Entity.IsAlive(target) == false) {
                j = "death"
            } else {
                if (Entity.IsAlive(Entity.GetLocalPlayer()) == false) {
                    j = "dead"
                } else {
                    if (safety == true && predicthc < 76) {
                        j = "spread"
                    } else {
                        if (safety == true && predicthc > 76) {
                            j = "prediction error"
                        }
                    }
                }
            }
            var e = "";
            if (exploit == 2) {
                e += "T"
            }
            e += "B";
            if (UI.GetValue("Script items", "Logs")) {
                Cheat.PrintColor([255, 39, 39, 255], "[Infernal tech] ");
                Cheat.Print("[" + shots.toString() + "] Missed " + Entity.GetName(target) + "'s " + hitboxName + "(" + predicthc.toString() + "%%) due to " + j + ", safety=" + b + " (" + e + ") (" + g + ":" + exploit + ")\n");
                logs.push("[" + shots.toString() + "] Missed " + Entity.GetName(target) + "'s " + hitboxName + "(" + predicthc.toString() + "%%) due to " + j + ", safety=" + b + " (" + e + ") (" + g + ":" + exploit + ")")
            }
            logsct.push(Globals.Curtime());
            logsalpha.push(255);
            if (shots == 99) {
                shots = 0
            } else {
                shots++
            }
        }
    }
}

function onFSN() {
    if (Cheat.FrameStage() != 2) {
        return
    }
    var b = Entity.GetProp(Entity.GetLocalPlayer(), "DT_BaseEntity", "m_iTeamNum");
    if (!UI.GetValue("Script Items", "Model changer (based on team)")) {
        UI.SetEnabled("Script Items", "CT", 0);
        UI.SetEnabled("Script Items", "T", 0);
        return
    }
    UI.SetEnabled("Script Items", "T", misc);
    UI.SetEnabled("Script Items", "CT", misc);
    if (b == 2) {
        UI.SetValue("Misc", "SKINS", "Player", "Player model", UI.GetValue("Script Items", "T"))
    } else {
        if (b == 3) {
            UI.SetValue("Misc", "SKINS", "Player", "Player model", UI.GetValue("Script Items", "CT"))
        }
    }
}
var ct_lasttime = 0;

function ctag_render() {
    player = Entity.GetLocalPlayer();
    var b = parseInt((Globals.Curtime() * 3));
    if (Entity.IsAlive(player)) {
        if (b != ct_lasttime) {
            if (!UI.GetValue("Script items", "ClanTag")) {
                Local.SetClanTag("")
            }
            if (UI.GetValue("Script items", "ClanTag")) {
                switch ((b) % 33) {
                case 1:
                    Local.SetClanTag("");
                    break;
                case 2:
                    Local.SetClanTag("I");
                    break;
                case 3:
                    Local.SetClanTag("N");
                    break;
                case 4:
                    Local.SetClanTag("F");
                    break;
                case 5:
                    Local.SetClanTag("E");
                    break;
                case 6:
                    Local.SetClanTag("R");
                    break;
                case 7:
                    Local.SetClanTag("N");
                    break;
                case 8:
                    Local.SetClanTag("A");
                    break;
                case 9:
                    Local.SetClanTag("L");
                    break;
                case 10:
                    Local.SetClanTag("");
                    break;
                case 11:
                    Local.SetClanTag("T");
                    break;
                case 12:
                    Local.SetClanTag("E");
                    break;
                case 13:
                    Local.SetClanTag("C");
                    break;
                case 14:
                    Local.SetClanTag("H");
                    break;
                case 15:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 16:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 17:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 18:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 19:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 20:
                    Local.SetClanTag("Infernal tec%");
                    break;
                case 21:
                    Local.SetClanTag("Infernal te&");
                    break;
                case 22:
                    Local.SetClanTag("Infernal t@");
                    break;
                case 23:
                    Local.SetClanTag("Infernal $");
                    break;
                case 24:
                    Local.SetClanTag("Inferna#");
                    break;
                case 25:
                    Local.SetClanTag("Infern*");
                    break;
                case 26:
                    Local.SetClanTag("Infer@");
                    break;
                case 27:
                    Local.SetClanTag("Infe?");
                    break;
                case 28:
                    Local.SetClanTag("Inf$");
                    break;
                case 29:
                    Local.SetClanTag("In^");
                    break;
                case 30:
                    Local.SetClanTag("I%");
                    break;
                case 31:
                    Local.SetClanTag("&");
                    break;
                case 32:
                    Local.SetClanTag("");
                    break
                }
            }
        }
        ct_lasttime = b
    }
}

function fps_boost() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fps Boost")) {
        Convar.SetString("r_shadows", "0");
        Convar.SetString("cl_csm_static_prop_shadows", "0");
        Convar.SetString("cl_csm_shadows", "0");
        Convar.SetString("cl_csm_world_shadows", "0");
        Convar.SetString("cl_foot_contact_shadows", "0");
        Convar.SetString("cl_csm_viewmodel_shadows", "0");
        Convar.SetString("cl_csm_rope_shadows", "0");
        Convar.SetString("cl_csm_sprite_shadows", "0");
        Convar.SetString("violence_hblood", "0");
        Convar.SetString("r_3dsky", "0");
        Convar.SetString("r_drawrain", "0");
        Convar.SetString("r_drawropes", "0");
        Convar.SetString("r_drawsprites", "0");
        Convar.SetString("r_drawparticles", "0");
        Convar.SetString("fog_enable_water_fog", "0");
        Convar.SetString("func_break_max_pieces", "0");
        Convar.SetString("muzzleflash_light", "0");
        Convar.SetString("r_eyemove", "0");
        Convar.SetString("r_eyegloss", "0")
    } else {
        Convar.SetString("r_shadows", "1");
        Convar.SetString("cl_csm_static_prop_shadows", "1");
        Convar.SetString("cl_csm_shadows", "1");
        Convar.SetString("cl_csm_world_shadows", "1");
        Convar.SetString("cl_foot_contact_shadows", "1");
        Convar.SetString("cl_csm_viewmodel_shadows", "1");
        Convar.SetString("cl_csm_rope_shadows", "1");
        Convar.SetString("cl_csm_sprite_shadows", "1");
        Convar.SetString("violence_hblood", "1");
        Convar.SetString("r_3dsky", "1");
        Convar.SetString("r_drawrain", "1");
        Convar.SetString("r_drawropes", "1");
        Convar.SetString("r_drawsprites", "1");
        Convar.SetString("r_drawparticles", "1");
        Convar.SetString("fog_enable_water_fog", "1");
        Convar.SetString("func_break_max_pieces", "1");
        Convar.SetString("muzzleflash_light", "1");
        Convar.SetString("r_eyemove", "1");
        Convar.SetString("r_eyegloss", "1")
    }
}
Cheat.RegisterCallback("Draw", "anim_label");
Cheat.RegisterCallback("Draw", "menu");
Cheat.RegisterCallback("Draw", "for_tab");
Cheat.RegisterCallback("CreateMove", "wrap");
Cheat.RegisterCallback("weapon_fire", "shoot");
Cheat.RegisterCallback("CreateMove", "safeLegs");
Cheat.RegisterCallback("CreateMove", "safe_tab");
Cheat.RegisterCallback("CreateMove", "hp_tab");
Cheat.RegisterCallback("CreateMove", "maine");
Cheat.RegisterCallback("CreateMove", "fhead_tab");
Cheat.RegisterCallback("CreateMove", "force_head");
Global.RegisterCallback("player_connect_full", "player_connect");
Cheat.RegisterCallback("CreateMove", "onCM");
Cheat.RegisterCallback("CreateMove", "mindmg_tab");
Cheat.RegisterCallback("CreateMove", "awp_sp");
Cheat.RegisterCallback("CreateMove", "LagSync");
Cheat.RegisterCallback("CreateMove", "fs_tab");
Cheat.RegisterCallback("CreateMove", "freestand");
Cheat.RegisterCallback("CreateMove", "fl_tab");
Cheat.RegisterCallback("round_start", "roundstart");
Cheat.RegisterCallback("CreateMove", "set_fl");
Cheat.RegisterCallback("CreateMove", "exploit_conf");
Cheat.RegisterCallback("Draw", "autopeek");
Cheat.RegisterCallback("CreateMove", "ld");
Cheat.RegisterCallback("Unload", "unload");
Global.RegisterCallback("ragebot_fire", "invert");
Global.RegisterCallback("Draw", "menu_check");
Global.RegisterCallback("Draw", "indication");
Cheat.RegisterCallback("Draw", "ind");
Cheat.RegisterCallback("Draw", "main_color_vis");
Cheat.RegisterCallback("CreateMove", "fog");
Cheat.RegisterCallback("CreateMove", "fog_tab");
Global.RegisterCallback("Draw", "main_hotkeys");
Cheat.RegisterCallback("Draw", "watermark");
Global.RegisterCallback("Draw", "main_dt");
Cheat.RegisterCallback("Draw", "ind_vis");
Cheat.RegisterCallback("CreateMove", "on_cm");
Cheat.RegisterCallback("CreateMove", "ar_tab");
Cheat.RegisterCallback("Unload", "on_unload");
Global.RegisterCallback("ragebot_fire", "ragebot_fire");
Global.RegisterCallback("item_purchase", "item_purchase");
Global.RegisterCallback("player_hurt", "hitlog");
Global.RegisterCallback("Draw", "onDraw");
Global.RegisterCallback("Draw", "removelogs");
Cheat.RegisterCallback("FrameStageNotify", "onFSN");
Cheat.RegisterCallback("Draw", "ctag_render");
Cheat.RegisterCallback("Draw", "fps_boost");
UI.AddLabel(" <----------------------------------->");
 
Изучает плюсы
Начинающий
Статус
Оффлайн
Регистрация
12 Июн 2020
Сообщения
101
Реакции[?]
27
Поинты[?]
0
Deobf
JavaScript:
UI.AddLabel(" <----------------------------------->");
UI.AddLabel("               [Infernal tech]");
UI.AddLabel("                [---Very---]");
UI.AddLabel("                [----hot---]");
UI.AddLabel("                [----js----]");
UI.AddLabel("    [Credits to ANARXIST#0911]");
UI.AddLabel(" <----------------------------------->");
UI.SetEnabled("Script items", "               [Infernal tech]", 0);
UI.SetEnabled("Script items", "                [---Very---]", 0);
UI.SetEnabled("Script items", "                [----hot---]", 0);
UI.SetEnabled("Script items", "                [----js----]", 0);
var lasttime = 0;

function anim_label() {
    var b = parseInt((Globals.Curtime() * 2));
    if (b != lasttime) {
        switch ((b) % 5) {
        case 0:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 1);
            break;
        case 1:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 1);
            break;
        case 2:
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "                [---Very---]", 1);
            break;
        case 3:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 1);
            break;
        case 4:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 1);
            break
        }
    }
    lasttime = b
}
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([255, 130, 130, 255], "      ███████████    █      ███    ██████   █████   ██████        █      ███   █      ███\n");
Cheat.PrintColor([255, 130, 130, 255], "           ██        █     ██      █    █  ██        ██  ██       █     ██     ██       █\n");
Cheat.PrintColor([255, 130, 130, 255], "           ██        ██   ██      ██    █  █        ██    █       ██   ██     ███      ██\n");
Cheat.PrintColor([255, 130, 130, 255], "          ██        ████  █     ██████     ██████   ███████      ████  █      █ █     ██\n");
Cheat.PrintColor([255, 130, 130, 255], "         ██         █  ████      ██  █    ███       █ ██         █  ████     ████     █\n");
Cheat.PrintColor([255, 130, 130, 255], "         ██        ██   ██      ██       ██        ██  ██   █   ██   ██     ██  ██ █  ██    █\n");
Cheat.PrintColor([255, 130, 130, 255], "     ██████████   ██     ██     ██        ██████   ██    ████  ██     ██  ███    ██     ████\n");
Cheat.PrintColor([255, 130, 130, 255], "\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                               ██\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                            ██  ████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                         ██   ████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                          █████████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                           ████████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                             █████████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                  ███      ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                   ██   █████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ████ █████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                            █████  ██ ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                          ██████   ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                          █████     ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                         ████       ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                         █         ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                   ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                  ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ██\n");
Cheat.PrintColor([255, 130, 130, 255], "\n");
Cheat.PrintColor([130, 130, 255, 255], "                        ████           █████      █████        ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ████████   ██         ██   ███     ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                            ██        █         ██      █     █      █\n");
Cheat.PrintColor([130, 130, 255, 255], "                            █          ██████   █            █████████\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ██        ███        ██          ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ██       ██           ██    ██   █      █\n");
Cheat.PrintColor([130, 130, 255, 255], "                          ██         ██████       ██████   ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([130, 130, 255, 255], "Infernal tech loaded successfully\n");
Cheat.PrintColor([130, 130, 255, 255], "Welcome: " + Cheat.GetUsername() + "\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([255, 205, 255, 255], "Don't buy shitty pastes. Get the best for free!\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
const menu = function () {
    const b = UI.GetValue("Script items", "Menu");
    rage = b == 0, aa = b == 1, vis = b == 2, misc = b == 3, cont = b == 4;
    UI.SetEnabled("Script items", "Mindmg", rage);
    UI.SetEnabled("Script items", "Dormant Aimbot", rage);
    UI.SetEnabled("Script items", "Force sp on limbs", rage);
    UI.SetEnabled("Script items", "Enable HP/2", rage);
    UI.SetEnabled("Script items", "Force Head", rage);
    UI.SetEnabled("Script items", "Autopeek helper [beta]", rage);
    UI.SetEnabled("Script items", "Force sp on AWP", rage);
    UI.SetEnabled("Script items", "LD on slow walk", aa);
    UI.SetEnabled("Script items", "Freestand on key", aa);
    UI.SetEnabled("Script items", "Alternative fake-lag", aa);
    UI.SetEnabled("Script items", "Lagsync", aa);
    UI.SetEnabled("Script items", "Anti-bruteforce", aa);
    UI.SetEnabled("Script items", "Indicators", vis);
    UI.SetEnabled("Script items", "Enable AA arrows", vis);
    UI.SetEnabled("Script items", "Fog", vis);
    UI.SetEnabled("Script items", "KeyBinds", vis);
    UI.SetEnabled("Script items", "Watermark", vis);
    UI.SetEnabled("Script items", "Exploits indicator", vis);
    UI.SetEnabled("Script items", "Aspect ratio changer", misc);
    UI.SetEnabled("Script items", "Logs", misc);
    UI.SetEnabled("Script items", "Model changer (based on team)", misc);
    UI.SetEnabled("Script items", "ClanTag", misc);
    UI.SetEnabled("Script items", "FPS Boost", misc);
    UI.SetEnabled("Script items", "Discord - ANARXIST#0911", cont);
    UI.SetEnabled("Script items", "YouTube - youtube.com/c/anarxist", cont);
    UI.SetEnabled("Script items", "VK - vk.com/an4rx1st", cont);
    UI.SetEnabled("Script items", "OnlyFans - soon...", cont)
};
UI.AddDropdown("Menu", ["Rage", "Anti-Aim", "Visuals", "Misc", "Contacts"]);
UI.AddLabel("Discord - ANARXIST#0911");
UI.AddLabel("YouTube - youtube.com/c/anarxist");
UI.AddLabel("VK - vk.com/an4rx1st");
UI.AddLabel("OnlyFans - soon...");
UI.AddCheckbox("Dormant Aimbot");
UI.AddHotkey("Dormant Aimbot keybind");
UI.AddCheckbox("Force sp on limbs");
UI.AddMultiDropdown("Force safepoint on limbs", ["Legs", "Feet"]);
UI.AddCheckbox("Enable HP/2");
UI.AddLabel("Works only with auto & enabled DT");
UI.AddCheckbox("Force Head");
UI.AddHotkey("Force Head keybind");
UI.AddCheckbox("Autopeek helper [beta]");
UI.AddCheckbox("Mindmg");
UI.AddHotkey("Minimum Damage Override");
UI.AddSliderInt("Heavy Pistol Mindmg", 0, 130);
UI.AddSliderInt("Scout Mindmg", 0, 130);
UI.AddSliderInt("AWP Mindmg", 0, 130);
UI.AddSliderInt("Auto Mindmg", 0, 130);
UI.AddLabel("<------------------------------------>");
UI.AddSliderInt("Normal Heavy Pistol dmg", 0, 130);
UI.AddSliderInt("Normal Scout dmg", 0, 130);
UI.AddSliderInt("Normal AWP dmg", 0, 130);
UI.AddSliderInt("Normal Auto dmg", 0, 130);
UI.AddCheckbox("Force sp on AWP");
UI.AddCheckbox("Lagsync");
UI.AddCheckbox("Freestand on key");
UI.AddHotkey("Freestand keybind");
UI.AddCheckbox("Alternative fake-lag");
UI.AddSliderInt("Send", 0, 16);
UI.AddSliderInt("Choke", 0, 16);
UI.AddCheckbox("LD on slow walk");
UI.AddCheckbox("Anti-bruteforce");
UI.AddCheckbox("Indicators");
UI.AddCheckbox("Enable AA arrows");
UI.AddColorPicker("Main color");
UI.AddCheckbox("Fog");
UI.AddColorPicker("Fog color");
UI.AddSliderInt("Distance", 0, 2000);
UI.AddSliderInt("Density", 0, 100);
UI.AddCheckbox("KeyBinds");
UI.AddCheckbox("Watermark");
UI.AddCheckbox("Exploits indicator");
UI.AddCheckbox("Indicators transparency");
UI.AddCheckbox("Aspect ratio changer");
UI.AddSliderFloat("Aspect ratio", 0, 5);
UI.AddCheckbox("Logs");
UI.AddCheckbox("Model changer (based on team)");
UI.AddDropdown("CT", ["None", "'TwoTimes' McCoy", "Seal Team 6 Soldier", "Buckshot", "Lt. Commander Ricksaw", "Dragomir", "Rezan The Ready", "Maximus", "Blackwolf", "The Doctor' Romanov", "B Squadron Officer", "3rd Commando Company", "Special Agent Ava", "Operator", "Markus Delrow", "Michael Syfers", "Enforcer", "Slingshot", "Soldier", "The Elite Mr. Muhlik", "Ground Rebel", "Osiris", "Prof. Shahmat", "Heavy armor"]);
UI.AddDropdown("T", ["None", "'TwoTimes' McCoy", "Seal Team 6 Soldier", "Buckshot", "Lt. Commander Ricksaw", "Dragomir", "Rezan The Ready", "Maximus", "Blackwolf", "The Doctor' Romanov", "B Squadron Officer", "3rd Commando Company", "Special Agent Ava", "Operator", "Markus Delrow", "Michael Syfers", "Enforcer", "Slingshot", "Soldier", "The Elite Mr. Muhlik", "Ground Rebel", "Osiris", "Prof. Shahmat", "Heavy armor"]);
UI.AddCheckbox("ClanTag");
UI.AddCheckbox("FPS Boost");

function calc_dist(f, e) {
    x = f[0] - e[0];
    y = f[1] - e[1];
    z = f[2] - e[2];
    return Math.sqrt(x * x + y * y + z * z)
}

function for_tab() {
    if (UI.GetValue("Script items", "Dormant Aimbot")) {
        UI.SetEnabled("Script items", "Dormant Aimbot keybind", rage)
    } else {
        UI.SetEnabled("Script items", "Dormant Aimbot keybind", 0)
    }
}

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

function subtract(f, e) {
    x = f[0] - e[0];
    y = f[1] - e[1];
    z = f[2] - e[2];
    var g = [x, y, z];
    return (g)
}

function VectorAngles(b) {
    var j;
    var e, g, f;
    if (b[1] == 0 && b[0] == 0) {
        g = 0;
        if (b[2] > 0) {
            f = 270
        } else {
            f = 90
        }
    } else {
        g = (Math.atan2(b[1], b[0]) * 180 / Math.PI);
        if (g < 0) {
            g += 360
        }
        e = Math.sqrt(b[0] * b[0] + b[1] * b[1]);
        f = (Math.atan2(-b[2], e) * 180 / Math.PI);
        if (f < 0) {
            f += 360
        }
    }
    x = f;
    y = g;
    z = 0;
    j = [x, y, z];
    return j
}

function can_shoot(e) {
    var b = Entity.GetWeapon(e);
    var g = Entity.GetClassID(b);
    var f = g == 107 || g == 108 || g == 96 || g == 99 || g == 112 || g == 155 || g == 47;
    var j = Entity.GetProp(b, "DT_BaseCombatWeapon", "m_iClip1");
    var k = Entity.GetProp(b, "CBasePlayer", "m_fFlags");
    if (f || j == 0 || k & 1 << 1) {
        return false
    }
    return true
}
va = function (f, e) {
    return [f[0] + e[0], f[1] + e[1], f[2] + e[2]]
};

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

function check() {
    var j = Entity.GetEnemies();
    var l = j.filter(function (n) {
        return Entity.IsDormant(n) && Entity.IsAlive(n) && Trace.Bullet(Entity.GetLocalPlayer(), n, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(n), [0, 0, 45]))[1] > 1
    });
    var m = l.sort(function (n, e) {
        return Trace.Bullet(Entity.GetLocalPlayer(), n, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(n), [0, 0, 45]))[1] - Trace.Bullet(Entity.GetLocalPlayer(), e, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(e), [0, 0, 45]))[1]
    })[0];
    if (!m) {
        return
    }
    var g = Entity.GetWeapon(Entity.GetLocalPlayer());
    var f = Entity.GetProp(g, "DT_BaseCombatWeapon", "m_flNextPrimaryAttack");
    var b = VectorAngles(subtract(va(Entity.GetRenderOrigin(m), [0, 0, 45]), Entity.GetEyePosition(Entity.GetLocalPlayer())));
    if (!can_shoot(Entity.GetLocalPlayer())) {
        return
    }
    if (UI.IsHotkeyActive("Script Items", "Dormant Aimbot")) {
        if (Globals.Curtime() - f > 0.1) {
            UserCMD.SetAngles(b);
            var k = Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_fFlags");
            Cheat.ExecuteCommand("+attack");
            shot = true;
            dmg = Trace.Bullet(Entity.GetLocalPlayer(), m, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(m), [0, 0, 45]))[1]
        }
    }
}

function wrap() {
    try {
        check()
    } catch (b) {}
}

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

function safeLegs() {
    const b = UI.GetValue("Misc", "Force safepoint on limbs");
    if (b & (1 << 0)) {
        Ragebot.ForceHitboxSafety(7);
        Ragebot.ForceHitboxSafety(8);
        Ragebot.ForceHitboxSafety(9);
        Ragebot.ForceHitboxSafety(10)
    }
    if (b & (1 << 1)) {
        Ragebot.ForceHitboxSafety(11);
        Ragebot.ForceHitboxSafety(12)
    }
}

function safe_tab() {
    if (UI.GetValue("Script items", "Force sp on limbs")) {
        UI.SetEnabled("Script items", "Force safepoint on limbs", rage)
    } else {
        UI.SetEnabled("Script items", "Force safepoint on limbs", 0)
    }
}

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

function hp_tab() {
    if (UI.GetValue("Script items", "Enable HP/2")) {
        UI.SetEnabled("Script items", "Works only with auto & enabled DT", rage)
    } else {
        UI.SetEnabled("Script items", "Works only with auto & enabled DT", 0)
    }
}

function maine() {
    if (UI.GetValue("Rage", "General", "Exploits", "Doubletap")) {
        var b = Ragebot.GetTarget();
        health = getPlayerHealth(b);
        if (!UI.GetValue("Script items", "Enable HP/2") == 1) {
            return
        }
        if (!Entity.IsAlive(b)) {
            return
        }
        switch (health) {
        case health >= 80:
            Ragebot.ForceTargetMinimumDamage(b, 51);
            break;
        case health <= 79:
            Ragebot.ForceTargetMinimumDamage(b, 41);
            break;
        case health >= 40 && health <= 59:
            Ragebot.ForceTargetMinimumDamage(b, 31);
            break;
        case health >= 20 && health <= 39:
            Ragebot.ForceTargetMinimumDamage(b, 21);
            break
        }
    }
}
var general_hit_cache = UI.GetValue("Rage", "GENERAL", "Targeting", "Hitboxes");
var pistol_hit_cache = UI.GetValue("Rage", "PISTOL", "Targeting", "Hitboxes");
var heavy_hit_cache = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes");
var scout_hit_cache = UI.GetValue("Rage", "SCOUT", "Targeting", "Hitboxes");
var awp_hit_cache = UI.GetValue("Rage", "AWP", "Targeting", "Hitboxes");
var auto_hit_cache = UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes");

function fhead_tab() {
    if (UI.GetValue("Script items", "Force Head")) {
        UI.SetEnabled("Script items", "Force Head keybind", rage)
    } else {
        UI.SetEnabled("Script items", "Force Head keybind", 0)
    }
}

function force_head() {
    if (UI.IsHotkeyActive("Script items", "Force Head keybind")) {
        UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", 1)
    } else {
        UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", general_hit_cache);
        UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", pistol_hit_cache);
        UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", heavy_hit_cache);
        UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", scout_hit_cache);
        UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", awp_hit_cache);
        UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", auto_hit_cache)
    }
}
var screen_size = Global.GetScreenSize();
var isInverted;
var drawDangerous = 1;
var heavy_old = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage");
var scout_old = UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage");
var awp_old = UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage");
var auto_old = UI.GetValue("Rage", "AUTOSNIPERS", "Targeting", "Minimum damage");

function isActive(b) {
    return UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", b)
}

function setValue(b, e) {
    UI.SetValue("Rage", b.toUpperCase(), "Targeting", "Minimum damage", e)
}

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

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

function isAwp(b) {
    if (b == "awp") {
        return true
    }
}

function isScout(b) {
    if (b == "ssg 08") {
        return true
    }
}

function isElse(b) {
    if (!b == "ssg 08" || b == "awp" || b == "scar 20" || weapon_name == "g3sg1" || b == "r8 revolver" || b == "desert eagle") {
        return true
    }
}

function onCM() {
    var g = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg");
    var f = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg");
    var e = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg");
    var b = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg");
    heavy_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg");
    scout_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg");
    awp_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg");
    auto_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg");
    weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
    if (isActive("Minimum Damage Override") && isHeavyPistol(weapon_name) && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
        setValue("HEAVY PISTOL", heavy_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("HEAVY PISTOL", g)
        } else {
            setValue("HEAVY PISTOL", heavy_old)
        }
    }
    if (isActive("Minimum Damage Override") && weapon_name == "ssg 08" && UI.GetValue("Script items", "Mindmg")) {
        setValue("SCOUT", scout_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("SCOUT", f)
        } else {
            setValue("SCOUT", scout_old)
        }
    }
    if (isActive("Minimum Damage Override") && weapon_name == "awp" && UI.GetValue("Script items", "Mindmg")) {
        setValue("AWP", awp_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("AWP", e)
        } else {
            setValue("AWP", awp_old)
        }
    }
    if (isActive("Minimum Damage Override") && isAutoSniper(weapon_name) && UI.GetValue("Script items", "Mindmg")) {
        setValue("AUTOSNIPER", auto_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("AUTOSNIPER", b)
        } else {
            setValue("AUTOSNIPER", scout_old)
        }
    }
}

function mindmg_tab() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "<------------------------------------>", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg", rage)
    } else {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "<------------------------------------>", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg", 0)
    }
}
var spback = false;

function awp_sp() {
    SlocalPlayer = Entity.GetLocalPlayer();
    SlocalPlayerWeapon = Entity.GetWeapon(SlocalPlayer);
    SlocalPlayerWeaponName = Entity.GetName(SlocalPlayerWeapon);
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Force sp on AWP") && SlocalPlayerWeaponName == "awp") {
        forcesp = UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point");
        if (!forcesp) {
            UI.ToggleHotkey("Rage", "GENERAL", "General", "Force safe point");
            spback = true
        }
    } else {
        if (spback) {
            UI.ToggleHotkey("Rage", "GENERAL", "General", "Force safe point");
            spback = false
        }
    }
}
multiplierOptions = [-2, -1, 1, 2];
var fl_cache = UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled");

function LagSync() {
    if (UI.GetValue("Script items", "Lagsync")) {
        AntiAim.SetOverride(1);
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", 1);
        AntiAim.SetFakeOffset(getRandomIntInclusive(20, 40));
        AntiAim.SetRealOffset(getRandomIntInclusive(30, 50) * multiplierOptions[getRandomIntInclusive(0, multiplierOptions.length)])
    } else {
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", fl_cache)
    }
}

function getRandomIntInclusive(e, b) {
    e = Math.ceil(e);
    b = Math.floor(b);
    return Math.floor(Math.random() * (b - e + 1)) + e
}

function fs_tab() {
    if (UI.GetValue("Script items", "Freestand on key")) {
        UI.SetEnabled("Script items", "Freestand keybind", aa)
    } else {
        UI.SetEnabled("Script items", "Freestand keybind", 0)
    }
}

function freestand() {
    if (UI.IsHotkeyActive("Script items", "Freestand keybind")) {
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", 1)
    } else {
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", autodir_old)
    }
}

function fl_tab() {
    if (UI.GetValue("Script items", "Alternative fake-lag")) {
        UI.SetEnabled("Script items", "Send", aa);
        UI.SetEnabled("Script items", "Choke", aa)
    } else {
        UI.SetEnabled("Script items", "Send", 0);
        UI.SetEnabled("Script items", "Choke", 0)
    }
}
var tickcount = 0;
var flip = false;

function set_fl() {
    var e = UI.GetValue("Script items", "Send");
    var b = UI.GetValue("Script items", "Choke");
    if (tickcount >= b && !flip) {
        flip = true;
        tickcount = 0
    }
    if (tickcount >= e && flip) {
        flip = false;
        tickcount = 0
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", !flip ? b : 0);
    tickcount++
}

function roundstart() {
    tickcount = 0
}

function exploit_conf() {
    var b = Entity.GetLocalPlayer();
    if (!b || !Entity.IsAlive(b)) {
        return
    }
    var f = Entity.GetProp(b, "DT_BasePlayer", "m_vecVelocity[0]");
    var e = Math.sqrt(f[0] * f[0] + f[1] * f[1] + f[2] * f[2]);
    var g = false;
    if (e > 5) {
        g = true
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", g);
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
        var g = false
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", g)
}
var autodir_old = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction");
var instant_old = UI.GetValue("Rage", "Exploits", "Doubletap instant");

function autopeek() {
    var b = Entity.GetGameRulesProxy();
    if (UI.GetValue("Script items", "Autopeek helper [beta]") && UI.IsHotkeyActive("Misc", "Movement", "Auto peek")) {
        UI.SetValue("Rage", "Exploits", "Doubletap instant", 1);
        !Entity.GetProp(b, "CCSGameRulesProxy", "m_bIsValveDS") && !UI.IsHotkeyActive("Script items", "Freestand keybind") && UI.ToggleHotkey("Script items", "Freestand keybind");
        !Entity.GetProp(b, "CCSGameRulesProxy", "m_bIsValveDS") && !UI.IsHotkeyActive("Rage", "GENERAL", "Doubletap") && UI.ToggleHotkey("Rage", "GENERAL", "Doubletap")
    }
}

function GetScriptOption(b) {
    var e = UI.GetValue("Misc", "JAVASCRIPT", "Script items", b);
    return e
}

function getRndInteger(e, b) {
    return Math.floor(Math.random() * (b - e + 1)) + e
}

function ld() {
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
        AntiAim.SetOverride(1);
        if (GetScriptOption("LD on slow walk")) {
            var k = -20;
            var f = 0;
            var j = getRndInteger(15, 25);
            var b = getRndInteger(20, 30);
            AntiAim.SetRealOffset(k);
            AntiAim.SetFakeOffset(f);
            var g = j + b;
            var e = j - 20;
            AntiAim.SetLBYOffset(j);
            AntiAim.SetLBYOffset(b);
            AntiAim.SetLBYOffset(g);
            AntiAim.SetFakeOffset(e)
        }
    }
}

function unload() {
    AntiAim.SetOverride(0)
}

function main() {
    var b = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
    if (b) {
        AntiAim.SetOverride(1);
        AntiAim.SetFakeOffset(0);
        AntiAim.SetRealOffset(-45);
        AntiAim.SetLBYOffset(0)
    } else {
        AntiAim.SetOverride(1);
        AntiAim.SetFakeOffset(0);
        AntiAim.SetRealOffset(45);
        AntiAim.SetLBYOffset(0)
    }
}

function invert() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Anti-bruteforce")) {
        UI.ToggleHotkey("Anti-Aim", "Fake angles", "Inverter")
    }
}
screen_size = Global.GetScreenSize();
alpha_main = 0;
alpha_anim = 0;
add_anim = 0;
value_duck = 0;
alpha_duck_anim = 0;
alpha_duck = 0;
add_duck = 0;
value_safe = 0;
alpha_safe = 0;
add_safe = 0;
value_da = 0;
alpha_da = 0;
add_da = 0;
value_damage = 0;
alpha_damage = 0;
add_damage = 0;
value_legit = 0;
alpha_legit = 0;
add_legit = 0;
value_autopeek = 0;
alpha_autopeek = 0;
add_autopeek = 0;
value_onshot = 0;
alpha_onshot = 0;
add_onshot = 0;
value_fs = 0;
alpha_fs = 0;
add_fs = 0;
value_dt = 0;
alpha_dt = 0;
add_dt = 0;
red_dt = 0;
green_dt = 0;
value_hs = 0;
alpha_hs = 0;
add_hs = 0;
value_arc = 0;
alpha_anim_state = false;
alpha_duck_state = false;
clamp = function (f, e, b) {
    if (f > b) {
        return b
    }
    if (e > f) {
        return e
    }
    return f
};

function indication() {
    if (UI.GetValue("Script items", "Indicators")) {
        if (World.GetServerString() == "") {
            return
        }
        player = Entity.GetLocalPlayer();
        isDoubletap = UI.IsHotkeyActive("Rage", "Exploits", "Doubletap") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isHideShot = UI.IsHotkeyActive("Rage", "Exploits", "Hide shots") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isDamageOverride = UI.IsHotkeyActive("Script items", "Minimum Damage Override");
        isAutoPeek = UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek");
        isForceBody = UI.IsHotkeyActive("Rage", "General", "Force body aim");
        isFakeDuck = UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isDormant = UI.IsHotkeyActive("Script items", "Dormant Aimbot keybind");
        isInverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
        isDesyncMode = UI.GetValue("Anti-Aim", "Fake angles", "Fake desync");
        isFreestand = UI.IsHotkeyActive("Script items", "Freestand keybind");
        isLegitAA = UI.IsHotkeyActive("Rage", "General", "Force body aim");
        isSlowWalk = UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk");
        isSafety = UI.IsHotkeyActive("Rage", "General", "Force safe point");
        var e = UI.GetColor("Misc", "JAVASCRIPT", "Main color");
        var b = Global.GetScreenSize();
        add_y = 80;
        add_factor = 10;
        fade_factor = ((1 / 0.15) * Globals.Frametime() * 200) / 200;
        fade_factor_anim = ((1 / 0.9) * Globals.Frametime()) * 200;
        fade_factor_duck = ((1 / 0.1) * Globals.Frametime()) * 200;
        if ((!Entity.IsAlive(player) && alpha_main != 0 || Input.IsKeyPressed(9))) {
            alpha_main = clamp(alpha_main - fade_factor * 100, 0, 255)
        }
        if (Entity.IsAlive(player) && alpha_main != 255 && !Input.IsKeyPressed(9)) {
            alpha_main = clamp(alpha_main + fade_factor * 100, 0, 255)
        }
        if (isDamageOverride && alpha_damage != 1 && alpha_main == 255) {
            value_damage = clamp(value_damage + fade_factor, 0, 1);
            alpha_damage = clamp(alpha_damage + fade_factor * value_damage, 0, 1);
            add_damage = clamp(add_damage + fade_factor * add_damage, 0, 1)
        }
        if (!isDamageOverride && alpha_damage != 0 || alpha_main != 255) {
            value_damage = clamp(value_damage - fade_factor, 0, 1);
            alpha_damage = clamp(alpha_damage - fade_factor * alpha_damage, 0, 1);
            add_damage = clamp(add_damage - fade_factor * add_damage, 0, 1)
        }
        if (alpha_damage < 0.01) {
            alpha_damage = 0
        }
        if (add_damage < 0.01) {
            add_damage = 0
        }
        if (isLegitAA && alpha_legit != 1 && alpha_main == 255) {
            value_legit = clamp(value_legit + fade_factor, 0, 1);
            alpha_legit = clamp(alpha_legit + fade_factor * value_legit, 0, 1);
            add_legit = clamp(add_legit + fade_factor * value_legit, 0, 1)
        }
        if (!isLegitAA && alpha_legit != 0 || alpha_main != 255) {
            value_legit = clamp(value_legit - fade_factor, 0, 1);
            alpha_legit = clamp(alpha_legit - fade_factor * alpha_legit, 0, 1);
            add_legit = clamp(add_legit - fade_factor * add_legit, 0, 1)
        }
        if (alpha_legit < 0.01) {
            alpha_legit = 0
        }
        if (add_legit < 0.01) {
            add_legit = 0
        }
        if (isAutoPeek && alpha_autopeek != 1 && alpha_main == 255) {
            value_autopeek = clamp(value_autopeek + fade_factor, 0, 1);
            alpha_autopeek = clamp(alpha_autopeek + fade_factor * value_autopeek, 0, 1);
            add_autopeek = clamp(add_autopeek + fade_factor * value_autopeek, 0, 1)
        }
        if (!isAutoPeek && alpha_autopeek != 0 || alpha_main != 255) {
            value_autopeek = clamp(value_autopeek - fade_factor, 0, 1);
            alpha_autopeek = clamp(alpha_autopeek - fade_factor * alpha_autopeek, 0, 1);
            add_autopeek = clamp(add_autopeek - fade_factor * add_autopeek, 0, 1)
        }
        if (alpha_autopeek < 0.01) {
            alpha_autopeek = 0
        }
        if (add_autopeek < 0.01) {
            add_autopeek = 0
        }
        if (isFreestand && alpha_fs != 1 && alpha_main == 255) {
            value_fs = clamp(value_fs + fade_factor, 0, 1);
            alpha_fs = clamp(alpha_fs + fade_factor * value_fs, 0, 1);
            add_fs = clamp(add_fs + fade_factor * value_fs, 0, 1)
        }
        if (!isFreestand && alpha_fs != 0 || alpha_main != 255) {
            value_fs = clamp(value_fs - fade_factor, 0, 1);
            alpha_fs = clamp(alpha_fs - fade_factor * alpha_fs, 0, 1);
            add_fs = clamp(add_fs - fade_factor * add_fs, 0, 1)
        }
        if (alpha_fs < 0.01) {
            alpha_fs = 0
        }
        if (add_fs < 0.01) {
            add_fs = 0
        }
        if (isSafety && alpha_safe != 1 && alpha_main == 255) {
            value_safe = clamp(value_safe + fade_factor, 0, 1);
            alpha_safe = clamp(alpha_safe + fade_factor * value_safe, 0, 1);
            add_safe = clamp(add_safe + fade_factor * value_safe, 0, 1)
        }
        if (!isSafety && alpha_safe != 0 || alpha_main != 255) {
            value_safe = clamp(value_safe - fade_factor, 0, 1);
            alpha_safe = clamp(alpha_safe - fade_factor * alpha_safe, 0, 1);
            add_safe = clamp(add_safe - fade_factor * add_safe, 0, 1)
        }
        if (alpha_safe < 0.01) {
            alpha_safe = 0
        }
        if (add_safe < 0.01) {
            add_safe = 0
        }
        if (isDormant && alpha_da != 1 && alpha_main == 255) {
            value_da = clamp(value_da + fade_factor, 0, 1);
            alpha_da = clamp(alpha_da + fade_factor * value_da, 0, 1);
            add_da = clamp(add_da + fade_factor * value_da, 0, 1)
        }
        if (!isDormant && alpha_da != 0 || alpha_main != 255) {
            value_da = clamp(value_da - fade_factor, 0, 1);
            alpha_da = clamp(alpha_da - fade_factor * alpha_da, 0, 1);
            add_da = clamp(add_da - fade_factor * add_da, 0, 1)
        }
        if (alpha_da < 0.01) {
            alpha_da = 0
        }
        if (add_da < 0.01) {
            add_da = 0
        }
        if (!isDoubletap && !isHideShot && alpha_main == 255) {
            add_anim = clamp(add_anim + fade_factor, 0, 1);
            if (alpha_anim_state == false) {
                alpha_anim = clamp(alpha_anim + fade_factor_anim, 0, 255);
                if (alpha_anim == 255) {
                    alpha_anim_state = true
                }
            } else {
                alpha_anim = clamp(alpha_anim - fade_factor_anim, 0, 255);
                if (alpha_anim == 0) {
                    alpha_anim_state = false
                }
            }
        } else {
            alpha_anim = clamp(alpha_anim - fade_factor * 100, 0, 255);
            add_anim = clamp(add_anim - fade_factor * add_anim, 0, 1)
        }
        if (isFakeDuck) {
            if (alpha_duck_state == false) {
                alpha_duck_anim = clamp(alpha_duck_anim + fade_factor_duck, 0, 255);
                if (alpha_duck_anim == 255) {
                    alpha_duck_state = true
                }
            } else {
                alpha_duck_anim = clamp(alpha_duck_anim - fade_factor_duck, 0, 255);
                if (alpha_duck_anim == 0) {
                    alpha_duck_state = false
                }
            }
        }
        if (!isFakeDuck) {
            alpha_duck_anim = alpha_duck * 255
        }
        if (isFakeDuck && add_duck != 1 && alpha_main == 255) {
            value_duck = clamp(value_duck + fade_factor, 0, 1);
            add_duck = clamp(add_duck + fade_factor * value_duck, 0, 1);
            alpha_duck = clamp(alpha_duck + fade_factor * value_duck, 0, 1)
        }
        if (!isFakeDuck && alpha_duck != 0 || alpha_main != 255) {
            value_duck = clamp(value_duck - fade_factor, 0, 1);
            add_duck = clamp(add_duck - fade_factor * add_duck, 0, 1);
            alpha_duck = clamp(alpha_duck - fade_factor * alpha_duck, 0, 1)
        }
        if (alpha_duck < 0.01) {
            alpha_duck = 0
        }
        if (add_duck < 0.01) {
            add_duck = 0
        }
        if (!isFakeDuck && isDoubletap && green_dt != 1 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            value_dt = clamp(value_dt + fade_factor, 0, 1);
            alpha_dt = clamp(alpha_dt + fade_factor * value_dt, 0, 1);
            green_dt = clamp(green_dt + fade_factor * value_dt, 0, 1)
        }
        if (!isFakeDuck && isDoubletap) {
            add_dt = clamp(add_dt + fade_factor * value_dt, 0, 1)
        }
        if (!isDoubletap || alpha_main != 255 || isFakeDuck) {
            alpha_dt = clamp(alpha_dt - fade_factor * alpha_dt, 0, 1)
        }
        if (!isDoubletap || alpha_main != 255 || isFakeDuck) {
            add_dt = clamp(add_dt - fade_factor * add_dt, 0, 1)
        }
        if (!isDoubletap && alpha_dt != 0 || Exploit.GetCharge() <= 0.3 || alpha_main != 255) {
            value_dt = clamp(value_dt - fade_factor, 0, 1);
            green_dt = clamp(green_dt - fade_factor * green_dt, 0, 1)
        }
        if (isDoubletap && red_dt != 150 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            red_dt = clamp(red_dt - fade_factor * 75, 150, 255)
        }
        if (!isDoubletap && red_dt != 255 || Exploit.GetCharge() <= 0.3 || alpha_main != 255) {
            red_dt = clamp(red_dt + fade_factor * 75, 150, 255)
        }
        if (alpha_dt < 0.01) {
            alpha_dt = 0
        }
        if (add_dt < 0.01) {
            add_dt = 0
        }
        dt_color = [red_dt, 255 * green_dt, 0, 255 * alpha_dt];
        if (!isFakeDuck && isHideShot && !isDoubletap && alpha_hs != 1 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            value_hs = clamp(value_hs + fade_factor, 0, 1);
            alpha_hs = clamp(alpha_hs + fade_factor * value_hs, 0, 1);
            add_hs = clamp(alpha_hs + fade_factor * value_hs, 0, 1)
        }
        if (!isHideShot || isDoubletap && alpha_hs != 0 || alpha_main != 255 || isFakeDuck) {
            value_hs = clamp(value_hs - fade_factor, 0, 1);
            alpha_hs = clamp(alpha_hs - fade_factor * alpha_hs, 0, 1);
            add_hs = clamp(alpha_hs - fade_factor * add_hs, 0, 1)
        }
        hs_color = [138, 43, 226, alpha_hs * 255];
        if (isDesyncMode == 0) {
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 26, 1, "INFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 26, 1, "RNAL", [0, 0, 0, 255], 3);
            if (isInverter == 1) {
                Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [e[0], e[1], e[2], 255], 3);
                Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [255, 255, 255, 255], 3)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [255, 255, 255, 255], 3);
                    Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [e[0], e[1], e[2], 255], 3)
                }
            }
        }
        if (isDesyncMode == 1) {
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 26, 1, "INFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 26, 1, "RNAL", [0, 0, 0, 255], 3);
            if (isInverter == 1) {
                Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [255, 255, 255, 255], 3);
                Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [e[0], e[1], e[2], 255], 3)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [e[0], e[1], e[2], 255], 3);
                    Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [255, 255, 255, 255], 3)
                }
            }
        }
        if (alpha_dt != 0) {
            add_y = add_y + add_dt * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 26, screen_size[1] / 2 + add_y - 45, 0, "DOUBLE TAP", [0, 0, 0, dt_color[3]], 3);
            Render.StringCustom(screen_size[0] / 2 - 25, screen_size[1] / 2 + add_y - 44, 0, "DOUBLE TAP", dt_color, 3)
        }
        if (isLegitAA) {
            add_y = add_y + add_legit * add_factor + 2;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 + add_y - 46, 0, "BODY", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "BODY", [255, 215, 0, 255], 3)
        }
        if (isSafety) {
            add_y = add_y + add_safe * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 + add_y - 46, 0, "SAFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "SAFE", [0, 191, 255, 255], 3)
        }
        if (alpha_hs != 0) {
            add_y = add_y + add_hs * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 8, screen_size[1] / 2 + add_y - 45, 0, "HIDE", [0, 0, 0, hs_color[3]], 3);
            Render.StringCustom(screen_size[0] / 2 - 7, screen_size[1] / 2 + add_y - 44, 0, "HIDE", hs_color, 3)
        }
        if (isFakeDuck || alpha_duck_anim > 0 && alpha_main > 50) {
            add_y = add_y + add_duck * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 - 2 + add_y - 45, 0, "DUCK", [0, 0, 0, alpha_duck_anim], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "DUCK", [0, 250, 154, alpha_duck_anim], 3)
        }
        if (alpha_da > 0) {
            add_y = add_y + add_da * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 22, screen_size[1] / 2 - 2 + add_y - 44, 0, "DORMANT", [0, 0, 0, alpha_da * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 21, screen_size[1] / 2 + add_y - 45, 0, "DORMANT", [238, 130, 238, alpha_da * 255], 3)
        }
        if (alpha_fs > 0) {
            add_y = add_y + add_fs * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 24, screen_size[1] / 2 - 2 + add_y - 42, 0, "FREESTAND", [0, 0, 0, alpha_fs * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 23, screen_size[1] / 2 + add_y - 43, 0, "FREESTAND", [0, 250, 154, alpha_fs * 255], 3)
        }
        if (isAutoPeek) {
            add_y = add_y + add_autopeek * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 23, screen_size[1] / 2 - 2 + add_y - 42, 0, "AUTOPEEK", [0, 0, 0, alpha_autopeek * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 22, screen_size[1] / 2 + add_y - 43, 0, "AUTOPEEK", [135, 206, 250, alpha_autopeek * 255], 3)
        }
    }
}

function menu_cb() {
    enabled = UI.GetValue("Anti-aim indication")
}

function menu_check() {
    if (UI.IsMenuOpen()) {
        menu_cb()
    }
}
UI.SetEnabled("Script items", "Main color", 0);
var screen_size = Global.GetScreenSize();

function ind() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable AA arrows")) {
        if (!World.GetServerString()) {
            return
        }
        isInverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
        isDesyncMode = UI.GetValue("Anti-Aim", "Fake angles", "Fake desync");
        var f = UI.GetColor("Misc", "JAVASCRIPT", "Main color");
        var e = Global.GetScreenSize();
        x = e[0];
        y = e[1];
        if (isDesyncMode == 0) {
            Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 4, 1, ">>>", [0, 0, 0, 255], 7);
            Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 4, 1, "<<<", [0, 0, 0, 255], 7);
            if (isInverter == 1) {
                Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [255, 255, 255, 255], 7);
                Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [f[0], f[1], f[2], 255], 7)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [255, 255, 255, 255], 7);
                    Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [f[0], f[1], f[2], 255], 7)
                }
            }
        }
        if (isDesyncMode == 1) {
            Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 4, 1, ">>>", [0, 0, 0, 255], 7);
            Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 4, 1, "<<<", [0, 0, 0, 255], 7);
            if (isInverter == 1) {
                Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [f[0], f[1], f[2], 255], 7);
                Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [255, 255, 255, 255], 7)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [f[0], f[1], f[2], 255], 7);
                    Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [255, 255, 255, 255], 7)
                }
            }
        }
    }
    var g = 0;
    var b = 0;
    var j = false
}

function main_color_vis() {
    if (UI.GetValue("Script items", "Indicators") || UI.GetValue("Script items", "Enable AA arrows")) {
        UI.SetEnabled("Script items", "Main color", vis)
    } else {
        UI.SetEnabled("Script items", "Main color", 0)
    }
}

function player_connect() {
    var b = Event.GetInt("userid");
    if (Entity.GetEntityFromUserID(b) == Entity.GetLocalPlayer()) {
        lastPressed = Global.Tickcount();
        olDoubleTapick = Global.Tickcount();
        lastPressed = Global.Tickcount();
        oldTick = Global.Tickcount()
    }
}

function fog_tab() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fog")) {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Fog color", vis);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Distance", vis);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Density", vis)
    } else {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Fog color", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Distance", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Density", 0)
    }
}

function fog() {
    if (!UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fog")) {
        if (Convar.GetString("fog_override") !== "0") {
            Convar.SetString("fog_override", "0")
        }
        return
    }
    if (Convar.GetString("fog_override") !== "1") {
        Convar.SetString("fog_override", "1")
    }
    const b = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Fog color");
    const f = b[0] + " " + b[1] + " " + b[2];
    const g = UI.GetString("Misc", "JAVASCRIPT", "Script items", "Distance");
    const e = (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Density") / 100).toString();
    if (Convar.GetString("fog_color") !== f) {
        Convar.SetString("fog_color", f)
    }
    if (Convar.GetString("fog_end") !== g) {
        Convar.SetString("fog_start", "0");
        Convar.SetString("fog_end", g)
    }
    if (Convar.GetString("fog_maxdensity") !== e) {
        Convar.SetString("fog_maxdensity", e)
    }
}

function HSVtoRGB(m, B, w) {
    var e, n, u, l, o, k, j, A;
    l = Math.floor(m * 6);
    o = m * 6 - l;
    k = w * (1 - B);
    j = w * (1 - o * B);
    A = w * (1 - (1 - o) * B);
    switch (l % 6) {
    case 0:
        e = w, n = A, u = k;
        break;
    case 1:
        e = j, n = w, u = k;
        break;
    case 2:
        e = k, n = w, u = A;
        break;
    case 3:
        e = k, n = j, u = w;
        break;
    case 4:
        e = A, n = k, u = w;
        break;
    case 5:
        e = w, n = k, u = j;
        break
    }
    return {
        r: Math.round(e * 255),
        g: Math.round(n * 255),
        b: Math.round(u * 255)
    }
}
const x1 = UI.AddSliderInt("Hotkeys_x", 0, Global.GetScreenSize()[0]);
const y1 = UI.AddSliderInt("Hotkeys_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled("Script items", "Hotkeys_x", 0);
UI.SetEnabled("Script items", "Hotkeys_y", 0);
var alpha = 0;
var maxwidth = 0;
var swalpha = 0;
var fdalpha = 0;
var apalpha = 0;
var aialpha = 0;
var spalpha = 0;
var fbalpha = 0;
var dtalpha = 0;
var hsalpha = 0;
var doalpha = 0;
var textalpha = 0;
var headalpha = 0;
var h = new Array();

function in_bounds(g, b, j, e, f) {
    return (g[0] > b) && (g[1] > j) && (g[0] < e) && (g[1] < f)
}

function main_hotkeys() {
    weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
    if (UI.GetValue("Script items", "KeyBinds")) {
        if (isHeavyPistol(weapon_name)) {
            var l = (UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage"))
        } else {
            if (isScout(weapon_name)) {
                var l = (UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage"))
            } else {
                if (isAwp(weapon_name)) {
                    var l = (UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage"))
                } else {
                    if (isAutoSniper(weapon_name)) {
                        var l = (UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Minimum damage"))
                    } else {
                        var l = "-"
                    }
                }
            }
        }
        if (!World.GetServerString()) {
            return
        }
        const q = UI.GetValue("Misc", "JAVASCRIPT", "Hotkeys_x"),
            o = UI.GetValue("Misc", "JAVASCRIPT", "Hotkeys_y");
        var j = Render.AddFont("Verdana", 7, 100);
        var k = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
        var m = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
        var p = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
        var r = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
        var e = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
        var n = 8 * Globals.Frametime();
        var f = 75;
        var b = 0;
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Dormant Aimbot keybind")) {
            swalpha = Math.min(swalpha + n, 1)
        } else {
            swalpha = swalpha - n;
            if (swalpha < 0) {
                swalpha = 0
            }
            if (swalpha == 0) {
                h.splice(h.indexOf("Dormant   "))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Force Head keybind")) {
            headalpha = Math.min(headalpha + n, 1)
        } else {
            headalpha = headalpha - n;
            if (headalpha < 0) {
                headalpha = 0
            }
            if (headalpha == 0) {
                h.splice(h.indexOf("Force Head"))
            }
        }
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            fdalpha = Math.min(fdalpha + n, 1)
        } else {
            fdalpha = fdalpha - n;
            if (fdalpha < 0) {
                fdalpha = 0
            }
            if (fdalpha == 0) {
                h.splice(h.indexOf("Duck peek"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            apalpha = Math.min(apalpha + n, 1)
        } else {
            apalpha = apalpha - n;
            if (apalpha < 0) {
                apalpha = 0
            }
            if (apalpha == 0) {
                h.splice(h.indexOf("Auto peek"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestand keybind")) {
            aialpha = Math.min(aialpha + n, 1)
        } else {
            aialpha = aialpha - n;
            if (aialpha < 0) {
                aialpha = 0
            }
            if (aialpha == 0) {
                h.splice(h.indexOf("Freestand"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            dtalpha = Math.min(dtalpha + n, 1)
        } else {
            dtalpha = dtalpha - n;
            if (dtalpha < 0) {
                dtalpha = 0
            }
            if (dtalpha == 0) {
                h.splice(h.indexOf("Double tap"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            hsalpha = Math.min(hsalpha + n, 1)
        } else {
            hsalpha = hsalpha - n;
            if (hsalpha < 0) {
                hsalpha = 0
            }
            if (hsalpha == 0) {
                h.splice(h.indexOf("Hide shots"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            spalpha = Math.min(spalpha + n, 1)
        } else {
            spalpha = spalpha - n;
            if (spalpha < 0) {
                spalpha = 0
            }
            if (spalpha == 0) {
                h.splice(h.indexOf("Safe point"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            fbalpha = Math.min(fbalpha + n, 1)
        } else {
            fbalpha = fbalpha - n;
            if (fbalpha < 0) {
                fbalpha = 0
            }
            if (fbalpha == 0) {
                h.splice(h.indexOf("Body aim   "))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override")) {
            doalpha = Math.min(doalpha + n, 1)
        } else {
            doalpha = doalpha - n;
            if (doalpha < 0) {
                doalpha = 0
            }
            if (doalpha == 0) {
                h.splice(h.indexOf("Dmg"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Dormant Aimbot keybind")) {
            if (h.indexOf("Dormant   ") == -1) {
                h.push("Dormant   ")
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Force Head keybind")) {
            if (h.indexOf("Force Head") == -1) {
                h.push("Force Head")
            }
        }
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            if (h.indexOf("Duck peek") == -1) {
                h.push("Duck peek")
            }
        }
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            if (h.indexOf("Auto peek") == -1) {
                h.push("Auto peek")
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestand keybind")) {
            if (h.indexOf("Freestand") == -1) {
                h.push("Freestand")
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            if (h.indexOf("Double tap") == -1) {
                h.push("Double tap")
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            if (h.indexOf("Hide shots") == -1) {
                h.push("Hide shots")
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            if (h.indexOf("Safe point") == -1) {
                h.push("Safe point")
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            if (h.indexOf("Body aim") == -1) {
                h.push("Body aim   ")
            }
        }
        if (h.length > 0) {
            alpha = Math.min(alpha + n, 1)
        } else {
            alpha = alpha - n;
            if (alpha < 0) {
                alpha = 0
            }
        }
        for (i = 0; i < h.length; i++) {
            if (Render.TextSizeCustom(h[i], j)[0] > b) {
                b = Render.TextSizeCustom(h[i], j)[0]
            }
        }
        if (b == 0) {
            b = 50
        }
        f = f + b + 20;
        if (UI.GetValue("Script items", "Indicators style") == 1) {
            Render.GradientRect(q, o + 3, f, 2, 1, [p[0], p[1], p[2], p[3]], [r[0], r[1], r[2], r[3]])
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 2) {
                Render.GradientRect(q, o + 3, f / 2 + 5, 2, 1, [48, 206, 230, 255], [220, 57, 218, 255]);
                Render.GradientRect(q + 77, o + 3, f / 2 - 3, 2, 1, [220, 57, 218, 255], [220, 232, 47, 255])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 3) {
                    Render.GradientRect(q, o + 3, f, 2, 1, [k.g, k.b, k.r, 255], [k.r, k.g, k.b, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 4) {
                        Render.GradientRect(q, o + 3, f / 2 + 5, 2, 1, [e[0], e[1], e[2], 55], [e[0], e[1], e[2], 255]);
                        Render.GradientRect(q + 77, o + 3, f / 2 - 3, 2, 1, [e[0], e[1], e[2], 255], [e[0], e[1], e[2], 55])
                    } else {
                        Render.GradientRect(q, o + 3, f, 2, 1, [m[0], m[1], m[2], m[3]], [m[0], m[1], m[2], m[3]])
                    }
                }
            }
        }
        if (!UI.GetValue("Script items", "Indicators transparency")) {
            Render.FilledRect(q, o + 5, f, 18, [35, 35, 35, 255])
        } else {
            Render.FilledRect(q, o + 5, f, 18, [35, 35, 35, 0])
        }
        Render.StringCustom(q + f / 2 - (Render.TextSizeCustom("keybinds", j)[0] / 2) + 2, o + 9, 0, "keybinds", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q + f / 2 - (Render.TextSizeCustom("keybinds", j)[0] / 2) + 1, o + 8, 0, "keybinds", [255, 255, 255, 255], j);
        Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, "MinDamage", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, "MinDamage", [255, 255, 255, 255], j);
        Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[" + l + "]", j)[0], o + 26 + 6 + 18 * i, 0, "[" + l + "]", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[" + l + "]", j)[0], o + 26 + 6 + 18 * i, 0, "[" + l + "]", [255, 255, 255, 255], j);
        for (i = 0; i < h.length; i++) {
            switch (h[i]) {
            case "Dormant   ":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, swalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, swalpha * 255], j);
                break;
            case "Force Head":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, headalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, headalpha * 255], j);
                break;
            case "Duck peek":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, fdalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, fdalpha * 255], j);
                break;
            case "Auto peek":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, apalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, apalpha * 255], j);
                break;
            case "Freestand":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, aialpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, aialpha * 255], j);
                break;
            case "Double tap":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, dtalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, dtalpha * 255], j);
                break;
            case "Hide shots":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, hsalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, hsalpha * 255], j);
                break;
            case "Safe point":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, spalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, spalpha * 255], j);
                Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [0, 0, 0, spalpha * 255 / 1.3], j);
                Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [255, 255, 255, spalpha * 255], j);
                break;
            case "Body aim   ":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, fbalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, fbalpha * 255], j);
                Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [0, 0, 0, fbalpha * 255 / 1.3], j);
                Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [255, 255, 255, fbalpha * 255], j);
                break
            }
        }
    }
    if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
        const g = Global.GetCursorPosition();
        if (in_bounds(g, q, o, q + f, o + 30)) {
            UI.SetValue("Misc", "JAVASCRIPT", "Hotkeys_x", g[0] - f / 2);
            UI.SetValue("Misc", "JAVASCRIPT", "Hotkeys_y", g[1] - 20)
        }
    }
}

function watermark() {
    if (UI.GetValue("Scripts items", "Watermark")) {}
    const J = Global.GetScreenSize();
    var b = 0;
    var w = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
    var t = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
    var g = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
    var A = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
    var H = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
    UI.SetEnabled("Script items", "Classic color", 0);
    UI.SetEnabled("Script items", "First Gradient", 0);
    UI.SetEnabled("Script items", "Second Gradient", 0);
    UI.SetEnabled("Script items", "Faded color", 0);
    if (UI.GetValue("Script items", "Watermark")) {
        if (b == 0) {
            var I = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString(),
                G = new Date(),
                F = G.getHours(),
                v = Local.GetRealYaw(),
                u = Local.GetFakeYaw(),
                j = Math.min(Math.abs(v - u) / 2, 60).toFixed(1),
                s = Math.min(Math.round(1.7 * Math.abs(j)), 100),
                E = G.getMinutes(),
                r = Render.AddFont("Verdana", 7, 100),
                q = Render.AddFont("Verdana", 7, 0),
                D = F <= 9 ? "0" + G.getHours() + ":" : G.getHours() + ":",
                C = E <= 9 ? "0" + G.getMinutes() + "" : G.getMinutes(),
                p = "";
            if (World.GetServerString() != "") {
                p += "Infernal tech | [version 1.3] | youtube.com/c/anarxist | " + I + "ms "
            }
            p += "| " + D + C;
            var B = 28;
            const o = Render.TextSizeCustom(p, q)[0] + 15;
            var f = Global.GetScreenSize()[0] - 2,
                e = 29;
            f = f - o - 12;
            if (!UI.GetValue("Script items", "Indicators transparency")) {
                Render.FilledRect(f + 13, e - 15, o - 6, 17, [35, 35, 35, 255])
            } else {
                Render.FilledRect(f + 13, e - 15, o - 6, 17, [35, 35, 35, 0])
            }
            Render.StringCustom(f + 17, 16, 0, p, [0, 0, 0, 255], q);
            Render.StringCustom(f + 17, 16, 0, p, [255, 255, 255, 255], q);
            if (UI.GetValue("Script items", "Indicators style") == 1) {
                Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [g[0], g[1], g[2], g[3]], [A[0], A[1], A[2], A[3]])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 2) {
                    Render.GradientRect(f + 13, e - 17, o - 173, 2, 2, [48, 206, 230, 255], [220, 57, 218, 255]);
                    Render.GradientRect(f + 172, e - 17, o - 165, 2, 2, [220, 57, 218, 255], [220, 232, 47, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 3) {
                        Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [w.g, w.b, w.r, 255], [w.r, w.g, w.b, 255])
                    } else {
                        if (UI.GetValue("Script items", "Indicators style") == 4) {
                            Render.GradientRect(f + 13, e - 17, o - 173, 2, 2, [H[0], H[1], H[2], 55], [H[0], H[1], H[2], 255]);
                            Render.GradientRect(f + 172, e - 17, o - 165, 2, 2, [H[0], H[1], H[2], 255], [H[0], H[1], H[2], 55])
                        } else {
                            Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [t[0], t[1], t[2], t[3]], [t[0], t[1], t[2], t[3]])
                        }
                    }
                }
            }
            var n = "" + j.toString() + " degrees  | safety: " + s.toString() + "%",
                m = Render.TextSizeCustom(n, r)[0] + 15,
                l = Global.GetScreenSize()[0] - 2,
                k = 29;
            l = l - m - 12;
            if (UI.GetValue("Script items", "Indicators style") == 1) {
                Render.GradientRect(l + 12, k + 6, 2, 18, 10, [g[0], g[1], g[2], g[3]], [A[0], A[1], A[2], A[3]])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 2) {
                    Render.GradientRect(l + 12, k + 6, 2, 18, 10, [48, 206, 230, 255], [220, 57, 218, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 3) {
                        Render.GradientRect(l + 12, k + 6, 2, 18, 10, [w.g, w.b, w.r, 255], [w.r, w.g, w.b, 255])
                    } else {
                        if (UI.GetValue("Script items", "Indicators style") == 4) {
                            Render.GradientRect(l + 12, k + 6, 2, 18, 10, [H[0], H[1], H[2], 255], [H[0], H[1], H[2], 55])
                        } else {
                            Render.GradientRect(l + 12, k + 6, 2, 18, 10, [t[0], t[1], t[2], t[3]], [t[0], t[1], t[2], t[3]])
                        }
                    }
                }
            }
            if (!UI.GetValue("Script items", "Indicators transparency")) {
                Render.FilledRect(l + 14, k + 6, m - 7, 18, [35, 35, 35, 255])
            } else {
                Render.FilledRect(l + 14, k + 6, m - 7, 18, [35, 35, 35, 0])
            }
            Render.StringCustom(l + 20, k + 9, 0, n, [0, 0, 0, 180], r);
            Render.StringCustom(l + 19, k + 8, 0, n, [255, 255, 255, 255], r);
            mz(l + 22, k + 14, 5, 0, j * 6, 2, [255, 255, 255, 255])
        }
    }
}

function get_icon(b) {
    var e = "";
    switch (b) {
    case "desert eagle":
        e = "a";
        break;
    case "dual berettas":
        e = "b";
        break;
    case "five seven":
        e = "c";
        break;
    case "glock 18":
        e = "d";
        break;
    case "ak 47":
        e = "e";
        break;
    case "aug":
        e = "f";
        break;
    case "awp":
        e = "g";
        break;
    case "famas":
        e = "h";
        break;
    case "m249":
        e = "i";
        break;
    case "g3sg1":
        e = "j";
        break;
    case "galil ar":
        e = "k";
        break;
    case "m4a4":
        e = "l";
        break;
    case "m4a1 s":
        e = "m";
        break;
    case "mac 10":
        e = "n";
        break;
    case "p2000":
        e = "o";
        break;
    case "mp5 sd":
        e = "p";
        break;
    case "ump 45":
        e = "q";
        break;
    case "xm1014":
        e = "r";
        break;
    case "pp bizon":
        e = "s";
        break;
    case "mag 7":
        e = "t";
        break;
    case "negev":
        e = "u";
        break;
    case "sawed off":
        e = "v";
        break;
    case "tec 9":
        e = "w";
        break;
    case "zeus x27":
        e = "x";
        break;
    case "p250":
        e = "y";
        break;
    case "mp7":
        e = "z";
        break;
    case "mp9":
        e = "A";
        break;
    case "nova":
        e = "B";
        break;
    case "p90":
        e = "C";
        break;
    case "scar 20":
        e = "D";
        break;
    case "sg 553":
        e = "E";
        break;
    case "ssg 08":
        e = "F";
        break;
    case "knife":
        e = "G";
        break;
    case "flashbang":
        e = "H";
        break;
    case "high explosive grenade":
        e = "I";
        break;
    case "smoke grenade":
        e = "J";
        break;
    case "molotov":
        e = "K";
        break;
    case "decoy grenade":
        e = "L";
        break;
    case "incendiary grenade":
        e = "M";
        break;
    case "c4 explosive":
        e = "N";
        break;
    case "usp s":
        e = "P";
        break;
    case "cz75 auto":
        e = "Q";
        break;
    case "r8 revolver":
        e = "R";
        break;
    case "bayonet":
        e = "V";
        break;
    case "flip knife":
        e = "W";
        break;
    case "gut knife":
        e = "X";
        break;
    case "karambit":
        e = "Y";
        break;
    case "m9 bayonet":
        e = "Z";
        break;
    case "falchion knife":
        e = "1";
        break;
    case "bowie knife":
        e = "2";
        break;
    case "butterfly knife":
        e = "3";
        break;
    case "shadow daggers":
        e = "4";
        break;
    case "ursus knife":
        e = "5";
        break;
    case "navaja knife":
        e = "6";
        break;
    case "stiletto knife":
        e = "7";
        break;
    case "skeleton knife":
        e = "8";
        break;
    case "huntsman knife":
        e = "0";
        break;
    case "talon knife":
        e = "8";
        break;
    case "classic knife":
        e = "25";
        break;
    case "paracord knife":
        e = "Z";
        break;
    case "survival knife":
        e = "Z";
        break;
    case "nomad knife":
        e = "Z";
        break;
    default:
        e = "";
        break
    }
    return e
}
UI.AddSliderInt("dt_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("dt_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled("Script items", "dt_x", 0);
UI.SetEnabled("Script items", "dt_y", 0);
UI.AddDropdown("Indicators style", ["Classic", "Gradient", "Skeet", "Rainbow", "Faded"]);
UI.AddColorPicker("Classic color");
UI.AddColorPicker("First Gradient");
UI.AddColorPicker("Second Gradient");
UI.AddColorPicker("Faded color");

function in_bounds(g, b, j, e, f) {
    return (g[0] > b) && (g[1] > j) && (g[0] < e) && (g[1] < f)
}
var fa = 0;
var sa = 0;

function main_dt() {
    var j = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
    var m = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
    var q = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
    var u = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
    var e = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
    if (UI.GetValue("Script items", "Exploits indicator")) {
        const r = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "dt_x"),
            p = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "dt_y");
        localplayer_index = Entity.GetLocalPlayer();
        localplayer_weapon = Entity.GetWeapon(localplayer_index);
        weapon_name = Entity.GetName(localplayer_weapon);
        g_Local_classname = Entity.GetClassName(localplayer_weapon);
        var o = Entity.GetProp(localplayer_weapon, "CBaseCombatWeapon", "m_flNextPrimaryAttack");
        var l = false;
        if (o <= Globals.Curtime()) {
            l = true
        }
        var n = 8 * Globals.Frametime();
        var k = [5, 128, 187, 255];
        var g = Render.AddFont("Verdana", 7, 100);
        var b = Render.AddFont("bullet", 18, 100);
        if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            var t = "DT | tickbase(v): 14"
        } else {
            if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
                var t = "HS | tickbase(v): 7  "
            } else {
                var t = " -  | tickbase(v): 0  "
            }
        }
        var s = Render.TextSizeCustom(t, g)[0] + 8;
        if (!UI.GetValue("Script items", "Indicators transparency")) {
            Render.FilledRect(r, p, s, 20, [35, 35, 35, 255])
        } else {
            Render.FilledRect(r, p, s, 20, [35, 35, 35, 0])
        }
        Render.FilledRect(r, p + 2, s, 18, [17, 17, 17, 0]);
        Render.StringCustom(r + 5, p + 5, 0, t, [0, 0, 0, 180], g);
        Render.StringCustom(r + 4, p + 4, 0, t, [255, 255, 255, 255], g);
        if (UI.GetValue("Script items", "Indicators style") == 1) {
            Render.GradientRect(r, p - 1, s, 2, 2, [q[0], q[1], q[2], q[3]], [u[0], u[1], u[2], u[3]])
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 2) {
                Render.GradientRect(r, p - 1, s / 2 + 4, 2, 2, [48, 206, 230, 255], [220, 57, 218, 255]);
                Render.GradientRect(r + 56, p - 1, s / 2, 2, 2, [220, 57, 218, 255], [220, 232, 47, 255])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 3) {
                    Render.GradientRect(r, p - 1, s, 2, 2, [j.g, j.b, j.r, 255], [j.r, j.g, j.b, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 4) {
                        Render.GradientRect(r, p - 1, s / 2 + 4, 2, 2, [e[0], e[1], e[2], 55], [e[0], e[1], e[2], 255]);
                        Render.GradientRect(r + 56, p - 1, s / 2, 2, 2, [e[0], e[1], e[2], 255], [e[0], e[1], e[2], 55])
                    }
                }
            }
        }
        if (UI.GetValue("Script items", "Indicators style") == 0) {
            Render.GradientRect(r, p - 1, s, 2, 2, [m[0], m[1], m[2], m[3]], [m[0], m[1], m[2], m[3]])
        }
        Render.String(r + 4, p + 22, 0, get_icon(weapon_name), [255, 255, 255, 255], 5);
        if ((g_Local_classname == "CKnife" || g_Local_classname == "CWeaponSSG08" || g_Local_classname == "CWeaponAWP" || weapon_name == "r8 revolver" || g_Local_classname == "CHEGrenade" || g_Local_classname == "CMolotovGrenade" || g_Local_classname == "CIncendiaryGrenade" || g_Local_classname == "CFlashbang" || g_Local_classname == "CSmokeGrenade" || g_Local_classname == "CDecoyGrenade" || g_Local_classname == "CWeaponTaser" || g_Local_classname == "CC4")) {} else {
            if (l) {
                fa = Math.min(fa + n, 1);
                Render.StringCustom(r + 10 + Render.TextSize(get_icon(weapon_name), 5)[0], p + 18, 0, "A", [255, 255, 255, fa * 255], b)
            } else {
                fa = 0
            }
            if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
                sa = Math.min(sa + n, 1);
                Render.StringCustom(r + 30 + Render.TextSize(get_icon(weapon_name), 5)[0], p + 18, 0, "A", [255, 255, 255, sa * 255], b)
            } else {
                sa = 0
            }
        }
        if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
            const f = Global.GetCursorPosition();
            if (in_bounds(f, r, p, r + s, p + 30)) {
                UI.SetValue("Misc", "JAVASCRIPT", "Script items", "dt_x", f[0] - s / 2);
                UI.SetValue("Misc", "JAVASCRIPT", "Script items", "dt_y", f[1] - 20)
            }
        }
    }
}

function ind_vis() {
    if (UI.GetValue("Script items", "KeyBinds") || UI.GetValue("Script items", "Watermark") || UI.GetValue("Script items", "Exploits indicator")) {
        UI.SetEnabled("Script items", "Indicators style", vis);
        UI.SetEnabled("Script items", "Indicators transparency", vis)
    } else {
        UI.SetEnabled("Script items", "Indicators style", 0);
        UI.SetEnabled("Script items", "Indicators transparency", 0)
    }
    if (UI.GetValue("Script items", "Indicators style") == 1) {
        UI.SetEnabled("Script items", "Classic color", 0);
        UI.SetEnabled("Script items", "First Gradient", vis);
        UI.SetEnabled("Script items", "Second Gradient", vis);
        UI.SetEnabled("Script items", "Faded color", 0)
    } else {
        if (UI.GetValue("Script items", "Indicators style") == 2) {
            UI.SetEnabled("Script items", "Classic color", 0);
            UI.SetEnabled("Script items", "First Gradient", 0);
            UI.SetEnabled("Script items", "Second Gradient", 0);
            UI.SetEnabled("Script items", "Faded color", 0)
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 3) {
                UI.SetEnabled("Script items", "Classic color", 0);
                UI.SetEnabled("Script items", "First Gradient", 0);
                UI.SetEnabled("Script items", "Second Gradient", 0);
                UI.SetEnabled("Script items", "Faded color", 0)
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 4) {
                    UI.SetEnabled("Script items", "Classic color", 0);
                    UI.SetEnabled("Script items", "First Gradient", 0);
                    UI.SetEnabled("Script items", "Second Gradient", 0);
                    UI.SetEnabled("Script items", "Faded color", vis)
                } else {
                    UI.SetEnabled("Script items", "Classic color", vis);
                    UI.SetEnabled("Script items", "First Gradient", 0);
                    UI.SetEnabled("Script items", "Second Gradient", 0);
                    UI.SetEnabled("Script items", "Faded color", 0)
                }
            }
        }
    }
    if (!UI.GetValue("Script items", "KeyBinds") && (!UI.GetValue("Script items", "Watermark")) && (!UI.GetValue("Script items", "Exploits indicator"))) {
        UI.SetEnabled("Script items", "Classic color", 0);
        UI.SetEnabled("Script items", "First Gradient", 0);
        UI.SetEnabled("Script items", "Second Gradient", 0);
        UI.SetEnabled("Script items", "Faded color", 0)
    }
}

function on_cm() {
    if (Convar.GetFloat("r_aspectratio") != UI.GetValue("Script items", "Aspect ratio")) {
        Convar.SetFloat("r_aspectratio", UI.GetValue("Script items", "Aspect ratio"))
    }
}

function ar_tab() {
    if (UI.GetValue("Script items", "Aspect ratio changer")) {
        UI.SetEnabled("Script items", "Aspect ratio", misc)
    } else {
        UI.SetEnabled("Script items", "Aspect ratio", 0)
    }
}

function on_unload() {
    Cheat.ExecuteCommand("r_aspectratio 0")
}
hitboxes = ["generic", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "?"];
var scriptitems = ("Misc", "JAVASCRIPT", "Script items");
var shots = 0;
var predicthc = 0;
var safety = 0;
var hitboxName = "";
var choked = 0;
var exploit = 0;
var logs = [];
var logsct = [];
var logsalpha = [];

function getHitboxName(b) {
    switch (b) {
    case 0:
        hitboxName = "head";
        break;
    case 1:
        hitboxName = "head";
        break;
    case 2:
        hitboxName = "stomach";
        break;
    case 3:
        hitboxName = "stomach";
        break;
    case 4:
        hitboxName = "stomach";
        break;
    case 5:
        hitboxName = "chest";
        break;
    case 6:
        hitboxName = "chest";
        break;
    case 7:
        hitboxName = "left leg";
        break;
    case 8:
        hitboxName = "right leg";
        break;
    case 9:
        hitboxName = "left leg";
        break;
    case 10:
        hitboxName = "right leg";
        break;
    case 11:
        hitboxName = "left leg";
        break;
    case 12:
        hitboxName = "right leg";
        break;
    case 13:
        hitboxName = "left arm";
        break;
    case 14:
        hitboxName = "right arm";
        break;
    case 15:
        hitboxName = "left arm";
        break;
    case 16:
        hitboxName = "left arm";
        break;
    case 17:
        hitboxName = "right arm";
        break;
    case 18:
        hitboxName = "right arm";
        break;
    default:
        hitboxName = "body"
    }
    return hitboxName
}

function HitgroupName(b) {
    return hitboxes[b] || "body"
}
var target = -1;
var shots_fired = 0;
var hits = 0;
var lastUpdate = 0;
var logged = false;

function ragebot_fire() {
    predicthc = Event.GetInt("hitchance");
    safety = Event.GetInt("safepoint");
    hitboxName = getHitboxName(Event.GetInt("hitbox"));
    exploit = (Event.GetInt("exploit") + 1).toString();
    target = Event.GetInt("target_index");
    shots_fired++;
    logged = false;
    lastUpdate = Globals.Curtime()
}

function hitlog() {
    var j = Entity.GetEntityFromUserID(Event.GetInt("userid"));
    var f = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
    if (f == Entity.GetLocalPlayer() && j == target) {
        hits++
    }
    var e = "Hit ";
    me = Entity.GetLocalPlayer();
    hitbox = Event.GetInt("hitgroup");
    target_damage = Event.GetInt("dmg_health");
    target_health = Event.GetInt("health");
    victim = Event.GetInt("userid");
    f = Event.GetInt("attacker");
    weapon = Event.GetString("weapon");
    victimIndex = Entity.GetEntityFromUserID(victim);
    attackerIndex = Entity.GetEntityFromUserID(f);
    name = Entity.GetName(victimIndex);
    var g = Globals.Tickcount() % 17;
    var b = "";
    if (exploit == 2) {
        b += "T"
    }
    b += "B";
    if (hitbox == 1) {
        b += "H"
    }
    if (safety == 1) {
        safety = "true"
    } else {
        safety = "false"
    }
    if (weapon == "hegrenade") {
        e = "Naded "
    } else {
        if (weapon == "inferno") {
            e = "Burned "
        } else {
            if (weapon == "knife") {
                e = "Knifed "
            }
        }
    }
    if (UI.GetValue("Script items", "Logs")) {
        if (me == attackerIndex && me != victimIndex) {
            Cheat.PrintColor([39, 255, 39, 255], "[Infernal tech] ");
            if (e == "Hit ") {
                Cheat.Print("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) aimed=" + hitboxName + "(" + predicthc.toString() + "%%) safety=" + safety + " (" + b + ") (" + g + ":" + exploit + ")\n");
                logs.push("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) aimed=" + hitboxName + "(" + predicthc.toString() + "%%) safety=" + safety + " (" + b + ") (" + g + ":" + exploit + ")")
            } else {
                Cheat.Print("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) \n");
                logs.push("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining)")
            }
            logsct.push(Globals.Curtime());
            logsalpha.push(255)
        }
    }
    if (shots == 99) {
        shots = 0
    } else {
        shots++
    }
}

function removelogs() {
    if (logs.length > 6) {
        logs.shift();
        logsct.shift();
        logsalpha.shift()
    }
    if (logsct[0] + 6.5 < Globals.Curtime()) {
        logsalpha[0] -= Globals.Frametime() * 600;
        if (logsalpha[0] < 0) {
            logs.shift();
            logsct.shift();
            logsalpha.shift()
        }
    }
}

function item_purchase() {
    Cheat.PrintColor([255, 128, 0, 255], "[Infernal tech] ");
    Cheat.Print(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid"))) + " bought " + Event.GetString("weapon") + "\n");
    logs.push(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid"))) + " bought " + Event.GetString("weapon") + "");
    logsct.push(Globals.Curtime());
    logsalpha.push(255)
}

function onDraw() {
    if (!World.GetServerString()) {
        return
    }
    var f = Render.AddFont("Lucida Console", 8, 0);
    for (i = 0; i < logs.length; i++) {
        Render.StringCustom(4, 4 + 13 * i, 0, logs[i], [0, 0, 0, logsalpha[i]], f);
        Render.StringCustom(3, 3 + 13 * i, 0, logs[i], [255, 255, 255, logsalpha[i]], f)
    }
    if (shots_fired > hits && (Globals.Curtime() - lastUpdate > 0.33)) {
        if (Globals.Curtime() - lastUpdate > 1) {
            shots_fired = 0;
            hits = 0
        }
        if (!logged) {
            var g = Globals.Tickcount() % 16;
            logged = true;
            var b = "true";
            var j = "?";
            if (safety == 0) {
                b = "false"
            }
            if (Entity.IsAlive(target) == false) {
                j = "death"
            } else {
                if (Entity.IsAlive(Entity.GetLocalPlayer()) == false) {
                    j = "dead"
                } else {
                    if (safety == true && predicthc < 76) {
                        j = "spread"
                    } else {
                        if (safety == true && predicthc > 76) {
                            j = "prediction error"
                        }
                    }
                }
            }
            var e = "";
            if (exploit == 2) {
                e += "T"
            }
            e += "B";
            if (UI.GetValue("Script items", "Logs")) {
                Cheat.PrintColor([255, 39, 39, 255], "[Infernal tech] ");
                Cheat.Print("[" + shots.toString() + "] Missed " + Entity.GetName(target) + "'s " + hitboxName + "(" + predicthc.toString() + "%%) due to " + j + ", safety=" + b + " (" + e + ") (" + g + ":" + exploit + ")\n");
                logs.push("[" + shots.toString() + "] Missed " + Entity.GetName(target) + "'s " + hitboxName + "(" + predicthc.toString() + "%%) due to " + j + ", safety=" + b + " (" + e + ") (" + g + ":" + exploit + ")")
            }
            logsct.push(Globals.Curtime());
            logsalpha.push(255);
            if (shots == 99) {
                shots = 0
            } else {
                shots++
            }
        }
    }
}

function onFSN() {
    if (Cheat.FrameStage() != 2) {
        return
    }
    var b = Entity.GetProp(Entity.GetLocalPlayer(), "DT_BaseEntity", "m_iTeamNum");
    if (!UI.GetValue("Script Items", "Model changer (based on team)")) {
        UI.SetEnabled("Script Items", "CT", 0);
        UI.SetEnabled("Script Items", "T", 0);
        return
    }
    UI.SetEnabled("Script Items", "T", misc);
    UI.SetEnabled("Script Items", "CT", misc);
    if (b == 2) {
        UI.SetValue("Misc", "SKINS", "Player", "Player model", UI.GetValue("Script Items", "T"))
    } else {
        if (b == 3) {
            UI.SetValue("Misc", "SKINS", "Player", "Player model", UI.GetValue("Script Items", "CT"))
        }
    }
}
var ct_lasttime = 0;

function ctag_render() {
    player = Entity.GetLocalPlayer();
    var b = parseInt((Globals.Curtime() * 3));
    if (Entity.IsAlive(player)) {
        if (b != ct_lasttime) {
            if (!UI.GetValue("Script items", "ClanTag")) {
                Local.SetClanTag("")
            }
            if (UI.GetValue("Script items", "ClanTag")) {
                switch ((b) % 33) {
                case 1:
                    Local.SetClanTag("");
                    break;
                case 2:
                    Local.SetClanTag("I");
                    break;
                case 3:
                    Local.SetClanTag("N");
                    break;
                case 4:
                    Local.SetClanTag("F");
                    break;
                case 5:
                    Local.SetClanTag("E");
                    break;
                case 6:
                    Local.SetClanTag("R");
                    break;
                case 7:
                    Local.SetClanTag("N");
                    break;
                case 8:
                    Local.SetClanTag("A");
                    break;
                case 9:
                    Local.SetClanTag("L");
                    break;
                case 10:
                    Local.SetClanTag("");
                    break;
                case 11:
                    Local.SetClanTag("T");
                    break;
                case 12:
                    Local.SetClanTag("E");
                    break;
                case 13:
                    Local.SetClanTag("C");
                    break;
                case 14:
                    Local.SetClanTag("H");
                    break;
                case 15:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 16:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 17:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 18:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 19:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 20:
                    Local.SetClanTag("Infernal tec%");
                    break;
                case 21:
                    Local.SetClanTag("Infernal te&");
                    break;
                case 22:
                    Local.SetClanTag("Infernal t@");
                    break;
                case 23:
                    Local.SetClanTag("Infernal $");
                    break;
                case 24:
                    Local.SetClanTag("Inferna#");
                    break;
                case 25:
                    Local.SetClanTag("Infern*");
                    break;
                case 26:
                    Local.SetClanTag("Infer@");
                    break;
                case 27:
                    Local.SetClanTag("Infe?");
                    break;
                case 28:
                    Local.SetClanTag("Inf$");
                    break;
                case 29:
                    Local.SetClanTag("In^");
                    break;
                case 30:
                    Local.SetClanTag("I%");
                    break;
                case 31:
                    Local.SetClanTag("&");
                    break;
                case 32:
                    Local.SetClanTag("");
                    break
                }
            }
        }
        ct_lasttime = b
    }
}

function fps_boost() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fps Boost")) {
        Convar.SetString("r_shadows", "0");
        Convar.SetString("cl_csm_static_prop_shadows", "0");
        Convar.SetString("cl_csm_shadows", "0");
        Convar.SetString("cl_csm_world_shadows", "0");
        Convar.SetString("cl_foot_contact_shadows", "0");
        Convar.SetString("cl_csm_viewmodel_shadows", "0");
        Convar.SetString("cl_csm_rope_shadows", "0");
        Convar.SetString("cl_csm_sprite_shadows", "0");
        Convar.SetString("violence_hblood", "0");
        Convar.SetString("r_3dsky", "0");
        Convar.SetString("r_drawrain", "0");
        Convar.SetString("r_drawropes", "0");
        Convar.SetString("r_drawsprites", "0");
        Convar.SetString("r_drawparticles", "0");
        Convar.SetString("fog_enable_water_fog", "0");
        Convar.SetString("func_break_max_pieces", "0");
        Convar.SetString("muzzleflash_light", "0");
        Convar.SetString("r_eyemove", "0");
        Convar.SetString("r_eyegloss", "0")
    } else {
        Convar.SetString("r_shadows", "1");
        Convar.SetString("cl_csm_static_prop_shadows", "1");
        Convar.SetString("cl_csm_shadows", "1");
        Convar.SetString("cl_csm_world_shadows", "1");
        Convar.SetString("cl_foot_contact_shadows", "1");
        Convar.SetString("cl_csm_viewmodel_shadows", "1");
        Convar.SetString("cl_csm_rope_shadows", "1");
        Convar.SetString("cl_csm_sprite_shadows", "1");
        Convar.SetString("violence_hblood", "1");
        Convar.SetString("r_3dsky", "1");
        Convar.SetString("r_drawrain", "1");
        Convar.SetString("r_drawropes", "1");
        Convar.SetString("r_drawsprites", "1");
        Convar.SetString("r_drawparticles", "1");
        Convar.SetString("fog_enable_water_fog", "1");
        Convar.SetString("func_break_max_pieces", "1");
        Convar.SetString("muzzleflash_light", "1");
        Convar.SetString("r_eyemove", "1");
        Convar.SetString("r_eyegloss", "1")
    }
}
Cheat.RegisterCallback("Draw", "anim_label");
Cheat.RegisterCallback("Draw", "menu");
Cheat.RegisterCallback("Draw", "for_tab");
Cheat.RegisterCallback("CreateMove", "wrap");
Cheat.RegisterCallback("weapon_fire", "shoot");
Cheat.RegisterCallback("CreateMove", "safeLegs");
Cheat.RegisterCallback("CreateMove", "safe_tab");
Cheat.RegisterCallback("CreateMove", "hp_tab");
Cheat.RegisterCallback("CreateMove", "maine");
Cheat.RegisterCallback("CreateMove", "fhead_tab");
Cheat.RegisterCallback("CreateMove", "force_head");
Global.RegisterCallback("player_connect_full", "player_connect");
Cheat.RegisterCallback("CreateMove", "onCM");
Cheat.RegisterCallback("CreateMove", "mindmg_tab");
Cheat.RegisterCallback("CreateMove", "awp_sp");
Cheat.RegisterCallback("CreateMove", "LagSync");
Cheat.RegisterCallback("CreateMove", "fs_tab");
Cheat.RegisterCallback("CreateMove", "freestand");
Cheat.RegisterCallback("CreateMove", "fl_tab");
Cheat.RegisterCallback("round_start", "roundstart");
Cheat.RegisterCallback("CreateMove", "set_fl");
Cheat.RegisterCallback("CreateMove", "exploit_conf");
Cheat.RegisterCallback("Draw", "autopeek");
Cheat.RegisterCallback("CreateMove", "ld");
Cheat.RegisterCallback("Unload", "unload");
Global.RegisterCallback("ragebot_fire", "invert");
Global.RegisterCallback("Draw", "menu_check");
Global.RegisterCallback("Draw", "indication");
Cheat.RegisterCallback("Draw", "ind");
Cheat.RegisterCallback("Draw", "main_color_vis");
Cheat.RegisterCallback("CreateMove", "fog");
Cheat.RegisterCallback("CreateMove", "fog_tab");
Global.RegisterCallback("Draw", "main_hotkeys");
Cheat.RegisterCallback("Draw", "watermark");
Global.RegisterCallback("Draw", "main_dt");
Cheat.RegisterCallback("Draw", "ind_vis");
Cheat.RegisterCallback("CreateMove", "on_cm");
Cheat.RegisterCallback("CreateMove", "ar_tab");
Cheat.RegisterCallback("Unload", "on_unload");
Global.RegisterCallback("ragebot_fire", "ragebot_fire");
Global.RegisterCallback("item_purchase", "item_purchase");
Global.RegisterCallback("player_hurt", "hitlog");
Global.RegisterCallback("Draw", "onDraw");
Global.RegisterCallback("Draw", "removelogs");
Cheat.RegisterCallback("FrameStageNotify", "onFSN");
Cheat.RegisterCallback("Draw", "ctag_render");
Cheat.RegisterCallback("Draw", "fps_boost");
UI.AddLabel(" <----------------------------------->");
Он не был обфусцирован, а просто сжат XD
 
Начинающий
Статус
Оффлайн
Регистрация
27 Июн 2021
Сообщения
10
Реакции[?]
3
Поинты[?]
0
Deobf
JavaScript:
UI.AddLabel(" <----------------------------------->");
UI.AddLabel("               [Infernal tech]");
UI.AddLabel("                [---Very---]");
UI.AddLabel("                [----hot---]");
UI.AddLabel("                [----js----]");
UI.AddLabel("    [Credits to ANARXIST#0911]");
UI.AddLabel(" <----------------------------------->");
UI.SetEnabled("Script items", "               [Infernal tech]", 0);
UI.SetEnabled("Script items", "                [---Very---]", 0);
UI.SetEnabled("Script items", "                [----hot---]", 0);
UI.SetEnabled("Script items", "                [----js----]", 0);
var lasttime = 0;

function anim_label() {
    var b = parseInt((Globals.Curtime() * 2));
    if (b != lasttime) {
        switch ((b) % 5) {
        case 0:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 1);
            break;
        case 1:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 1);
            break;
        case 2:
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "                [---Very---]", 1);
            break;
        case 3:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 1);
            break;
        case 4:
            UI.SetEnabled("Script items", "                [---Very---]", 0);
            UI.SetEnabled("Script items", "               [Infernal tech]", 0);
            UI.SetEnabled("Script items", "                [----hot---]", 0);
            UI.SetEnabled("Script items", "                [----js----]", 1);
            break
        }
    }
    lasttime = b
}
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([255, 130, 130, 255], "      ███████████    █      ███    ██████   █████   ██████        █      ███   █      ███\n");
Cheat.PrintColor([255, 130, 130, 255], "           ██        █     ██      █    █  ██        ██  ██       █     ██     ██       █\n");
Cheat.PrintColor([255, 130, 130, 255], "           ██        ██   ██      ██    █  █        ██    █       ██   ██     ███      ██\n");
Cheat.PrintColor([255, 130, 130, 255], "          ██        ████  █     ██████     ██████   ███████      ████  █      █ █     ██\n");
Cheat.PrintColor([255, 130, 130, 255], "         ██         █  ████      ██  █    ███       █ ██         █  ████     ████     █\n");
Cheat.PrintColor([255, 130, 130, 255], "         ██        ██   ██      ██       ██        ██  ██   █   ██   ██     ██  ██ █  ██    █\n");
Cheat.PrintColor([255, 130, 130, 255], "     ██████████   ██     ██     ██        ██████   ██    ████  ██     ██  ███    ██     ████\n");
Cheat.PrintColor([255, 130, 130, 255], "\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                               ██\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                            ██  ████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                         ██   ████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                          █████████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                           ████████████\n");
Cheat.PrintColor([255, 70, 70, 255],   "                                             █████████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                  ███      ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                   ██   █████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ████ █████\n");
Cheat.PrintColor([130, 255, 130, 255], "                                            █████  ██ ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                          ██████   ███\n");
Cheat.PrintColor([130, 255, 130, 255], "                                          █████     ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                         ████       ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                         █         ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                   ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                  ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ██\n");
Cheat.PrintColor([130, 255, 130, 255], "                                                 ██\n");
Cheat.PrintColor([255, 130, 130, 255], "\n");
Cheat.PrintColor([130, 130, 255, 255], "                        ████           █████      █████        ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ████████   ██         ██   ███     ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                            ██        █         ██      █     █      █\n");
Cheat.PrintColor([130, 130, 255, 255], "                            █          ██████   █            █████████\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ██        ███        ██          ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "                           ██       ██           ██    ██   █      █\n");
Cheat.PrintColor([130, 130, 255, 255], "                          ██         ██████       ██████   ██     ██\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([130, 130, 255, 255], "Infernal tech loaded successfully\n");
Cheat.PrintColor([130, 130, 255, 255], "Welcome: " + Cheat.GetUsername() + "\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
Cheat.PrintColor([255, 205, 255, 255], "Don't buy shitty pastes. Get the best for free!\n");
Cheat.PrintColor([130, 130, 255, 255], "\n");
const menu = function () {
    const b = UI.GetValue("Script items", "Menu");
    rage = b == 0, aa = b == 1, vis = b == 2, misc = b == 3, cont = b == 4;
    UI.SetEnabled("Script items", "Mindmg", rage);
    UI.SetEnabled("Script items", "Dormant Aimbot", rage);
    UI.SetEnabled("Script items", "Force sp on limbs", rage);
    UI.SetEnabled("Script items", "Enable HP/2", rage);
    UI.SetEnabled("Script items", "Force Head", rage);
    UI.SetEnabled("Script items", "Autopeek helper [beta]", rage);
    UI.SetEnabled("Script items", "Force sp on AWP", rage);
    UI.SetEnabled("Script items", "LD on slow walk", aa);
    UI.SetEnabled("Script items", "Freestand on key", aa);
    UI.SetEnabled("Script items", "Alternative fake-lag", aa);
    UI.SetEnabled("Script items", "Lagsync", aa);
    UI.SetEnabled("Script items", "Anti-bruteforce", aa);
    UI.SetEnabled("Script items", "Indicators", vis);
    UI.SetEnabled("Script items", "Enable AA arrows", vis);
    UI.SetEnabled("Script items", "Fog", vis);
    UI.SetEnabled("Script items", "KeyBinds", vis);
    UI.SetEnabled("Script items", "Watermark", vis);
    UI.SetEnabled("Script items", "Exploits indicator", vis);
    UI.SetEnabled("Script items", "Aspect ratio changer", misc);
    UI.SetEnabled("Script items", "Logs", misc);
    UI.SetEnabled("Script items", "Model changer (based on team)", misc);
    UI.SetEnabled("Script items", "ClanTag", misc);
    UI.SetEnabled("Script items", "FPS Boost", misc);
    UI.SetEnabled("Script items", "Discord - ANARXIST#0911", cont);
    UI.SetEnabled("Script items", "YouTube - youtube.com/c/anarxist", cont);
    UI.SetEnabled("Script items", "VK - vk.com/an4rx1st", cont);
    UI.SetEnabled("Script items", "OnlyFans - soon...", cont)
};
UI.AddDropdown("Menu", ["Rage", "Anti-Aim", "Visuals", "Misc", "Contacts"]);
UI.AddLabel("Discord - ANARXIST#0911");
UI.AddLabel("YouTube - youtube.com/c/anarxist");
UI.AddLabel("VK - vk.com/an4rx1st");
UI.AddLabel("OnlyFans - soon...");
UI.AddCheckbox("Dormant Aimbot");
UI.AddHotkey("Dormant Aimbot keybind");
UI.AddCheckbox("Force sp on limbs");
UI.AddMultiDropdown("Force safepoint on limbs", ["Legs", "Feet"]);
UI.AddCheckbox("Enable HP/2");
UI.AddLabel("Works only with auto & enabled DT");
UI.AddCheckbox("Force Head");
UI.AddHotkey("Force Head keybind");
UI.AddCheckbox("Autopeek helper [beta]");
UI.AddCheckbox("Mindmg");
UI.AddHotkey("Minimum Damage Override");
UI.AddSliderInt("Heavy Pistol Mindmg", 0, 130);
UI.AddSliderInt("Scout Mindmg", 0, 130);
UI.AddSliderInt("AWP Mindmg", 0, 130);
UI.AddSliderInt("Auto Mindmg", 0, 130);
UI.AddLabel("<------------------------------------>");
UI.AddSliderInt("Normal Heavy Pistol dmg", 0, 130);
UI.AddSliderInt("Normal Scout dmg", 0, 130);
UI.AddSliderInt("Normal AWP dmg", 0, 130);
UI.AddSliderInt("Normal Auto dmg", 0, 130);
UI.AddCheckbox("Force sp on AWP");
UI.AddCheckbox("Lagsync");
UI.AddCheckbox("Freestand on key");
UI.AddHotkey("Freestand keybind");
UI.AddCheckbox("Alternative fake-lag");
UI.AddSliderInt("Send", 0, 16);
UI.AddSliderInt("Choke", 0, 16);
UI.AddCheckbox("LD on slow walk");
UI.AddCheckbox("Anti-bruteforce");
UI.AddCheckbox("Indicators");
UI.AddCheckbox("Enable AA arrows");
UI.AddColorPicker("Main color");
UI.AddCheckbox("Fog");
UI.AddColorPicker("Fog color");
UI.AddSliderInt("Distance", 0, 2000);
UI.AddSliderInt("Density", 0, 100);
UI.AddCheckbox("KeyBinds");
UI.AddCheckbox("Watermark");
UI.AddCheckbox("Exploits indicator");
UI.AddCheckbox("Indicators transparency");
UI.AddCheckbox("Aspect ratio changer");
UI.AddSliderFloat("Aspect ratio", 0, 5);
UI.AddCheckbox("Logs");
UI.AddCheckbox("Model changer (based on team)");
UI.AddDropdown("CT", ["None", "'TwoTimes' McCoy", "Seal Team 6 Soldier", "Buckshot", "Lt. Commander Ricksaw", "Dragomir", "Rezan The Ready", "Maximus", "Blackwolf", "The Doctor' Romanov", "B Squadron Officer", "3rd Commando Company", "Special Agent Ava", "Operator", "Markus Delrow", "Michael Syfers", "Enforcer", "Slingshot", "Soldier", "The Elite Mr. Muhlik", "Ground Rebel", "Osiris", "Prof. Shahmat", "Heavy armor"]);
UI.AddDropdown("T", ["None", "'TwoTimes' McCoy", "Seal Team 6 Soldier", "Buckshot", "Lt. Commander Ricksaw", "Dragomir", "Rezan The Ready", "Maximus", "Blackwolf", "The Doctor' Romanov", "B Squadron Officer", "3rd Commando Company", "Special Agent Ava", "Operator", "Markus Delrow", "Michael Syfers", "Enforcer", "Slingshot", "Soldier", "The Elite Mr. Muhlik", "Ground Rebel", "Osiris", "Prof. Shahmat", "Heavy armor"]);
UI.AddCheckbox("ClanTag");
UI.AddCheckbox("FPS Boost");

function calc_dist(f, e) {
    x = f[0] - e[0];
    y = f[1] - e[1];
    z = f[2] - e[2];
    return Math.sqrt(x * x + y * y + z * z)
}

function for_tab() {
    if (UI.GetValue("Script items", "Dormant Aimbot")) {
        UI.SetEnabled("Script items", "Dormant Aimbot keybind", rage)
    } else {
        UI.SetEnabled("Script items", "Dormant Aimbot keybind", 0)
    }
}

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

function subtract(f, e) {
    x = f[0] - e[0];
    y = f[1] - e[1];
    z = f[2] - e[2];
    var g = [x, y, z];
    return (g)
}

function VectorAngles(b) {
    var j;
    var e, g, f;
    if (b[1] == 0 && b[0] == 0) {
        g = 0;
        if (b[2] > 0) {
            f = 270
        } else {
            f = 90
        }
    } else {
        g = (Math.atan2(b[1], b[0]) * 180 / Math.PI);
        if (g < 0) {
            g += 360
        }
        e = Math.sqrt(b[0] * b[0] + b[1] * b[1]);
        f = (Math.atan2(-b[2], e) * 180 / Math.PI);
        if (f < 0) {
            f += 360
        }
    }
    x = f;
    y = g;
    z = 0;
    j = [x, y, z];
    return j
}

function can_shoot(e) {
    var b = Entity.GetWeapon(e);
    var g = Entity.GetClassID(b);
    var f = g == 107 || g == 108 || g == 96 || g == 99 || g == 112 || g == 155 || g == 47;
    var j = Entity.GetProp(b, "DT_BaseCombatWeapon", "m_iClip1");
    var k = Entity.GetProp(b, "CBasePlayer", "m_fFlags");
    if (f || j == 0 || k & 1 << 1) {
        return false
    }
    return true
}
va = function (f, e) {
    return [f[0] + e[0], f[1] + e[1], f[2] + e[2]]
};

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

function check() {
    var j = Entity.GetEnemies();
    var l = j.filter(function (n) {
        return Entity.IsDormant(n) && Entity.IsAlive(n) && Trace.Bullet(Entity.GetLocalPlayer(), n, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(n), [0, 0, 45]))[1] > 1
    });
    var m = l.sort(function (n, e) {
        return Trace.Bullet(Entity.GetLocalPlayer(), n, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(n), [0, 0, 45]))[1] - Trace.Bullet(Entity.GetLocalPlayer(), e, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(e), [0, 0, 45]))[1]
    })[0];
    if (!m) {
        return
    }
    var g = Entity.GetWeapon(Entity.GetLocalPlayer());
    var f = Entity.GetProp(g, "DT_BaseCombatWeapon", "m_flNextPrimaryAttack");
    var b = VectorAngles(subtract(va(Entity.GetRenderOrigin(m), [0, 0, 45]), Entity.GetEyePosition(Entity.GetLocalPlayer())));
    if (!can_shoot(Entity.GetLocalPlayer())) {
        return
    }
    if (UI.IsHotkeyActive("Script Items", "Dormant Aimbot")) {
        if (Globals.Curtime() - f > 0.1) {
            UserCMD.SetAngles(b);
            var k = Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_fFlags");
            Cheat.ExecuteCommand("+attack");
            shot = true;
            dmg = Trace.Bullet(Entity.GetLocalPlayer(), m, Entity.GetEyePosition(Entity.GetLocalPlayer()), va(Entity.GetRenderOrigin(m), [0, 0, 45]))[1]
        }
    }
}

function wrap() {
    try {
        check()
    } catch (b) {}
}

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

function safeLegs() {
    const b = UI.GetValue("Misc", "Force safepoint on limbs");
    if (b & (1 << 0)) {
        Ragebot.ForceHitboxSafety(7);
        Ragebot.ForceHitboxSafety(8);
        Ragebot.ForceHitboxSafety(9);
        Ragebot.ForceHitboxSafety(10)
    }
    if (b & (1 << 1)) {
        Ragebot.ForceHitboxSafety(11);
        Ragebot.ForceHitboxSafety(12)
    }
}

function safe_tab() {
    if (UI.GetValue("Script items", "Force sp on limbs")) {
        UI.SetEnabled("Script items", "Force safepoint on limbs", rage)
    } else {
        UI.SetEnabled("Script items", "Force safepoint on limbs", 0)
    }
}

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

function hp_tab() {
    if (UI.GetValue("Script items", "Enable HP/2")) {
        UI.SetEnabled("Script items", "Works only with auto & enabled DT", rage)
    } else {
        UI.SetEnabled("Script items", "Works only with auto & enabled DT", 0)
    }
}

function maine() {
    if (UI.GetValue("Rage", "General", "Exploits", "Doubletap")) {
        var b = Ragebot.GetTarget();
        health = getPlayerHealth(b);
        if (!UI.GetValue("Script items", "Enable HP/2") == 1) {
            return
        }
        if (!Entity.IsAlive(b)) {
            return
        }
        switch (health) {
        case health >= 80:
            Ragebot.ForceTargetMinimumDamage(b, 51);
            break;
        case health <= 79:
            Ragebot.ForceTargetMinimumDamage(b, 41);
            break;
        case health >= 40 && health <= 59:
            Ragebot.ForceTargetMinimumDamage(b, 31);
            break;
        case health >= 20 && health <= 39:
            Ragebot.ForceTargetMinimumDamage(b, 21);
            break
        }
    }
}
var general_hit_cache = UI.GetValue("Rage", "GENERAL", "Targeting", "Hitboxes");
var pistol_hit_cache = UI.GetValue("Rage", "PISTOL", "Targeting", "Hitboxes");
var heavy_hit_cache = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes");
var scout_hit_cache = UI.GetValue("Rage", "SCOUT", "Targeting", "Hitboxes");
var awp_hit_cache = UI.GetValue("Rage", "AWP", "Targeting", "Hitboxes");
var auto_hit_cache = UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes");

function fhead_tab() {
    if (UI.GetValue("Script items", "Force Head")) {
        UI.SetEnabled("Script items", "Force Head keybind", rage)
    } else {
        UI.SetEnabled("Script items", "Force Head keybind", 0)
    }
}

function force_head() {
    if (UI.IsHotkeyActive("Script items", "Force Head keybind")) {
        UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", 1);
        UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", 1)
    } else {
        UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", general_hit_cache);
        UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", pistol_hit_cache);
        UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", heavy_hit_cache);
        UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", scout_hit_cache);
        UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", awp_hit_cache);
        UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", auto_hit_cache)
    }
}
var screen_size = Global.GetScreenSize();
var isInverted;
var drawDangerous = 1;
var heavy_old = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage");
var scout_old = UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage");
var awp_old = UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage");
var auto_old = UI.GetValue("Rage", "AUTOSNIPERS", "Targeting", "Minimum damage");

function isActive(b) {
    return UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", b)
}

function setValue(b, e) {
    UI.SetValue("Rage", b.toUpperCase(), "Targeting", "Minimum damage", e)
}

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

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

function isAwp(b) {
    if (b == "awp") {
        return true
    }
}

function isScout(b) {
    if (b == "ssg 08") {
        return true
    }
}

function isElse(b) {
    if (!b == "ssg 08" || b == "awp" || b == "scar 20" || weapon_name == "g3sg1" || b == "r8 revolver" || b == "desert eagle") {
        return true
    }
}

function onCM() {
    var g = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg");
    var f = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg");
    var e = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg");
    var b = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg");
    heavy_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg");
    scout_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg");
    awp_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg");
    auto_value = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg");
    weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
    if (isActive("Minimum Damage Override") && isHeavyPistol(weapon_name) && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
        setValue("HEAVY PISTOL", heavy_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("HEAVY PISTOL", g)
        } else {
            setValue("HEAVY PISTOL", heavy_old)
        }
    }
    if (isActive("Minimum Damage Override") && weapon_name == "ssg 08" && UI.GetValue("Script items", "Mindmg")) {
        setValue("SCOUT", scout_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("SCOUT", f)
        } else {
            setValue("SCOUT", scout_old)
        }
    }
    if (isActive("Minimum Damage Override") && weapon_name == "awp" && UI.GetValue("Script items", "Mindmg")) {
        setValue("AWP", awp_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("AWP", e)
        } else {
            setValue("AWP", awp_old)
        }
    }
    if (isActive("Minimum Damage Override") && isAutoSniper(weapon_name) && UI.GetValue("Script items", "Mindmg")) {
        setValue("AUTOSNIPER", auto_value)
    } else {
        if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
            setValue("AUTOSNIPER", b)
        } else {
            setValue("AUTOSNIPER", scout_old)
        }
    }
}

function mindmg_tab() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Mindmg")) {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "<------------------------------------>", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg", rage);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg", rage)
    } else {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Heavy Pistol Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Scout Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "AWP Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Auto Mindmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "<------------------------------------>", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Heavy Pistol dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Scout dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal AWP dmg", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Normal Auto dmg", 0)
    }
}
var spback = false;

function awp_sp() {
    SlocalPlayer = Entity.GetLocalPlayer();
    SlocalPlayerWeapon = Entity.GetWeapon(SlocalPlayer);
    SlocalPlayerWeaponName = Entity.GetName(SlocalPlayerWeapon);
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Force sp on AWP") && SlocalPlayerWeaponName == "awp") {
        forcesp = UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point");
        if (!forcesp) {
            UI.ToggleHotkey("Rage", "GENERAL", "General", "Force safe point");
            spback = true
        }
    } else {
        if (spback) {
            UI.ToggleHotkey("Rage", "GENERAL", "General", "Force safe point");
            spback = false
        }
    }
}
multiplierOptions = [-2, -1, 1, 2];
var fl_cache = UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled");

function LagSync() {
    if (UI.GetValue("Script items", "Lagsync")) {
        AntiAim.SetOverride(1);
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", 1);
        AntiAim.SetFakeOffset(getRandomIntInclusive(20, 40));
        AntiAim.SetRealOffset(getRandomIntInclusive(30, 50) * multiplierOptions[getRandomIntInclusive(0, multiplierOptions.length)])
    } else {
        UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", fl_cache)
    }
}

function getRandomIntInclusive(e, b) {
    e = Math.ceil(e);
    b = Math.floor(b);
    return Math.floor(Math.random() * (b - e + 1)) + e
}

function fs_tab() {
    if (UI.GetValue("Script items", "Freestand on key")) {
        UI.SetEnabled("Script items", "Freestand keybind", aa)
    } else {
        UI.SetEnabled("Script items", "Freestand keybind", 0)
    }
}

function freestand() {
    if (UI.IsHotkeyActive("Script items", "Freestand keybind")) {
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", 1)
    } else {
        UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", autodir_old)
    }
}

function fl_tab() {
    if (UI.GetValue("Script items", "Alternative fake-lag")) {
        UI.SetEnabled("Script items", "Send", aa);
        UI.SetEnabled("Script items", "Choke", aa)
    } else {
        UI.SetEnabled("Script items", "Send", 0);
        UI.SetEnabled("Script items", "Choke", 0)
    }
}
var tickcount = 0;
var flip = false;

function set_fl() {
    var e = UI.GetValue("Script items", "Send");
    var b = UI.GetValue("Script items", "Choke");
    if (tickcount >= b && !flip) {
        flip = true;
        tickcount = 0
    }
    if (tickcount >= e && flip) {
        flip = false;
        tickcount = 0
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", !flip ? b : 0);
    tickcount++
}

function roundstart() {
    tickcount = 0
}

function exploit_conf() {
    var b = Entity.GetLocalPlayer();
    if (!b || !Entity.IsAlive(b)) {
        return
    }
    var f = Entity.GetProp(b, "DT_BasePlayer", "m_vecVelocity[0]");
    var e = Math.sqrt(f[0] * f[0] + f[1] * f[1] + f[2] * f[2]);
    var g = false;
    if (e > 5) {
        g = true
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", g);
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
        var g = false
    }
    UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", g)
}
var autodir_old = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction");
var instant_old = UI.GetValue("Rage", "Exploits", "Doubletap instant");

function autopeek() {
    var b = Entity.GetGameRulesProxy();
    if (UI.GetValue("Script items", "Autopeek helper [beta]") && UI.IsHotkeyActive("Misc", "Movement", "Auto peek")) {
        UI.SetValue("Rage", "Exploits", "Doubletap instant", 1);
        !Entity.GetProp(b, "CCSGameRulesProxy", "m_bIsValveDS") && !UI.IsHotkeyActive("Script items", "Freestand keybind") && UI.ToggleHotkey("Script items", "Freestand keybind");
        !Entity.GetProp(b, "CCSGameRulesProxy", "m_bIsValveDS") && !UI.IsHotkeyActive("Rage", "GENERAL", "Doubletap") && UI.ToggleHotkey("Rage", "GENERAL", "Doubletap")
    }
}

function GetScriptOption(b) {
    var e = UI.GetValue("Misc", "JAVASCRIPT", "Script items", b);
    return e
}

function getRndInteger(e, b) {
    return Math.floor(Math.random() * (b - e + 1)) + e
}

function ld() {
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
        AntiAim.SetOverride(1);
        if (GetScriptOption("LD on slow walk")) {
            var k = -20;
            var f = 0;
            var j = getRndInteger(15, 25);
            var b = getRndInteger(20, 30);
            AntiAim.SetRealOffset(k);
            AntiAim.SetFakeOffset(f);
            var g = j + b;
            var e = j - 20;
            AntiAim.SetLBYOffset(j);
            AntiAim.SetLBYOffset(b);
            AntiAim.SetLBYOffset(g);
            AntiAim.SetFakeOffset(e)
        }
    }
}

function unload() {
    AntiAim.SetOverride(0)
}

function main() {
    var b = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
    if (b) {
        AntiAim.SetOverride(1);
        AntiAim.SetFakeOffset(0);
        AntiAim.SetRealOffset(-45);
        AntiAim.SetLBYOffset(0)
    } else {
        AntiAim.SetOverride(1);
        AntiAim.SetFakeOffset(0);
        AntiAim.SetRealOffset(45);
        AntiAim.SetLBYOffset(0)
    }
}

function invert() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Anti-bruteforce")) {
        UI.ToggleHotkey("Anti-Aim", "Fake angles", "Inverter")
    }
}
screen_size = Global.GetScreenSize();
alpha_main = 0;
alpha_anim = 0;
add_anim = 0;
value_duck = 0;
alpha_duck_anim = 0;
alpha_duck = 0;
add_duck = 0;
value_safe = 0;
alpha_safe = 0;
add_safe = 0;
value_da = 0;
alpha_da = 0;
add_da = 0;
value_damage = 0;
alpha_damage = 0;
add_damage = 0;
value_legit = 0;
alpha_legit = 0;
add_legit = 0;
value_autopeek = 0;
alpha_autopeek = 0;
add_autopeek = 0;
value_onshot = 0;
alpha_onshot = 0;
add_onshot = 0;
value_fs = 0;
alpha_fs = 0;
add_fs = 0;
value_dt = 0;
alpha_dt = 0;
add_dt = 0;
red_dt = 0;
green_dt = 0;
value_hs = 0;
alpha_hs = 0;
add_hs = 0;
value_arc = 0;
alpha_anim_state = false;
alpha_duck_state = false;
clamp = function (f, e, b) {
    if (f > b) {
        return b
    }
    if (e > f) {
        return e
    }
    return f
};

function indication() {
    if (UI.GetValue("Script items", "Indicators")) {
        if (World.GetServerString() == "") {
            return
        }
        player = Entity.GetLocalPlayer();
        isDoubletap = UI.IsHotkeyActive("Rage", "Exploits", "Doubletap") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isHideShot = UI.IsHotkeyActive("Rage", "Exploits", "Hide shots") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isDamageOverride = UI.IsHotkeyActive("Script items", "Minimum Damage Override");
        isAutoPeek = UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek");
        isForceBody = UI.IsHotkeyActive("Rage", "General", "Force body aim");
        isFakeDuck = UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck") && !(Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS"));
        isDormant = UI.IsHotkeyActive("Script items", "Dormant Aimbot keybind");
        isInverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
        isDesyncMode = UI.GetValue("Anti-Aim", "Fake angles", "Fake desync");
        isFreestand = UI.IsHotkeyActive("Script items", "Freestand keybind");
        isLegitAA = UI.IsHotkeyActive("Rage", "General", "Force body aim");
        isSlowWalk = UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk");
        isSafety = UI.IsHotkeyActive("Rage", "General", "Force safe point");
        var e = UI.GetColor("Misc", "JAVASCRIPT", "Main color");
        var b = Global.GetScreenSize();
        add_y = 80;
        add_factor = 10;
        fade_factor = ((1 / 0.15) * Globals.Frametime() * 200) / 200;
        fade_factor_anim = ((1 / 0.9) * Globals.Frametime()) * 200;
        fade_factor_duck = ((1 / 0.1) * Globals.Frametime()) * 200;
        if ((!Entity.IsAlive(player) && alpha_main != 0 || Input.IsKeyPressed(9))) {
            alpha_main = clamp(alpha_main - fade_factor * 100, 0, 255)
        }
        if (Entity.IsAlive(player) && alpha_main != 255 && !Input.IsKeyPressed(9)) {
            alpha_main = clamp(alpha_main + fade_factor * 100, 0, 255)
        }
        if (isDamageOverride && alpha_damage != 1 && alpha_main == 255) {
            value_damage = clamp(value_damage + fade_factor, 0, 1);
            alpha_damage = clamp(alpha_damage + fade_factor * value_damage, 0, 1);
            add_damage = clamp(add_damage + fade_factor * add_damage, 0, 1)
        }
        if (!isDamageOverride && alpha_damage != 0 || alpha_main != 255) {
            value_damage = clamp(value_damage - fade_factor, 0, 1);
            alpha_damage = clamp(alpha_damage - fade_factor * alpha_damage, 0, 1);
            add_damage = clamp(add_damage - fade_factor * add_damage, 0, 1)
        }
        if (alpha_damage < 0.01) {
            alpha_damage = 0
        }
        if (add_damage < 0.01) {
            add_damage = 0
        }
        if (isLegitAA && alpha_legit != 1 && alpha_main == 255) {
            value_legit = clamp(value_legit + fade_factor, 0, 1);
            alpha_legit = clamp(alpha_legit + fade_factor * value_legit, 0, 1);
            add_legit = clamp(add_legit + fade_factor * value_legit, 0, 1)
        }
        if (!isLegitAA && alpha_legit != 0 || alpha_main != 255) {
            value_legit = clamp(value_legit - fade_factor, 0, 1);
            alpha_legit = clamp(alpha_legit - fade_factor * alpha_legit, 0, 1);
            add_legit = clamp(add_legit - fade_factor * add_legit, 0, 1)
        }
        if (alpha_legit < 0.01) {
            alpha_legit = 0
        }
        if (add_legit < 0.01) {
            add_legit = 0
        }
        if (isAutoPeek && alpha_autopeek != 1 && alpha_main == 255) {
            value_autopeek = clamp(value_autopeek + fade_factor, 0, 1);
            alpha_autopeek = clamp(alpha_autopeek + fade_factor * value_autopeek, 0, 1);
            add_autopeek = clamp(add_autopeek + fade_factor * value_autopeek, 0, 1)
        }
        if (!isAutoPeek && alpha_autopeek != 0 || alpha_main != 255) {
            value_autopeek = clamp(value_autopeek - fade_factor, 0, 1);
            alpha_autopeek = clamp(alpha_autopeek - fade_factor * alpha_autopeek, 0, 1);
            add_autopeek = clamp(add_autopeek - fade_factor * add_autopeek, 0, 1)
        }
        if (alpha_autopeek < 0.01) {
            alpha_autopeek = 0
        }
        if (add_autopeek < 0.01) {
            add_autopeek = 0
        }
        if (isFreestand && alpha_fs != 1 && alpha_main == 255) {
            value_fs = clamp(value_fs + fade_factor, 0, 1);
            alpha_fs = clamp(alpha_fs + fade_factor * value_fs, 0, 1);
            add_fs = clamp(add_fs + fade_factor * value_fs, 0, 1)
        }
        if (!isFreestand && alpha_fs != 0 || alpha_main != 255) {
            value_fs = clamp(value_fs - fade_factor, 0, 1);
            alpha_fs = clamp(alpha_fs - fade_factor * alpha_fs, 0, 1);
            add_fs = clamp(add_fs - fade_factor * add_fs, 0, 1)
        }
        if (alpha_fs < 0.01) {
            alpha_fs = 0
        }
        if (add_fs < 0.01) {
            add_fs = 0
        }
        if (isSafety && alpha_safe != 1 && alpha_main == 255) {
            value_safe = clamp(value_safe + fade_factor, 0, 1);
            alpha_safe = clamp(alpha_safe + fade_factor * value_safe, 0, 1);
            add_safe = clamp(add_safe + fade_factor * value_safe, 0, 1)
        }
        if (!isSafety && alpha_safe != 0 || alpha_main != 255) {
            value_safe = clamp(value_safe - fade_factor, 0, 1);
            alpha_safe = clamp(alpha_safe - fade_factor * alpha_safe, 0, 1);
            add_safe = clamp(add_safe - fade_factor * add_safe, 0, 1)
        }
        if (alpha_safe < 0.01) {
            alpha_safe = 0
        }
        if (add_safe < 0.01) {
            add_safe = 0
        }
        if (isDormant && alpha_da != 1 && alpha_main == 255) {
            value_da = clamp(value_da + fade_factor, 0, 1);
            alpha_da = clamp(alpha_da + fade_factor * value_da, 0, 1);
            add_da = clamp(add_da + fade_factor * value_da, 0, 1)
        }
        if (!isDormant && alpha_da != 0 || alpha_main != 255) {
            value_da = clamp(value_da - fade_factor, 0, 1);
            alpha_da = clamp(alpha_da - fade_factor * alpha_da, 0, 1);
            add_da = clamp(add_da - fade_factor * add_da, 0, 1)
        }
        if (alpha_da < 0.01) {
            alpha_da = 0
        }
        if (add_da < 0.01) {
            add_da = 0
        }
        if (!isDoubletap && !isHideShot && alpha_main == 255) {
            add_anim = clamp(add_anim + fade_factor, 0, 1);
            if (alpha_anim_state == false) {
                alpha_anim = clamp(alpha_anim + fade_factor_anim, 0, 255);
                if (alpha_anim == 255) {
                    alpha_anim_state = true
                }
            } else {
                alpha_anim = clamp(alpha_anim - fade_factor_anim, 0, 255);
                if (alpha_anim == 0) {
                    alpha_anim_state = false
                }
            }
        } else {
            alpha_anim = clamp(alpha_anim - fade_factor * 100, 0, 255);
            add_anim = clamp(add_anim - fade_factor * add_anim, 0, 1)
        }
        if (isFakeDuck) {
            if (alpha_duck_state == false) {
                alpha_duck_anim = clamp(alpha_duck_anim + fade_factor_duck, 0, 255);
                if (alpha_duck_anim == 255) {
                    alpha_duck_state = true
                }
            } else {
                alpha_duck_anim = clamp(alpha_duck_anim - fade_factor_duck, 0, 255);
                if (alpha_duck_anim == 0) {
                    alpha_duck_state = false
                }
            }
        }
        if (!isFakeDuck) {
            alpha_duck_anim = alpha_duck * 255
        }
        if (isFakeDuck && add_duck != 1 && alpha_main == 255) {
            value_duck = clamp(value_duck + fade_factor, 0, 1);
            add_duck = clamp(add_duck + fade_factor * value_duck, 0, 1);
            alpha_duck = clamp(alpha_duck + fade_factor * value_duck, 0, 1)
        }
        if (!isFakeDuck && alpha_duck != 0 || alpha_main != 255) {
            value_duck = clamp(value_duck - fade_factor, 0, 1);
            add_duck = clamp(add_duck - fade_factor * add_duck, 0, 1);
            alpha_duck = clamp(alpha_duck - fade_factor * alpha_duck, 0, 1)
        }
        if (alpha_duck < 0.01) {
            alpha_duck = 0
        }
        if (add_duck < 0.01) {
            add_duck = 0
        }
        if (!isFakeDuck && isDoubletap && green_dt != 1 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            value_dt = clamp(value_dt + fade_factor, 0, 1);
            alpha_dt = clamp(alpha_dt + fade_factor * value_dt, 0, 1);
            green_dt = clamp(green_dt + fade_factor * value_dt, 0, 1)
        }
        if (!isFakeDuck && isDoubletap) {
            add_dt = clamp(add_dt + fade_factor * value_dt, 0, 1)
        }
        if (!isDoubletap || alpha_main != 255 || isFakeDuck) {
            alpha_dt = clamp(alpha_dt - fade_factor * alpha_dt, 0, 1)
        }
        if (!isDoubletap || alpha_main != 255 || isFakeDuck) {
            add_dt = clamp(add_dt - fade_factor * add_dt, 0, 1)
        }
        if (!isDoubletap && alpha_dt != 0 || Exploit.GetCharge() <= 0.3 || alpha_main != 255) {
            value_dt = clamp(value_dt - fade_factor, 0, 1);
            green_dt = clamp(green_dt - fade_factor * green_dt, 0, 1)
        }
        if (isDoubletap && red_dt != 150 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            red_dt = clamp(red_dt - fade_factor * 75, 150, 255)
        }
        if (!isDoubletap && red_dt != 255 || Exploit.GetCharge() <= 0.3 || alpha_main != 255) {
            red_dt = clamp(red_dt + fade_factor * 75, 150, 255)
        }
        if (alpha_dt < 0.01) {
            alpha_dt = 0
        }
        if (add_dt < 0.01) {
            add_dt = 0
        }
        dt_color = [red_dt, 255 * green_dt, 0, 255 * alpha_dt];
        if (!isFakeDuck && isHideShot && !isDoubletap && alpha_hs != 1 && Exploit.GetCharge() >= 0.3 && alpha_main == 255) {
            value_hs = clamp(value_hs + fade_factor, 0, 1);
            alpha_hs = clamp(alpha_hs + fade_factor * value_hs, 0, 1);
            add_hs = clamp(alpha_hs + fade_factor * value_hs, 0, 1)
        }
        if (!isHideShot || isDoubletap && alpha_hs != 0 || alpha_main != 255 || isFakeDuck) {
            value_hs = clamp(value_hs - fade_factor, 0, 1);
            alpha_hs = clamp(alpha_hs - fade_factor * alpha_hs, 0, 1);
            add_hs = clamp(alpha_hs - fade_factor * add_hs, 0, 1)
        }
        hs_color = [138, 43, 226, alpha_hs * 255];
        if (isDesyncMode == 0) {
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 26, 1, "INFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 26, 1, "RNAL", [0, 0, 0, 255], 3);
            if (isInverter == 1) {
                Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [e[0], e[1], e[2], 255], 3);
                Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [255, 255, 255, 255], 3)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [255, 255, 255, 255], 3);
                    Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [e[0], e[1], e[2], 255], 3)
                }
            }
        }
        if (isDesyncMode == 1) {
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 26, 1, "INFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 26, 1, "RNAL", [0, 0, 0, 255], 3);
            if (isInverter == 1) {
                Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [255, 255, 255, 255], 3);
                Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [e[0], e[1], e[2], 255], 3)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + 25, 1, "INFE", [e[0], e[1], e[2], 255], 3);
                    Render.StringCustom(screen_size[0] / 2 + 13, screen_size[1] / 2 + 25, 1, "RNAL", [255, 255, 255, 255], 3)
                }
            }
        }
        if (alpha_dt != 0) {
            add_y = add_y + add_dt * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 26, screen_size[1] / 2 + add_y - 45, 0, "DOUBLE TAP", [0, 0, 0, dt_color[3]], 3);
            Render.StringCustom(screen_size[0] / 2 - 25, screen_size[1] / 2 + add_y - 44, 0, "DOUBLE TAP", dt_color, 3)
        }
        if (isLegitAA) {
            add_y = add_y + add_legit * add_factor + 2;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 + add_y - 46, 0, "BODY", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "BODY", [255, 215, 0, 255], 3)
        }
        if (isSafety) {
            add_y = add_y + add_safe * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 + add_y - 46, 0, "SAFE", [0, 0, 0, 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "SAFE", [0, 191, 255, 255], 3)
        }
        if (alpha_hs != 0) {
            add_y = add_y + add_hs * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 8, screen_size[1] / 2 + add_y - 45, 0, "HIDE", [0, 0, 0, hs_color[3]], 3);
            Render.StringCustom(screen_size[0] / 2 - 7, screen_size[1] / 2 + add_y - 44, 0, "HIDE", hs_color, 3)
        }
        if (isFakeDuck || alpha_duck_anim > 0 && alpha_main > 50) {
            add_y = add_y + add_duck * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 10, screen_size[1] / 2 - 2 + add_y - 45, 0, "DUCK", [0, 0, 0, alpha_duck_anim], 3);
            Render.StringCustom(screen_size[0] / 2 - 9, screen_size[1] / 2 + add_y - 45, 0, "DUCK", [0, 250, 154, alpha_duck_anim], 3)
        }
        if (alpha_da > 0) {
            add_y = add_y + add_da * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 22, screen_size[1] / 2 - 2 + add_y - 44, 0, "DORMANT", [0, 0, 0, alpha_da * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 21, screen_size[1] / 2 + add_y - 45, 0, "DORMANT", [238, 130, 238, alpha_da * 255], 3)
        }
        if (alpha_fs > 0) {
            add_y = add_y + add_fs * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 24, screen_size[1] / 2 - 2 + add_y - 42, 0, "FREESTAND", [0, 0, 0, alpha_fs * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 23, screen_size[1] / 2 + add_y - 43, 0, "FREESTAND", [0, 250, 154, alpha_fs * 255], 3)
        }
        if (isAutoPeek) {
            add_y = add_y + add_autopeek * add_factor;
            Render.StringCustom(screen_size[0] / 2 - 23, screen_size[1] / 2 - 2 + add_y - 42, 0, "AUTOPEEK", [0, 0, 0, alpha_autopeek * 255], 3);
            Render.StringCustom(screen_size[0] / 2 - 22, screen_size[1] / 2 + add_y - 43, 0, "AUTOPEEK", [135, 206, 250, alpha_autopeek * 255], 3)
        }
    }
}

function menu_cb() {
    enabled = UI.GetValue("Anti-aim indication")
}

function menu_check() {
    if (UI.IsMenuOpen()) {
        menu_cb()
    }
}
UI.SetEnabled("Script items", "Main color", 0);
var screen_size = Global.GetScreenSize();

function ind() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable AA arrows")) {
        if (!World.GetServerString()) {
            return
        }
        isInverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
        isDesyncMode = UI.GetValue("Anti-Aim", "Fake angles", "Fake desync");
        var f = UI.GetColor("Misc", "JAVASCRIPT", "Main color");
        var e = Global.GetScreenSize();
        x = e[0];
        y = e[1];
        if (isDesyncMode == 0) {
            Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 4, 1, ">>>", [0, 0, 0, 255], 7);
            Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 4, 1, "<<<", [0, 0, 0, 255], 7);
            if (isInverter == 1) {
                Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [255, 255, 255, 255], 7);
                Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [f[0], f[1], f[2], 255], 7)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [255, 255, 255, 255], 7);
                    Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [f[0], f[1], f[2], 255], 7)
                }
            }
        }
        if (isDesyncMode == 1) {
            Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 4, 1, ">>>", [0, 0, 0, 255], 7);
            Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 4, 1, "<<<", [0, 0, 0, 255], 7);
            if (isInverter == 1) {
                Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [f[0], f[1], f[2], 255], 7);
                Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [255, 255, 255, 255], 7)
            } else {
                if (isInverter == 0) {
                    Render.StringCustom(x / 2 - 36, y / 2 * 0.982 + 5, 1, "<<<", [f[0], f[1], f[2], 255], 7);
                    Render.StringCustom(x / 2 + 36, y / 2 * 0.982 + 5, 1, ">>>", [255, 255, 255, 255], 7)
                }
            }
        }
    }
    var g = 0;
    var b = 0;
    var j = false
}

function main_color_vis() {
    if (UI.GetValue("Script items", "Indicators") || UI.GetValue("Script items", "Enable AA arrows")) {
        UI.SetEnabled("Script items", "Main color", vis)
    } else {
        UI.SetEnabled("Script items", "Main color", 0)
    }
}

function player_connect() {
    var b = Event.GetInt("userid");
    if (Entity.GetEntityFromUserID(b) == Entity.GetLocalPlayer()) {
        lastPressed = Global.Tickcount();
        olDoubleTapick = Global.Tickcount();
        lastPressed = Global.Tickcount();
        oldTick = Global.Tickcount()
    }
}

function fog_tab() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fog")) {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Fog color", vis);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Distance", vis);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Density", vis)
    } else {
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Fog color", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Distance", 0);
        UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Density", 0)
    }
}

function fog() {
    if (!UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fog")) {
        if (Convar.GetString("fog_override") !== "0") {
            Convar.SetString("fog_override", "0")
        }
        return
    }
    if (Convar.GetString("fog_override") !== "1") {
        Convar.SetString("fog_override", "1")
    }
    const b = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Fog color");
    const f = b[0] + " " + b[1] + " " + b[2];
    const g = UI.GetString("Misc", "JAVASCRIPT", "Script items", "Distance");
    const e = (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Density") / 100).toString();
    if (Convar.GetString("fog_color") !== f) {
        Convar.SetString("fog_color", f)
    }
    if (Convar.GetString("fog_end") !== g) {
        Convar.SetString("fog_start", "0");
        Convar.SetString("fog_end", g)
    }
    if (Convar.GetString("fog_maxdensity") !== e) {
        Convar.SetString("fog_maxdensity", e)
    }
}

function HSVtoRGB(m, B, w) {
    var e, n, u, l, o, k, j, A;
    l = Math.floor(m * 6);
    o = m * 6 - l;
    k = w * (1 - B);
    j = w * (1 - o * B);
    A = w * (1 - (1 - o) * B);
    switch (l % 6) {
    case 0:
        e = w, n = A, u = k;
        break;
    case 1:
        e = j, n = w, u = k;
        break;
    case 2:
        e = k, n = w, u = A;
        break;
    case 3:
        e = k, n = j, u = w;
        break;
    case 4:
        e = A, n = k, u = w;
        break;
    case 5:
        e = w, n = k, u = j;
        break
    }
    return {
        r: Math.round(e * 255),
        g: Math.round(n * 255),
        b: Math.round(u * 255)
    }
}
const x1 = UI.AddSliderInt("Hotkeys_x", 0, Global.GetScreenSize()[0]);
const y1 = UI.AddSliderInt("Hotkeys_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled("Script items", "Hotkeys_x", 0);
UI.SetEnabled("Script items", "Hotkeys_y", 0);
var alpha = 0;
var maxwidth = 0;
var swalpha = 0;
var fdalpha = 0;
var apalpha = 0;
var aialpha = 0;
var spalpha = 0;
var fbalpha = 0;
var dtalpha = 0;
var hsalpha = 0;
var doalpha = 0;
var textalpha = 0;
var headalpha = 0;
var h = new Array();

function in_bounds(g, b, j, e, f) {
    return (g[0] > b) && (g[1] > j) && (g[0] < e) && (g[1] < f)
}

function main_hotkeys() {
    weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
    if (UI.GetValue("Script items", "KeyBinds")) {
        if (isHeavyPistol(weapon_name)) {
            var l = (UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage"))
        } else {
            if (isScout(weapon_name)) {
                var l = (UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage"))
            } else {
                if (isAwp(weapon_name)) {
                    var l = (UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage"))
                } else {
                    if (isAutoSniper(weapon_name)) {
                        var l = (UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Minimum damage"))
                    } else {
                        var l = "-"
                    }
                }
            }
        }
        if (!World.GetServerString()) {
            return
        }
        const q = UI.GetValue("Misc", "JAVASCRIPT", "Hotkeys_x"),
            o = UI.GetValue("Misc", "JAVASCRIPT", "Hotkeys_y");
        var j = Render.AddFont("Verdana", 7, 100);
        var k = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
        var m = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
        var p = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
        var r = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
        var e = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
        var n = 8 * Globals.Frametime();
        var f = 75;
        var b = 0;
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Dormant Aimbot keybind")) {
            swalpha = Math.min(swalpha + n, 1)
        } else {
            swalpha = swalpha - n;
            if (swalpha < 0) {
                swalpha = 0
            }
            if (swalpha == 0) {
                h.splice(h.indexOf("Dormant   "))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Force Head keybind")) {
            headalpha = Math.min(headalpha + n, 1)
        } else {
            headalpha = headalpha - n;
            if (headalpha < 0) {
                headalpha = 0
            }
            if (headalpha == 0) {
                h.splice(h.indexOf("Force Head"))
            }
        }
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            fdalpha = Math.min(fdalpha + n, 1)
        } else {
            fdalpha = fdalpha - n;
            if (fdalpha < 0) {
                fdalpha = 0
            }
            if (fdalpha == 0) {
                h.splice(h.indexOf("Duck peek"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            apalpha = Math.min(apalpha + n, 1)
        } else {
            apalpha = apalpha - n;
            if (apalpha < 0) {
                apalpha = 0
            }
            if (apalpha == 0) {
                h.splice(h.indexOf("Auto peek"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestand keybind")) {
            aialpha = Math.min(aialpha + n, 1)
        } else {
            aialpha = aialpha - n;
            if (aialpha < 0) {
                aialpha = 0
            }
            if (aialpha == 0) {
                h.splice(h.indexOf("Freestand"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            dtalpha = Math.min(dtalpha + n, 1)
        } else {
            dtalpha = dtalpha - n;
            if (dtalpha < 0) {
                dtalpha = 0
            }
            if (dtalpha == 0) {
                h.splice(h.indexOf("Double tap"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            hsalpha = Math.min(hsalpha + n, 1)
        } else {
            hsalpha = hsalpha - n;
            if (hsalpha < 0) {
                hsalpha = 0
            }
            if (hsalpha == 0) {
                h.splice(h.indexOf("Hide shots"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            spalpha = Math.min(spalpha + n, 1)
        } else {
            spalpha = spalpha - n;
            if (spalpha < 0) {
                spalpha = 0
            }
            if (spalpha == 0) {
                h.splice(h.indexOf("Safe point"))
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            fbalpha = Math.min(fbalpha + n, 1)
        } else {
            fbalpha = fbalpha - n;
            if (fbalpha < 0) {
                fbalpha = 0
            }
            if (fbalpha == 0) {
                h.splice(h.indexOf("Body aim   "))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum Damage Override")) {
            doalpha = Math.min(doalpha + n, 1)
        } else {
            doalpha = doalpha - n;
            if (doalpha < 0) {
                doalpha = 0
            }
            if (doalpha == 0) {
                h.splice(h.indexOf("Dmg"))
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Dormant Aimbot keybind")) {
            if (h.indexOf("Dormant   ") == -1) {
                h.push("Dormant   ")
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Force Head keybind")) {
            if (h.indexOf("Force Head") == -1) {
                h.push("Force Head")
            }
        }
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            if (h.indexOf("Duck peek") == -1) {
                h.push("Duck peek")
            }
        }
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            if (h.indexOf("Auto peek") == -1) {
                h.push("Auto peek")
            }
        }
        if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Freestand keybind")) {
            if (h.indexOf("Freestand") == -1) {
                h.push("Freestand")
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            if (h.indexOf("Double tap") == -1) {
                h.push("Double tap")
            }
        }
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            if (h.indexOf("Hide shots") == -1) {
                h.push("Hide shots")
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            if (h.indexOf("Safe point") == -1) {
                h.push("Safe point")
            }
        }
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            if (h.indexOf("Body aim") == -1) {
                h.push("Body aim   ")
            }
        }
        if (h.length > 0) {
            alpha = Math.min(alpha + n, 1)
        } else {
            alpha = alpha - n;
            if (alpha < 0) {
                alpha = 0
            }
        }
        for (i = 0; i < h.length; i++) {
            if (Render.TextSizeCustom(h[i], j)[0] > b) {
                b = Render.TextSizeCustom(h[i], j)[0]
            }
        }
        if (b == 0) {
            b = 50
        }
        f = f + b + 20;
        if (UI.GetValue("Script items", "Indicators style") == 1) {
            Render.GradientRect(q, o + 3, f, 2, 1, [p[0], p[1], p[2], p[3]], [r[0], r[1], r[2], r[3]])
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 2) {
                Render.GradientRect(q, o + 3, f / 2 + 5, 2, 1, [48, 206, 230, 255], [220, 57, 218, 255]);
                Render.GradientRect(q + 77, o + 3, f / 2 - 3, 2, 1, [220, 57, 218, 255], [220, 232, 47, 255])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 3) {
                    Render.GradientRect(q, o + 3, f, 2, 1, [k.g, k.b, k.r, 255], [k.r, k.g, k.b, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 4) {
                        Render.GradientRect(q, o + 3, f / 2 + 5, 2, 1, [e[0], e[1], e[2], 55], [e[0], e[1], e[2], 255]);
                        Render.GradientRect(q + 77, o + 3, f / 2 - 3, 2, 1, [e[0], e[1], e[2], 255], [e[0], e[1], e[2], 55])
                    } else {
                        Render.GradientRect(q, o + 3, f, 2, 1, [m[0], m[1], m[2], m[3]], [m[0], m[1], m[2], m[3]])
                    }
                }
            }
        }
        if (!UI.GetValue("Script items", "Indicators transparency")) {
            Render.FilledRect(q, o + 5, f, 18, [35, 35, 35, 255])
        } else {
            Render.FilledRect(q, o + 5, f, 18, [35, 35, 35, 0])
        }
        Render.StringCustom(q + f / 2 - (Render.TextSizeCustom("keybinds", j)[0] / 2) + 2, o + 9, 0, "keybinds", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q + f / 2 - (Render.TextSizeCustom("keybinds", j)[0] / 2) + 1, o + 8, 0, "keybinds", [255, 255, 255, 255], j);
        Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, "MinDamage", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, "MinDamage", [255, 255, 255, 255], j);
        Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[" + l + "]", j)[0], o + 26 + 6 + 18 * i, 0, "[" + l + "]", [0, 0, 0, 255 / 1.3], j);
        Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[" + l + "]", j)[0], o + 26 + 6 + 18 * i, 0, "[" + l + "]", [255, 255, 255, 255], j);
        for (i = 0; i < h.length; i++) {
            switch (h[i]) {
            case "Dormant   ":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, swalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, swalpha * 255], j);
                break;
            case "Force Head":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, headalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, headalpha * 255], j);
                break;
            case "Duck peek":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, fdalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, fdalpha * 255], j);
                break;
            case "Auto peek":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, apalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, apalpha * 255], j);
                break;
            case "Freestand":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, aialpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, aialpha * 255], j);
                break;
            case "Double tap":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, dtalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, dtalpha * 255], j);
                break;
            case "Hide shots":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, hsalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, hsalpha * 255], j);
                break;
            case "Safe point":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, spalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, spalpha * 255], j);
                Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [0, 0, 0, spalpha * 255 / 1.3], j);
                Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [255, 255, 255, spalpha * 255], j);
                break;
            case "Body aim   ":
                Render.StringCustom(q + 3, o + 26 + 6 + 18 * i, 0, h[i], [0, 0, 0, fbalpha * 255 / 1.3], j);
                Render.StringCustom(q + 2, o + 26 + 6 + 18 * i, 0, h[i], [255, 255, 255, fbalpha * 255], j);
                Render.StringCustom(q - 3 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [0, 0, 0, fbalpha * 255 / 1.3], j);
                Render.StringCustom(q - 2 + f - Render.TextSizeCustom("[force]", j)[0], o + 26 + 6 + 18 * i, 0, "[force]", [255, 255, 255, fbalpha * 255], j);
                break
            }
        }
    }
    if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
        const g = Global.GetCursorPosition();
        if (in_bounds(g, q, o, q + f, o + 30)) {
            UI.SetValue("Misc", "JAVASCRIPT", "Hotkeys_x", g[0] - f / 2);
            UI.SetValue("Misc", "JAVASCRIPT", "Hotkeys_y", g[1] - 20)
        }
    }
}

function watermark() {
    if (UI.GetValue("Scripts items", "Watermark")) {}
    const J = Global.GetScreenSize();
    var b = 0;
    var w = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
    var t = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
    var g = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
    var A = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
    var H = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
    UI.SetEnabled("Script items", "Classic color", 0);
    UI.SetEnabled("Script items", "First Gradient", 0);
    UI.SetEnabled("Script items", "Second Gradient", 0);
    UI.SetEnabled("Script items", "Faded color", 0);
    if (UI.GetValue("Script items", "Watermark")) {
        if (b == 0) {
            var I = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString(),
                G = new Date(),
                F = G.getHours(),
                v = Local.GetRealYaw(),
                u = Local.GetFakeYaw(),
                j = Math.min(Math.abs(v - u) / 2, 60).toFixed(1),
                s = Math.min(Math.round(1.7 * Math.abs(j)), 100),
                E = G.getMinutes(),
                r = Render.AddFont("Verdana", 7, 100),
                q = Render.AddFont("Verdana", 7, 0),
                D = F <= 9 ? "0" + G.getHours() + ":" : G.getHours() + ":",
                C = E <= 9 ? "0" + G.getMinutes() + "" : G.getMinutes(),
                p = "";
            if (World.GetServerString() != "") {
                p += "Infernal tech | [version 1.3] | youtube.com/c/anarxist | " + I + "ms "
            }
            p += "| " + D + C;
            var B = 28;
            const o = Render.TextSizeCustom(p, q)[0] + 15;
            var f = Global.GetScreenSize()[0] - 2,
                e = 29;
            f = f - o - 12;
            if (!UI.GetValue("Script items", "Indicators transparency")) {
                Render.FilledRect(f + 13, e - 15, o - 6, 17, [35, 35, 35, 255])
            } else {
                Render.FilledRect(f + 13, e - 15, o - 6, 17, [35, 35, 35, 0])
            }
            Render.StringCustom(f + 17, 16, 0, p, [0, 0, 0, 255], q);
            Render.StringCustom(f + 17, 16, 0, p, [255, 255, 255, 255], q);
            if (UI.GetValue("Script items", "Indicators style") == 1) {
                Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [g[0], g[1], g[2], g[3]], [A[0], A[1], A[2], A[3]])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 2) {
                    Render.GradientRect(f + 13, e - 17, o - 173, 2, 2, [48, 206, 230, 255], [220, 57, 218, 255]);
                    Render.GradientRect(f + 172, e - 17, o - 165, 2, 2, [220, 57, 218, 255], [220, 232, 47, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 3) {
                        Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [w.g, w.b, w.r, 255], [w.r, w.g, w.b, 255])
                    } else {
                        if (UI.GetValue("Script items", "Indicators style") == 4) {
                            Render.GradientRect(f + 13, e - 17, o - 173, 2, 2, [H[0], H[1], H[2], 55], [H[0], H[1], H[2], 255]);
                            Render.GradientRect(f + 172, e - 17, o - 165, 2, 2, [H[0], H[1], H[2], 255], [H[0], H[1], H[2], 55])
                        } else {
                            Render.GradientRect(f + 13, e - 17, o - 6, 2, 2, [t[0], t[1], t[2], t[3]], [t[0], t[1], t[2], t[3]])
                        }
                    }
                }
            }
            var n = "" + j.toString() + " degrees  | safety: " + s.toString() + "%",
                m = Render.TextSizeCustom(n, r)[0] + 15,
                l = Global.GetScreenSize()[0] - 2,
                k = 29;
            l = l - m - 12;
            if (UI.GetValue("Script items", "Indicators style") == 1) {
                Render.GradientRect(l + 12, k + 6, 2, 18, 10, [g[0], g[1], g[2], g[3]], [A[0], A[1], A[2], A[3]])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 2) {
                    Render.GradientRect(l + 12, k + 6, 2, 18, 10, [48, 206, 230, 255], [220, 57, 218, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 3) {
                        Render.GradientRect(l + 12, k + 6, 2, 18, 10, [w.g, w.b, w.r, 255], [w.r, w.g, w.b, 255])
                    } else {
                        if (UI.GetValue("Script items", "Indicators style") == 4) {
                            Render.GradientRect(l + 12, k + 6, 2, 18, 10, [H[0], H[1], H[2], 255], [H[0], H[1], H[2], 55])
                        } else {
                            Render.GradientRect(l + 12, k + 6, 2, 18, 10, [t[0], t[1], t[2], t[3]], [t[0], t[1], t[2], t[3]])
                        }
                    }
                }
            }
            if (!UI.GetValue("Script items", "Indicators transparency")) {
                Render.FilledRect(l + 14, k + 6, m - 7, 18, [35, 35, 35, 255])
            } else {
                Render.FilledRect(l + 14, k + 6, m - 7, 18, [35, 35, 35, 0])
            }
            Render.StringCustom(l + 20, k + 9, 0, n, [0, 0, 0, 180], r);
            Render.StringCustom(l + 19, k + 8, 0, n, [255, 255, 255, 255], r);
            mz(l + 22, k + 14, 5, 0, j * 6, 2, [255, 255, 255, 255])
        }
    }
}

function get_icon(b) {
    var e = "";
    switch (b) {
    case "desert eagle":
        e = "a";
        break;
    case "dual berettas":
        e = "b";
        break;
    case "five seven":
        e = "c";
        break;
    case "glock 18":
        e = "d";
        break;
    case "ak 47":
        e = "e";
        break;
    case "aug":
        e = "f";
        break;
    case "awp":
        e = "g";
        break;
    case "famas":
        e = "h";
        break;
    case "m249":
        e = "i";
        break;
    case "g3sg1":
        e = "j";
        break;
    case "galil ar":
        e = "k";
        break;
    case "m4a4":
        e = "l";
        break;
    case "m4a1 s":
        e = "m";
        break;
    case "mac 10":
        e = "n";
        break;
    case "p2000":
        e = "o";
        break;
    case "mp5 sd":
        e = "p";
        break;
    case "ump 45":
        e = "q";
        break;
    case "xm1014":
        e = "r";
        break;
    case "pp bizon":
        e = "s";
        break;
    case "mag 7":
        e = "t";
        break;
    case "negev":
        e = "u";
        break;
    case "sawed off":
        e = "v";
        break;
    case "tec 9":
        e = "w";
        break;
    case "zeus x27":
        e = "x";
        break;
    case "p250":
        e = "y";
        break;
    case "mp7":
        e = "z";
        break;
    case "mp9":
        e = "A";
        break;
    case "nova":
        e = "B";
        break;
    case "p90":
        e = "C";
        break;
    case "scar 20":
        e = "D";
        break;
    case "sg 553":
        e = "E";
        break;
    case "ssg 08":
        e = "F";
        break;
    case "knife":
        e = "G";
        break;
    case "flashbang":
        e = "H";
        break;
    case "high explosive grenade":
        e = "I";
        break;
    case "smoke grenade":
        e = "J";
        break;
    case "molotov":
        e = "K";
        break;
    case "decoy grenade":
        e = "L";
        break;
    case "incendiary grenade":
        e = "M";
        break;
    case "c4 explosive":
        e = "N";
        break;
    case "usp s":
        e = "P";
        break;
    case "cz75 auto":
        e = "Q";
        break;
    case "r8 revolver":
        e = "R";
        break;
    case "bayonet":
        e = "V";
        break;
    case "flip knife":
        e = "W";
        break;
    case "gut knife":
        e = "X";
        break;
    case "karambit":
        e = "Y";
        break;
    case "m9 bayonet":
        e = "Z";
        break;
    case "falchion knife":
        e = "1";
        break;
    case "bowie knife":
        e = "2";
        break;
    case "butterfly knife":
        e = "3";
        break;
    case "shadow daggers":
        e = "4";
        break;
    case "ursus knife":
        e = "5";
        break;
    case "navaja knife":
        e = "6";
        break;
    case "stiletto knife":
        e = "7";
        break;
    case "skeleton knife":
        e = "8";
        break;
    case "huntsman knife":
        e = "0";
        break;
    case "talon knife":
        e = "8";
        break;
    case "classic knife":
        e = "25";
        break;
    case "paracord knife":
        e = "Z";
        break;
    case "survival knife":
        e = "Z";
        break;
    case "nomad knife":
        e = "Z";
        break;
    default:
        e = "";
        break
    }
    return e
}
UI.AddSliderInt("dt_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("dt_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled("Script items", "dt_x", 0);
UI.SetEnabled("Script items", "dt_y", 0);
UI.AddDropdown("Indicators style", ["Classic", "Gradient", "Skeet", "Rainbow", "Faded"]);
UI.AddColorPicker("Classic color");
UI.AddColorPicker("First Gradient");
UI.AddColorPicker("Second Gradient");
UI.AddColorPicker("Faded color");

function in_bounds(g, b, j, e, f) {
    return (g[0] > b) && (g[1] > j) && (g[0] < e) && (g[1] < f)
}
var fa = 0;
var sa = 0;

function main_dt() {
    var j = HSVtoRGB(Global.Realtime() * 0.2, 1, 1);
    var m = UI.GetColor("Misc", "JAVASCRIPT", "Classic color");
    var q = UI.GetColor("Misc", "JAVASCRIPT", "First Gradient");
    var u = UI.GetColor("Misc", "JAVASCRIPT", "Second Gradient");
    var e = UI.GetColor("Misc", "JAVASCRIPT", "Faded color");
    if (UI.GetValue("Script items", "Exploits indicator")) {
        const r = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "dt_x"),
            p = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "dt_y");
        localplayer_index = Entity.GetLocalPlayer();
        localplayer_weapon = Entity.GetWeapon(localplayer_index);
        weapon_name = Entity.GetName(localplayer_weapon);
        g_Local_classname = Entity.GetClassName(localplayer_weapon);
        var o = Entity.GetProp(localplayer_weapon, "CBaseCombatWeapon", "m_flNextPrimaryAttack");
        var l = false;
        if (o <= Globals.Curtime()) {
            l = true
        }
        var n = 8 * Globals.Frametime();
        var k = [5, 128, 187, 255];
        var g = Render.AddFont("Verdana", 7, 100);
        var b = Render.AddFont("bullet", 18, 100);
        if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
            var t = "DT | tickbase(v): 14"
        } else {
            if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
                var t = "HS | tickbase(v): 7  "
            } else {
                var t = " -  | tickbase(v): 0  "
            }
        }
        var s = Render.TextSizeCustom(t, g)[0] + 8;
        if (!UI.GetValue("Script items", "Indicators transparency")) {
            Render.FilledRect(r, p, s, 20, [35, 35, 35, 255])
        } else {
            Render.FilledRect(r, p, s, 20, [35, 35, 35, 0])
        }
        Render.FilledRect(r, p + 2, s, 18, [17, 17, 17, 0]);
        Render.StringCustom(r + 5, p + 5, 0, t, [0, 0, 0, 180], g);
        Render.StringCustom(r + 4, p + 4, 0, t, [255, 255, 255, 255], g);
        if (UI.GetValue("Script items", "Indicators style") == 1) {
            Render.GradientRect(r, p - 1, s, 2, 2, [q[0], q[1], q[2], q[3]], [u[0], u[1], u[2], u[3]])
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 2) {
                Render.GradientRect(r, p - 1, s / 2 + 4, 2, 2, [48, 206, 230, 255], [220, 57, 218, 255]);
                Render.GradientRect(r + 56, p - 1, s / 2, 2, 2, [220, 57, 218, 255], [220, 232, 47, 255])
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 3) {
                    Render.GradientRect(r, p - 1, s, 2, 2, [j.g, j.b, j.r, 255], [j.r, j.g, j.b, 255])
                } else {
                    if (UI.GetValue("Script items", "Indicators style") == 4) {
                        Render.GradientRect(r, p - 1, s / 2 + 4, 2, 2, [e[0], e[1], e[2], 55], [e[0], e[1], e[2], 255]);
                        Render.GradientRect(r + 56, p - 1, s / 2, 2, 2, [e[0], e[1], e[2], 255], [e[0], e[1], e[2], 55])
                    }
                }
            }
        }
        if (UI.GetValue("Script items", "Indicators style") == 0) {
            Render.GradientRect(r, p - 1, s, 2, 2, [m[0], m[1], m[2], m[3]], [m[0], m[1], m[2], m[3]])
        }
        Render.String(r + 4, p + 22, 0, get_icon(weapon_name), [255, 255, 255, 255], 5);
        if ((g_Local_classname == "CKnife" || g_Local_classname == "CWeaponSSG08" || g_Local_classname == "CWeaponAWP" || weapon_name == "r8 revolver" || g_Local_classname == "CHEGrenade" || g_Local_classname == "CMolotovGrenade" || g_Local_classname == "CIncendiaryGrenade" || g_Local_classname == "CFlashbang" || g_Local_classname == "CSmokeGrenade" || g_Local_classname == "CDecoyGrenade" || g_Local_classname == "CWeaponTaser" || g_Local_classname == "CC4")) {} else {
            if (l) {
                fa = Math.min(fa + n, 1);
                Render.StringCustom(r + 10 + Render.TextSize(get_icon(weapon_name), 5)[0], p + 18, 0, "A", [255, 255, 255, fa * 255], b)
            } else {
                fa = 0
            }
            if (l && Exploit.GetCharge() == 1 && UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
                sa = Math.min(sa + n, 1);
                Render.StringCustom(r + 30 + Render.TextSize(get_icon(weapon_name), 5)[0], p + 18, 0, "A", [255, 255, 255, sa * 255], b)
            } else {
                sa = 0
            }
        }
        if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
            const f = Global.GetCursorPosition();
            if (in_bounds(f, r, p, r + s, p + 30)) {
                UI.SetValue("Misc", "JAVASCRIPT", "Script items", "dt_x", f[0] - s / 2);
                UI.SetValue("Misc", "JAVASCRIPT", "Script items", "dt_y", f[1] - 20)
            }
        }
    }
}

function ind_vis() {
    if (UI.GetValue("Script items", "KeyBinds") || UI.GetValue("Script items", "Watermark") || UI.GetValue("Script items", "Exploits indicator")) {
        UI.SetEnabled("Script items", "Indicators style", vis);
        UI.SetEnabled("Script items", "Indicators transparency", vis)
    } else {
        UI.SetEnabled("Script items", "Indicators style", 0);
        UI.SetEnabled("Script items", "Indicators transparency", 0)
    }
    if (UI.GetValue("Script items", "Indicators style") == 1) {
        UI.SetEnabled("Script items", "Classic color", 0);
        UI.SetEnabled("Script items", "First Gradient", vis);
        UI.SetEnabled("Script items", "Second Gradient", vis);
        UI.SetEnabled("Script items", "Faded color", 0)
    } else {
        if (UI.GetValue("Script items", "Indicators style") == 2) {
            UI.SetEnabled("Script items", "Classic color", 0);
            UI.SetEnabled("Script items", "First Gradient", 0);
            UI.SetEnabled("Script items", "Second Gradient", 0);
            UI.SetEnabled("Script items", "Faded color", 0)
        } else {
            if (UI.GetValue("Script items", "Indicators style") == 3) {
                UI.SetEnabled("Script items", "Classic color", 0);
                UI.SetEnabled("Script items", "First Gradient", 0);
                UI.SetEnabled("Script items", "Second Gradient", 0);
                UI.SetEnabled("Script items", "Faded color", 0)
            } else {
                if (UI.GetValue("Script items", "Indicators style") == 4) {
                    UI.SetEnabled("Script items", "Classic color", 0);
                    UI.SetEnabled("Script items", "First Gradient", 0);
                    UI.SetEnabled("Script items", "Second Gradient", 0);
                    UI.SetEnabled("Script items", "Faded color", vis)
                } else {
                    UI.SetEnabled("Script items", "Classic color", vis);
                    UI.SetEnabled("Script items", "First Gradient", 0);
                    UI.SetEnabled("Script items", "Second Gradient", 0);
                    UI.SetEnabled("Script items", "Faded color", 0)
                }
            }
        }
    }
    if (!UI.GetValue("Script items", "KeyBinds") && (!UI.GetValue("Script items", "Watermark")) && (!UI.GetValue("Script items", "Exploits indicator"))) {
        UI.SetEnabled("Script items", "Classic color", 0);
        UI.SetEnabled("Script items", "First Gradient", 0);
        UI.SetEnabled("Script items", "Second Gradient", 0);
        UI.SetEnabled("Script items", "Faded color", 0)
    }
}

function on_cm() {
    if (Convar.GetFloat("r_aspectratio") != UI.GetValue("Script items", "Aspect ratio")) {
        Convar.SetFloat("r_aspectratio", UI.GetValue("Script items", "Aspect ratio"))
    }
}

function ar_tab() {
    if (UI.GetValue("Script items", "Aspect ratio changer")) {
        UI.SetEnabled("Script items", "Aspect ratio", misc)
    } else {
        UI.SetEnabled("Script items", "Aspect ratio", 0)
    }
}

function on_unload() {
    Cheat.ExecuteCommand("r_aspectratio 0")
}
hitboxes = ["generic", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "?"];
var scriptitems = ("Misc", "JAVASCRIPT", "Script items");
var shots = 0;
var predicthc = 0;
var safety = 0;
var hitboxName = "";
var choked = 0;
var exploit = 0;
var logs = [];
var logsct = [];
var logsalpha = [];

function getHitboxName(b) {
    switch (b) {
    case 0:
        hitboxName = "head";
        break;
    case 1:
        hitboxName = "head";
        break;
    case 2:
        hitboxName = "stomach";
        break;
    case 3:
        hitboxName = "stomach";
        break;
    case 4:
        hitboxName = "stomach";
        break;
    case 5:
        hitboxName = "chest";
        break;
    case 6:
        hitboxName = "chest";
        break;
    case 7:
        hitboxName = "left leg";
        break;
    case 8:
        hitboxName = "right leg";
        break;
    case 9:
        hitboxName = "left leg";
        break;
    case 10:
        hitboxName = "right leg";
        break;
    case 11:
        hitboxName = "left leg";
        break;
    case 12:
        hitboxName = "right leg";
        break;
    case 13:
        hitboxName = "left arm";
        break;
    case 14:
        hitboxName = "right arm";
        break;
    case 15:
        hitboxName = "left arm";
        break;
    case 16:
        hitboxName = "left arm";
        break;
    case 17:
        hitboxName = "right arm";
        break;
    case 18:
        hitboxName = "right arm";
        break;
    default:
        hitboxName = "body"
    }
    return hitboxName
}

function HitgroupName(b) {
    return hitboxes[b] || "body"
}
var target = -1;
var shots_fired = 0;
var hits = 0;
var lastUpdate = 0;
var logged = false;

function ragebot_fire() {
    predicthc = Event.GetInt("hitchance");
    safety = Event.GetInt("safepoint");
    hitboxName = getHitboxName(Event.GetInt("hitbox"));
    exploit = (Event.GetInt("exploit") + 1).toString();
    target = Event.GetInt("target_index");
    shots_fired++;
    logged = false;
    lastUpdate = Globals.Curtime()
}

function hitlog() {
    var j = Entity.GetEntityFromUserID(Event.GetInt("userid"));
    var f = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
    if (f == Entity.GetLocalPlayer() && j == target) {
        hits++
    }
    var e = "Hit ";
    me = Entity.GetLocalPlayer();
    hitbox = Event.GetInt("hitgroup");
    target_damage = Event.GetInt("dmg_health");
    target_health = Event.GetInt("health");
    victim = Event.GetInt("userid");
    f = Event.GetInt("attacker");
    weapon = Event.GetString("weapon");
    victimIndex = Entity.GetEntityFromUserID(victim);
    attackerIndex = Entity.GetEntityFromUserID(f);
    name = Entity.GetName(victimIndex);
    var g = Globals.Tickcount() % 17;
    var b = "";
    if (exploit == 2) {
        b += "T"
    }
    b += "B";
    if (hitbox == 1) {
        b += "H"
    }
    if (safety == 1) {
        safety = "true"
    } else {
        safety = "false"
    }
    if (weapon == "hegrenade") {
        e = "Naded "
    } else {
        if (weapon == "inferno") {
            e = "Burned "
        } else {
            if (weapon == "knife") {
                e = "Knifed "
            }
        }
    }
    if (UI.GetValue("Script items", "Logs")) {
        if (me == attackerIndex && me != victimIndex) {
            Cheat.PrintColor([39, 255, 39, 255], "[Infernal tech] ");
            if (e == "Hit ") {
                Cheat.Print("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) aimed=" + hitboxName + "(" + predicthc.toString() + "%%) safety=" + safety + " (" + b + ") (" + g + ":" + exploit + ")\n");
                logs.push("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) aimed=" + hitboxName + "(" + predicthc.toString() + "%%) safety=" + safety + " (" + b + ") (" + g + ":" + exploit + ")")
            } else {
                Cheat.Print("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining) \n");
                logs.push("[" + shots.toString() + "] " + e + name + "'s " + HitgroupName(hitbox) + " for " + target_damage.toString() + " (" + target_health.toString() + " remaining)")
            }
            logsct.push(Globals.Curtime());
            logsalpha.push(255)
        }
    }
    if (shots == 99) {
        shots = 0
    } else {
        shots++
    }
}

function removelogs() {
    if (logs.length > 6) {
        logs.shift();
        logsct.shift();
        logsalpha.shift()
    }
    if (logsct[0] + 6.5 < Globals.Curtime()) {
        logsalpha[0] -= Globals.Frametime() * 600;
        if (logsalpha[0] < 0) {
            logs.shift();
            logsct.shift();
            logsalpha.shift()
        }
    }
}

function item_purchase() {
    Cheat.PrintColor([255, 128, 0, 255], "[Infernal tech] ");
    Cheat.Print(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid"))) + " bought " + Event.GetString("weapon") + "\n");
    logs.push(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid"))) + " bought " + Event.GetString("weapon") + "");
    logsct.push(Globals.Curtime());
    logsalpha.push(255)
}

function onDraw() {
    if (!World.GetServerString()) {
        return
    }
    var f = Render.AddFont("Lucida Console", 8, 0);
    for (i = 0; i < logs.length; i++) {
        Render.StringCustom(4, 4 + 13 * i, 0, logs[i], [0, 0, 0, logsalpha[i]], f);
        Render.StringCustom(3, 3 + 13 * i, 0, logs[i], [255, 255, 255, logsalpha[i]], f)
    }
    if (shots_fired > hits && (Globals.Curtime() - lastUpdate > 0.33)) {
        if (Globals.Curtime() - lastUpdate > 1) {
            shots_fired = 0;
            hits = 0
        }
        if (!logged) {
            var g = Globals.Tickcount() % 16;
            logged = true;
            var b = "true";
            var j = "?";
            if (safety == 0) {
                b = "false"
            }
            if (Entity.IsAlive(target) == false) {
                j = "death"
            } else {
                if (Entity.IsAlive(Entity.GetLocalPlayer()) == false) {
                    j = "dead"
                } else {
                    if (safety == true && predicthc < 76) {
                        j = "spread"
                    } else {
                        if (safety == true && predicthc > 76) {
                            j = "prediction error"
                        }
                    }
                }
            }
            var e = "";
            if (exploit == 2) {
                e += "T"
            }
            e += "B";
            if (UI.GetValue("Script items", "Logs")) {
                Cheat.PrintColor([255, 39, 39, 255], "[Infernal tech] ");
                Cheat.Print("[" + shots.toString() + "] Missed " + Entity.GetName(target) + "'s " + hitboxName + "(" + predicthc.toString() + "%%) due to " + j + ", safety=" + b + " (" + e + ") (" + g + ":" + exploit + ")\n");
                logs.push("[" + shots.toString() + "] Missed " + Entity.GetName(target) + "'s " + hitboxName + "(" + predicthc.toString() + "%%) due to " + j + ", safety=" + b + " (" + e + ") (" + g + ":" + exploit + ")")
            }
            logsct.push(Globals.Curtime());
            logsalpha.push(255);
            if (shots == 99) {
                shots = 0
            } else {
                shots++
            }
        }
    }
}

function onFSN() {
    if (Cheat.FrameStage() != 2) {
        return
    }
    var b = Entity.GetProp(Entity.GetLocalPlayer(), "DT_BaseEntity", "m_iTeamNum");
    if (!UI.GetValue("Script Items", "Model changer (based on team)")) {
        UI.SetEnabled("Script Items", "CT", 0);
        UI.SetEnabled("Script Items", "T", 0);
        return
    }
    UI.SetEnabled("Script Items", "T", misc);
    UI.SetEnabled("Script Items", "CT", misc);
    if (b == 2) {
        UI.SetValue("Misc", "SKINS", "Player", "Player model", UI.GetValue("Script Items", "T"))
    } else {
        if (b == 3) {
            UI.SetValue("Misc", "SKINS", "Player", "Player model", UI.GetValue("Script Items", "CT"))
        }
    }
}
var ct_lasttime = 0;

function ctag_render() {
    player = Entity.GetLocalPlayer();
    var b = parseInt((Globals.Curtime() * 3));
    if (Entity.IsAlive(player)) {
        if (b != ct_lasttime) {
            if (!UI.GetValue("Script items", "ClanTag")) {
                Local.SetClanTag("")
            }
            if (UI.GetValue("Script items", "ClanTag")) {
                switch ((b) % 33) {
                case 1:
                    Local.SetClanTag("");
                    break;
                case 2:
                    Local.SetClanTag("I");
                    break;
                case 3:
                    Local.SetClanTag("N");
                    break;
                case 4:
                    Local.SetClanTag("F");
                    break;
                case 5:
                    Local.SetClanTag("E");
                    break;
                case 6:
                    Local.SetClanTag("R");
                    break;
                case 7:
                    Local.SetClanTag("N");
                    break;
                case 8:
                    Local.SetClanTag("A");
                    break;
                case 9:
                    Local.SetClanTag("L");
                    break;
                case 10:
                    Local.SetClanTag("");
                    break;
                case 11:
                    Local.SetClanTag("T");
                    break;
                case 12:
                    Local.SetClanTag("E");
                    break;
                case 13:
                    Local.SetClanTag("C");
                    break;
                case 14:
                    Local.SetClanTag("H");
                    break;
                case 15:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 16:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 17:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 18:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 19:
                    Local.SetClanTag("Infernal tech");
                    break;
                case 20:
                    Local.SetClanTag("Infernal tec%");
                    break;
                case 21:
                    Local.SetClanTag("Infernal te&");
                    break;
                case 22:
                    Local.SetClanTag("Infernal t@");
                    break;
                case 23:
                    Local.SetClanTag("Infernal $");
                    break;
                case 24:
                    Local.SetClanTag("Inferna#");
                    break;
                case 25:
                    Local.SetClanTag("Infern*");
                    break;
                case 26:
                    Local.SetClanTag("Infer@");
                    break;
                case 27:
                    Local.SetClanTag("Infe?");
                    break;
                case 28:
                    Local.SetClanTag("Inf$");
                    break;
                case 29:
                    Local.SetClanTag("In^");
                    break;
                case 30:
                    Local.SetClanTag("I%");
                    break;
                case 31:
                    Local.SetClanTag("&");
                    break;
                case 32:
                    Local.SetClanTag("");
                    break
                }
            }
        }
        ct_lasttime = b
    }
}

function fps_boost() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Fps Boost")) {
        Convar.SetString("r_shadows", "0");
        Convar.SetString("cl_csm_static_prop_shadows", "0");
        Convar.SetString("cl_csm_shadows", "0");
        Convar.SetString("cl_csm_world_shadows", "0");
        Convar.SetString("cl_foot_contact_shadows", "0");
        Convar.SetString("cl_csm_viewmodel_shadows", "0");
        Convar.SetString("cl_csm_rope_shadows", "0");
        Convar.SetString("cl_csm_sprite_shadows", "0");
        Convar.SetString("violence_hblood", "0");
        Convar.SetString("r_3dsky", "0");
        Convar.SetString("r_drawrain", "0");
        Convar.SetString("r_drawropes", "0");
        Convar.SetString("r_drawsprites", "0");
        Convar.SetString("r_drawparticles", "0");
        Convar.SetString("fog_enable_water_fog", "0");
        Convar.SetString("func_break_max_pieces", "0");
        Convar.SetString("muzzleflash_light", "0");
        Convar.SetString("r_eyemove", "0");
        Convar.SetString("r_eyegloss", "0")
    } else {
        Convar.SetString("r_shadows", "1");
        Convar.SetString("cl_csm_static_prop_shadows", "1");
        Convar.SetString("cl_csm_shadows", "1");
        Convar.SetString("cl_csm_world_shadows", "1");
        Convar.SetString("cl_foot_contact_shadows", "1");
        Convar.SetString("cl_csm_viewmodel_shadows", "1");
        Convar.SetString("cl_csm_rope_shadows", "1");
        Convar.SetString("cl_csm_sprite_shadows", "1");
        Convar.SetString("violence_hblood", "1");
        Convar.SetString("r_3dsky", "1");
        Convar.SetString("r_drawrain", "1");
        Convar.SetString("r_drawropes", "1");
        Convar.SetString("r_drawsprites", "1");
        Convar.SetString("r_drawparticles", "1");
        Convar.SetString("fog_enable_water_fog", "1");
        Convar.SetString("func_break_max_pieces", "1");
        Convar.SetString("muzzleflash_light", "1");
        Convar.SetString("r_eyemove", "1");
        Convar.SetString("r_eyegloss", "1")
    }
}
Cheat.RegisterCallback("Draw", "anim_label");
Cheat.RegisterCallback("Draw", "menu");
Cheat.RegisterCallback("Draw", "for_tab");
Cheat.RegisterCallback("CreateMove", "wrap");
Cheat.RegisterCallback("weapon_fire", "shoot");
Cheat.RegisterCallback("CreateMove", "safeLegs");
Cheat.RegisterCallback("CreateMove", "safe_tab");
Cheat.RegisterCallback("CreateMove", "hp_tab");
Cheat.RegisterCallback("CreateMove", "maine");
Cheat.RegisterCallback("CreateMove", "fhead_tab");
Cheat.RegisterCallback("CreateMove", "force_head");
Global.RegisterCallback("player_connect_full", "player_connect");
Cheat.RegisterCallback("CreateMove", "onCM");
Cheat.RegisterCallback("CreateMove", "mindmg_tab");
Cheat.RegisterCallback("CreateMove", "awp_sp");
Cheat.RegisterCallback("CreateMove", "LagSync");
Cheat.RegisterCallback("CreateMove", "fs_tab");
Cheat.RegisterCallback("CreateMove", "freestand");
Cheat.RegisterCallback("CreateMove", "fl_tab");
Cheat.RegisterCallback("round_start", "roundstart");
Cheat.RegisterCallback("CreateMove", "set_fl");
Cheat.RegisterCallback("CreateMove", "exploit_conf");
Cheat.RegisterCallback("Draw", "autopeek");
Cheat.RegisterCallback("CreateMove", "ld");
Cheat.RegisterCallback("Unload", "unload");
Global.RegisterCallback("ragebot_fire", "invert");
Global.RegisterCallback("Draw", "menu_check");
Global.RegisterCallback("Draw", "indication");
Cheat.RegisterCallback("Draw", "ind");
Cheat.RegisterCallback("Draw", "main_color_vis");
Cheat.RegisterCallback("CreateMove", "fog");
Cheat.RegisterCallback("CreateMove", "fog_tab");
Global.RegisterCallback("Draw", "main_hotkeys");
Cheat.RegisterCallback("Draw", "watermark");
Global.RegisterCallback("Draw", "main_dt");
Cheat.RegisterCallback("Draw", "ind_vis");
Cheat.RegisterCallback("CreateMove", "on_cm");
Cheat.RegisterCallback("CreateMove", "ar_tab");
Cheat.RegisterCallback("Unload", "on_unload");
Global.RegisterCallback("ragebot_fire", "ragebot_fire");
Global.RegisterCallback("item_purchase", "item_purchase");
Global.RegisterCallback("player_hurt", "hitlog");
Global.RegisterCallback("Draw", "onDraw");
Global.RegisterCallback("Draw", "removelogs");
Cheat.RegisterCallback("FrameStageNotify", "onFSN");
Cheat.RegisterCallback("Draw", "ctag_render");
Cheat.RegisterCallback("Draw", "fps_boost");
UI.AddLabel(" <----------------------------------->");
пипец ты крутой кодер взломал скрипт пипец
Норм скрипт, ток фпс пофикси
 
Последнее редактирование:
Забаненный
Статус
Оффлайн
Регистрация
31 Дек 2018
Сообщения
442
Реакции[?]
212
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сверху Снизу