static int lastDoubleTapInTickcount = 0;
int doubletapTickcountDelta = INTERFACES::Globals->tickcount - lastDoubleTapInTickcount;
if (cmd->buttons & IN_ATTACK && doubletapTickcountDelta >= TIME_TO_TICKS(0.2f) && SETTINGS::settings.doubletap)
{
lastDoubleTapInTickcount = INTERFACES::Globals->tickcount;
GLOBAL::m_nTickbaseShift = TIME_TO_TICKS(0.2f);
GLOBAL::disable_fakelag = true;
}