Advertisement
Guest User

Scout bunnyhop fix by Gir489

a guest
Dec 17th, 2011
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. static bool bJumpReleased;
  2. if (pCommand->buttons & IN_JUMP)
  3. {
  4. if (!bJumpReleased)
  5. {
  6. if( !(*reinterpret_cast<int*>((DWORD)pBaseLocalPlayer+0x2FC) & FL_ONGROUND) )
  7. {
  8. pCommand->buttons &= ~IN_JUMP;
  9. }
  10. }
  11. else
  12. {
  13. bJumpReleased = false;
  14. }
  15. }
  16. else if (!bJumpReleased)
  17. {
  18. bJumpReleased = true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement