Вопрос How i add Fake flick to my cheat (LW)

primordial
Пользователь
Статус
Оффлайн
Регистрация
4 Сен 2020
Сообщения
361
Реакции[?]
128
Поинты[?]
42K
C++:
void antiaim::fakeflick(CUserCmd* m_pcmd)
{
    if (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_FLASHBANG || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_HEGRENADE || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_SMOKEGRENADE || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_MOLOTOV || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_DECOY || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_INCGRENADE)
        return;

    if (!g_cfg.antiaim.flick)
        return;

    if (!g_ctx.local()->is_alive())
        return;

    if (m_globals()->m_tickcount % g_cfg.antiaim.flicktick - 1 == 0)
        g_ctx.globals.tickbase_shift++;

    if (m_globals()->m_tickcount % g_cfg.antiaim.flicktick == 0) {
        flicker = true;
        int angle = flip == true ? -90 : 90;
        m_pcmd->m_viewangles.y = m_pcmd->m_viewangles.y + angle;
    }
    else {
        flicker = false;
    }
}
 
Начинающий
Статус
Оффлайн
Регистрация
9 Ноя 2020
Сообщения
153
Реакции[?]
7
Поинты[?]
0
C++:
void antiaim::fakeflick(CUserCmd* m_pcmd)
{
    if (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_FLASHBANG || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_HEGRENADE || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_SMOKEGRENADE || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_MOLOTOV || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_DECOY || g_ctx.globals.weapon->m_iItemDefinitionIndex() == WEAPON_INCGRENADE)
        return;

    if (!g_cfg.antiaim.flick)
        return;

    if (!g_ctx.local()->is_alive())
        return;

    if (m_globals()->m_tickcount % g_cfg.antiaim.flicktick - 1 == 0)
        g_ctx.globals.tickbase_shift++;

    if (m_globals()->m_tickcount % g_cfg.antiaim.flicktick == 0) {
        flicker = true;
        int angle = flip == true ? -90 : 90;
        m_pcmd->m_viewangles.y = m_pcmd->m_viewangles.y + angle;
    }
    else {
        flicker = false;
    }
}
if (m_globals()->m_tickcount % g_cfg.antiaim.flicktick - 1 == 0)
g_ctx.globals.tickbase_shift++;
буман буман, мла
 
Сверху Снизу