Трахов
-
Автор темы
- #1
це говно или нет?
C++:
void misc::AutoCrouch(CUserCmd* cmd)
{
if (!g_Options.fakeduck)
return;
if (!g_ClientState || !cmd)
return;
//if (!g_ClientState->m_processing || !m_fake_duck)
//return;
if (GetAsyncKeyState(g_Options.fakeduck_bind))
{
// ensure infinite duck.
cmd->buttons |= IN_BULLRUSH;
// unduck if we are choking 7 or less ticks.
if (g_ClientState->m_nChokedCmds <= 7) {
cmd->buttons &= ~IN_DUCK;
}
// duck if we are choking more than 7 ticks.
else {
cmd->buttons |= IN_DUCK;
}
}
}