Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Override(const CRecvProxyData *pData, void *pStruct, void *pOut)
- {
- static Vector vLast[65];
- static bool bShotLastTime[65];
- static bool bJitterFix[65];
- float enemyLBYDelta[65];
- float *flPitch = (float*)((DWORD)pOut - 4);
- float flYaw = pData->m_Value.m_Float;
- bool bHasAA;
- bool bSpinbot;
- int ResolverStage[65];
- static float OldLowerBodyYaws[65];
- static float OldYawDeltas[65];
- static float oldTimer[65];
- static bool isLBYPredictited[65];
- IClientEntity* player = (IClientEntity*)pStruct;
- IClientEntity* pLocal = Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
- INetChannelInfo *nci = Interfaces::Engine->GetNetChannelInfo();
- if (!player || !pLocal || pLocal == player || player->GetTeamNum() == pLocal->GetTeamNum()) {
- return;
- }
- if (OldLowerBodyYaws[player->GetIndex()] == player->GetLowerBodyYaw()) {
- if (oldTimer[player->GetIndex()] + 1.1 >= Interfaces::Globals->curtime) {
- oldTimer[player->GetIndex()] = Interfaces::Globals->curtime;
- isLBYPredictited[player->GetIndex()] = true;
- }
- else {
- isLBYPredictited[player->GetIndex()] = false;
- }
- }
- else if (player->IsDormant() || !player->IsAlive()) {
- oldTimer[player->GetIndex()] = -1;
- isLBYPredictited[player->GetIndex()] = false;
- }
- else {
- OldLowerBodyYaws[player->GetIndex()] = player->GetLowerBodyYaw();
- oldTimer[player->GetIndex()] = Interfaces::Globals->curtime - nci->GetAvgLatency(FLOW_OUTGOING);
- isLBYPredictited[player->GetIndex()] = false;
- }
- // Test To predict LBY
- int AimbotTargetSide = Menu::Window.RageBotTab.AimbotTargetSide.GetKey();
- if (AimbotTargetSide >= 0 && GUI.GetKeyState(AimbotTargetSide))
- {
- flYaw = flYaw + 180;
- *(float*)(pOut) = flYaw;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement