Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static bool bJumpReleased;
- if (pCommand->buttons & IN_JUMP)
- {
- if (!bJumpReleased)
- {
- if( !(*reinterpret_cast<int*>((DWORD)pBaseLocalPlayer+0x2FC) & FL_ONGROUND) )
- {
- pCommand->buttons &= ~IN_JUMP;
- }
- }
- else
- {
- bJumpReleased = false;
- }
- }
- else if (!bJumpReleased)
- {
- bJumpReleased = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement