Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. if (Menu::Window.RageBotTab.AimbotResolver.GetIndex() == 0)
  2. {
  3. int i = Interfaces::EntList->GetMaxEntities();
  4. static float backtrack = g_BacktrackHelper->PlayerRecord[pEntity->GetIndex()].EyeAngles.y;
  5. static float lowerDelta[64];
  6. static float lastYaw[64];
  7.  
  8. float curLower = pEntity->GetLowerBodyYaw();
  9. float curYaw = pEntity->GetEyeAnglesXY()->y;
  10.  
  11. lowerDelta[i] = curYaw - curLower;
  12.  
  13.  
  14. if (fabs(lowerDelta[i]) > 15.f) {
  15. if (IsMoving) {
  16. pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw();
  17. backtrack;
  18. }
  19. else {
  20. if (curYaw != lastYaw[i]) {
  21. pEntity->GetEyeAnglesXY()->y += lowerDelta[i];
  22. lastYaw[i] = curYaw;
  23. }
  24. }
  25. }
  26. }
  27. LowerBodyYawFix(pEntity);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement