Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. void DoBhop(CUserCmd* cmd)
  2. {
  3.  
  4. if (g_LocalPlayer->m_nMoveType() == MOVETYPE_NOCLIP || g_LocalPlayer->m_nMoveType() == MOVETYPE_LADDER)
  5. return;
  6.  
  7. if (cmd->buttons & IN_JUMP && !(g_LocalPlayer->m_fFlags() & FL_ONGROUND))
  8. cmd->buttons &= ~IN_JUMP;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement