Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
1,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. void FakeDuck() {
  2. static bool counter = false;
  3. static int cnt = 0;
  4. static bool do_ = false;
  5. bool once = false;//made by rev
  6. if (GetAsyncKeyState(c_config::get().fakeduck_bind))
  7.  
  8. {
  9. Globals::LocalPlayer->GetBasePlayerAnimState()->m_fDuckAmount = 1.f;
  10. Globals::bSendPacket = false;
  11. g::FakelagShouldLag = false;
  12.  
  13. if (cnt % 14 == 0)
  14. do_ = true;
  15. else if (cnt % 14 == 6)
  16. Globals::bSendPacket = true;
  17. else if (cnt % 14 == 7)
  18. do_ = false;//made by rev
  19.  
  20. if (do_)
  21. Globals::pCmd->buttons |= IN_DUCK;
  22. else
  23. Globals::pCmd->buttons &= ~IN_DUCK;
  24.  
  25. cnt++;
  26. }
  27. else {
  28. do_ = false;
  29. cnt = 0;
  30. g::FakelagShouldLag = true;
  31. }
  32. }//made by rev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement