Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (g_Menu.Config.doubletap)
- {
- static int lastDoubleTapInTickcount = 0;
- if (GetAsyncKeyState(g_Menu.Config.doubletapkey) )
- {
- int doubletapTickcountDelta = g_pGlobalVars->tickcount - lastDoubleTapInTickcount;
- if (doubletapTickcountDelta >= TIME_TO_TICKS(0.2f) && g::pCmd->buttons & IN_ATTACK) {
- lastDoubleTapInTickcount = g_pGlobalVars->tickcount;
- g::bSendPacket = true;
- g::m_nTickbaseShift = 14;
- }
- }
- }
- }
- void AntiAim::doubletap(CUserCmd*cmd)
- {
- auto local_player = g_pEntityList->GetClientEntity(g_pEngine->GetLocalPlayer());
- if (GetAsyncKeyState('I'))
- {
- static bool counter = false;
- static int counters = 0;
- //local_player->CL_SendMove();
- if (counters == 2)
- {
- counters = 0;
- counter = !counter;
- }
- counters++;
- if (counter)
- {
- cmd->buttons &= ~IN_ATTACK;
- g::m_nTickbaseShift = 100;
- }
- else
- {
- if (!g_pClientState->chokedcommands)
- {
- cmd->buttons |= IN_ATTACK;
- g::m_nTickbaseShift = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement