Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (GetAsyncKeyState(c_config::get().doubletap_bind) && (Globals::pCmd->buttons & IN_ATTACK))
- {
- if (Globals::nSinceUse++ < 3)
- Globals::m_nTickbaseShift = TIME_TO_TICKS(2.0f);
- static int choked = 0;
- static int MinimumVelocity;
- choked = choked > 7 ? 0 : choked + 1;
- Globals::pCmd->sidemove = choked < 2 || choked > 5 ? 0 : Globals::pCmd->sidemove;
- Globals::pCmd->forwardmove = choked < 2 || choked > 5 ? 0 : Globals::pCmd->forwardmove;
- Globals::needtoshift = true;
- g_Misc.Choker(6);
- int ticks1 = 6; // Получение кол-ва пакетов, которые нужно чокнуть
- int choked1 = g_pEngine->GetNetChannel()->m_nChokedPackets; // Получаю чокнутые пакеты
- bool should_duck = choked >= (ticks1 / 2); // Проверка на то, нужно ли нам сесть
- }
- else {
- Globals::nSinceUse = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement