void TickManipulation() {
if (c_config::get().tick_bind) {
if (!Globals::LocalPlayer->IsAlive() || !g_pEngine->IsInGame())
return;
if (GetAsyncKeyState(c_config::get().tick_bind)) {
static int choked = 0;
choked = choked > 7 ? 0 : choked + 1;
Globals::pCmd->forwardmove = choked < 2 || choked > 5 ? 0 : Globals::pCmd->forwardmove;
Globals::pCmd->sidemove = choked < 2 || choked > 5 ? 0 : Globals::pCmd->sidemove;
Globals::bSendPacket = choked < 1;
Globals::pCmd->tick_count = INT_MAX;
}
}
}
void TickFreeze() {
if (c_config::get().tickfreeze_bind) {
if (!Globals::LocalPlayer->IsAlive() || !g_pEngine->IsInGame())
return;
if (GetAsyncKeyState(c_config::get().tickfreeze_bind)) {
static int choked = 0;
choked = choked > 7 ? 0 : choked + 1;
Globals::bSendPacket = 5 + choked < 1;
Globals::pCmd->tick_count = INT_MAX;
}
}
}