Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by Laced ( 17 years ago )
float g_TickCount;
void cAimbot::CalculateTickCount() // Calculate the TickRate for our prediction
{
static int TickCounter;
static float TickLastTime;
static float TickNowTime;
static float TickTotalTime;
if ( TickCounter == 20 )
{
float TickCount = TickCounter / (TickTotalTime/1000);
if ( TickCount > 1 && TickCount < 50 )
g_TickCount = 33.33f;
else if ( TickCount > 50 && TickCount < 80 )
g_TickCount = 66.66f;
else
g_TickCount = 100.0f;
TickCounter = 0;
TickTotalTime = 0;
}
TickCounter++;
TickLastTime = TickNowTime;
TickNowTime = GetTickCount();
float TickDiffTime = TickNowTime - TickLastTime;
TickTotalTime += TickDiffTime;
}
Revise this Paste