Advertisement
Greenix

[CS:GO] LowerBody based AntiAim

Aug 18th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // LowerBody based AntiAim
  2.  
  3. static bool flip = false;
  4. static bool flip2 = false;
  5. float flip2angle = 0.f;
  6. if (pLocal->lowerbody() != G::MyLowerBody) //If lowerbody updates and is different than previous change the antiaim
  7. flip2 = !flip2;
  8. if (flip2)
  9. flip2angle = 180.f;
  10. else
  11. flip2angle = 0.f;
  12.  
  13.  
  14. if (flip)
  15. {
  16. pCmd->viewangles.y += 90.0 + flip2angle;
  17. G::bSendPacket = false;
  18. }
  19. else
  20. {
  21. pCmd->viewangles.y += -90.0 + flip2angle;
  22. G::bSendPacket = true;
  23. }
  24. G::MyLowerBody = pLocal->lowerbody();
  25. flip = !flip;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement