Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. void Override(const CRecvProxyData *pData, void *pStruct, void *pOut)
  2. {
  3. static Vector vLast[65];
  4. static bool bShotLastTime[65];
  5. static bool bJitterFix[65];
  6. float enemyLBYDelta[65];
  7. float *flPitch = (float*)((DWORD)pOut - 4);
  8. float flYaw = pData->m_Value.m_Float;
  9. bool bHasAA;
  10. bool bSpinbot;
  11. int ResolverStage[65];
  12. static float OldLowerBodyYaws[65];
  13. static float OldYawDeltas[65];
  14. static float oldTimer[65];
  15. static bool isLBYPredictited[65];
  16. IClientEntity* player = (IClientEntity*)pStruct;
  17. IClientEntity* pLocal = Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
  18. INetChannelInfo *nci = Interfaces::Engine->GetNetChannelInfo();
  19. if (!player || !pLocal || pLocal == player || player->GetTeamNum() == pLocal->GetTeamNum()) {
  20. return;
  21. }
  22.  
  23.  
  24. if (OldLowerBodyYaws[player->GetIndex()] == player->GetLowerBodyYaw()) {
  25. if (oldTimer[player->GetIndex()] + 1.1 >= Interfaces::Globals->curtime) {
  26. oldTimer[player->GetIndex()] = Interfaces::Globals->curtime;
  27. isLBYPredictited[player->GetIndex()] = true;
  28.  
  29. }
  30. else {
  31. isLBYPredictited[player->GetIndex()] = false;
  32. }
  33. }
  34. else if (player->IsDormant() || !player->IsAlive()) {
  35. oldTimer[player->GetIndex()] = -1;
  36. isLBYPredictited[player->GetIndex()] = false;
  37. }
  38. else {
  39. OldLowerBodyYaws[player->GetIndex()] = player->GetLowerBodyYaw();
  40. oldTimer[player->GetIndex()] = Interfaces::Globals->curtime - nci->GetAvgLatency(FLOW_OUTGOING);
  41. isLBYPredictited[player->GetIndex()] = false;
  42. }
  43.  
  44. // Test To predict LBY
  45. int AimbotTargetSide = Menu::Window.RageBotTab.AimbotTargetSide.GetKey();
  46. if (AimbotTargetSide >= 0 && GUI.GetKeyState(AimbotTargetSide))
  47. {
  48.  
  49. flYaw = flYaw + 180;
  50. *(float*)(pOut) = flYaw;
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement