-
Автор темы
- #1
--update added a custom slider and a checkbox to turn off for crouching
C++:
void antiaim::pitch_exploit(CUserCmd* m_pcmd)
{
if (!cfg::g_cfg.antiaim.pitch_exploit)
return;
if (g_ctx.globals.weapon->is_grenade())
return;
if (m_pcmd->m_buttons & IN_USE)
return;
if (!cfg::g_cfg.antiaim.pitch_exploit_crouch) {
if (g_ctx.local()->m_fFlags() & FL_DUCKING)
return;
}
float pitch = 89.0f;
if (m_pcmd->m_tickcount % cfg::g_cfg.antiaim.pitch_exploit_speed - 1 == 0)
pitch = -89.0f;
m_pcmd->m_viewangles.x = pitch;
}
Последнее редактирование: