Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. if (rotate) {
  2. if (rotate == 1) {
  3. if (jitter_side == 1)
  4. Globals::pCmd->viewangles.y += inverse_desync;
  5. else
  6. Globals::pCmd->viewangles.y += desync - 190.0f;
  7. }
  8. }
  9. else {
  10. if (jitter_side == 1)
  11. Globals::pCmd->viewangles.y += desync - 190.0f;
  12. else
  13. Globals::pCmd->viewangles.y += inverse_desync;
  14. //g_Context->m_bShouldChoke = true;
  15. }
  16.  
  17. if (++m_iRotate >= 3)
  18. m_iRotate = 0;
  19. }
  20. else {
  21. #if 1
  22. float stretch = Globals::pCmd->viewangles.y;
  23. if (type == Stretch)
  24. stretch -= 90.0f;
  25. else
  26. stretch += 90.0f;
  27. stretch = AngleNormalize(stretch);
  28. if (DesyncRotate(stretch, type == Stretch))
  29. return;
  30. #endif
  31.  
  32. float desync = GetMaxDelta(Globals::LocalPlayer->AnimState());
  33. float balance = 1.0f;
  34. if (type == Balance)
  35. balance = -1.0f;
  36.  
  37. if (lbyUpdate()) {
  38. /*if (!g_Context->m_bShouldChoke && g_ClientState->chokedcommands >= 2) {
  39. Globals::pCmd->viewangles.y = AngleNormalize(Globals::pCmd->viewangles.y);
  40. return;
  41. }*/
  42.  
  43. if (type == Still)
  44. Globals::pCmd->viewangles.y -= 100.0f;
  45. else
  46. Globals::pCmd->viewangles.y += (balance * 120.0f);
  47. }
  48. else if (type != Still) {
  49. // lby breaker
  50. Globals::pCmd->viewangles.y -= (desync + 30.0f) * balance;
  51. }
  52.  
  53. // g_Context->m_bShouldChoke = true;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement