Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if (!(iFlags & FL_ONGROUND))
  2. {
  3. if (tabs1.findbutton("Auto Strafer")->on&&!tele)
  4. {
  5. auto flYawBhop = 0.f;
  6. if (pLocalEntity->GetVelocity().Length() > 50.f)
  7. {
  8. auto x = 30.f, y = pLocalEntity->GetVelocity().Length(), z = 0.f, a = 0.f;
  9.  
  10. z = x / y;
  11. z = fabsf(z);
  12.  
  13. a = x * z;
  14.  
  15. flYawBhop = a;
  16. }
  17.  
  18. if (fakestrafeb)
  19. {
  20. if (!(pCmd->mousedx > 0))
  21. fakeangle.y += flYawBhop;
  22. pCmd->sidemove = 250;
  23. }
  24. else
  25. {
  26. if (!(pCmd->mousedx < 0))
  27. fakeangle.y -= flYawBhop;
  28. pCmd->sidemove = -250;
  29. }
  30. fakestrafeb = !fakestrafeb;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement