Исходник Onetap v3 keybinds

Пользователь
Статус
Оффлайн
Регистрация
8 Янв 2020
Сообщения
187
Реакции[?]
138
Поинты[?]
20K
otc3 keybinds

ss
onetap keybinds.png

C++:
void misc::keybind_list()
{
    if (!g_cfg.misc.keybind_list)
        return;

    static int width, height;
    m_engine()->GetScreenSize(width, height);

    int x{ 15 };
    int offset = 1;

    render::get().rect_filled(x + 10, height / 2 + 11, 200, 5 + 11, { 10, 10, 10, 150 });
    render::get().text(fonts[NAME], x + 10 + 76, height / 2 + 12, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "keybinds");

    render::get().gradient(x + 10, height / 2 + 10, 100, 2, Color(208, 167, 121), Color(247, 229, 181), GRADIENT_HORIZONTAL);
    render::get().gradient(x + 110, height / 2 + 10, 100, 2, Color(247, 229, 181), Color(208, 167, 121), GRADIENT_HORIZONTAL);

    if (misc::get().double_tap_key)
    {
        if (key_binds::get().get_key_bind_mode(2) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] double tap");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] double tap");
        offset = offset + 1;
    }

    if (misc::get().hide_shots_key)
    {
        if (key_binds::get().get_key_bind_mode(12) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] hide shots");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] hide shots");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(4 + g_ctx.globals.current_weapon))
    {
        if (key_binds::get().get_key_bind_mode(4 + g_ctx.globals.current_weapon) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] min damage override");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] min damage override");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(22))
    {
        if (key_binds::get().get_key_bind_mode(22) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] body aim");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] body aim");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(3))
    {
        if (key_binds::get().get_key_bind_mode(3) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] safe points");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] safe points");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(21))
    {
        if (key_binds::get().get_key_bind_mode(21) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] slow walk");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] slow walk");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(20))
    {
        if (key_binds::get().get_key_bind_mode(20) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] fake duck");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] fake duck");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(19))
    {
        if (key_binds::get().get_key_bind_mode(19) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] edge jump");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] edge jump");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(18))
    {
        if (key_binds::get().get_key_bind_mode(18) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] auto peek");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] auto peek");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(16))
    {
        if (key_binds::get().get_key_bind_mode(16) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] anti-aim inverter");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] anti-aim inverter");
        offset = offset + 1;
    }
}
 
Пользователь
Статус
Оффлайн
Регистрация
18 Май 2020
Сообщения
188
Реакции[?]
71
Поинты[?]
0
Shit code, at least do something that don't hurt my eyes. I will leave a reaction, u looks hangry for a like.
 
Последнее редактирование:
Эксперт
Статус
Оффлайн
Регистрация
13 Сен 2020
Сообщения
1,415
Реакции[?]
713
Поинты[?]
10K
otc3 keybinds

ss
Посмотреть вложение 188419

C++:
void misc::keybind_list()
{
    if (!g_cfg.misc.keybind_list)
        return;

    static int width, height;
    m_engine()->GetScreenSize(width, height);

    int x{ 15 };
    int offset = 1;

    render::get().rect_filled(x + 10, height / 2 + 11, 200, 5 + 11, { 10, 10, 10, 150 });
    render::get().text(fonts[NAME], x + 10 + 76, height / 2 + 12, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "keybinds");

    render::get().gradient(x + 10, height / 2 + 10, 100, 2, Color(208, 167, 121), Color(247, 229, 181), GRADIENT_HORIZONTAL);
    render::get().gradient(x + 110, height / 2 + 10, 100, 2, Color(247, 229, 181), Color(208, 167, 121), GRADIENT_HORIZONTAL);

    if (misc::get().double_tap_key)
    {
        if (key_binds::get().get_key_bind_mode(2) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] double tap");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] double tap");
        offset = offset + 1;
    }

    if (misc::get().hide_shots_key)
    {
        if (key_binds::get().get_key_bind_mode(12) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] hide shots");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] hide shots");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(4 + g_ctx.globals.current_weapon))
    {
        if (key_binds::get().get_key_bind_mode(4 + g_ctx.globals.current_weapon) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] min damage override");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] min damage override");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(22))
    {
        if (key_binds::get().get_key_bind_mode(22) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] body aim");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] body aim");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(3))
    {
        if (key_binds::get().get_key_bind_mode(3) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] safe points");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] safe points");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(21))
    {
        if (key_binds::get().get_key_bind_mode(21) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] slow walk");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] slow walk");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(20))
    {
        if (key_binds::get().get_key_bind_mode(20) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] fake duck");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] fake duck");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(19))
    {
        if (key_binds::get().get_key_bind_mode(19) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] edge jump");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] edge jump");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(18))
    {
        if (key_binds::get().get_key_bind_mode(18) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] auto peek");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] auto peek");
        offset = offset + 1;
    }

    if (key_binds::get().get_key_bind_state(16))
    {
        if (key_binds::get().get_key_bind_mode(16) == HOLD)
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] anti-aim inverter");
        else
            render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] anti-aim inverter");
        offset = offset + 1;
    }
}
говнокод
 
..................................................
Участник
Статус
Оффлайн
Регистрация
13 Авг 2020
Сообщения
990
Реакции[?]
249
Поинты[?]
25K
шок, по частям сливают вантап
 
Начинающий
Статус
Оффлайн
Регистрация
23 Окт 2020
Сообщения
181
Реакции[?]
12
Поинты[?]
4K
Сверху Снизу