SHARE
TWEET

Untitled

a guest Aug 17th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void FakeDuck( ) const
  2.     {
  3.         if ( !( g::pLocalEntity->GetFlags( ) & FL_ONGROUND ) )
  4.             return;
  5.  
  6.         if ( !g_Menu.Config.FakeDuckHAH )
  7.             return;
  8.  
  9.         if ( !GetAsyncKeyState( g_Menu.Config.FakeDuckHAH_Key ) )
  10.             return;
  11.  
  12.         g::pCmd->buttons |= IN_BULLRUSH;
  13.  
  14.         auto MaxProcessTicks = g_Menu.Config.MaxProcessTicks == 0 ? 57 : g_Menu.Config.MaxProcessTicks;
  15.  
  16.         if ( g_pClientState->m_nChokedCommands <= (MaxProcessTicks - 8))
  17.         {
  18.             g::pCmd->buttons &= ~IN_DUCK;
  19.         }
  20.         else
  21.         {
  22.             g::pCmd->buttons |= IN_DUCK;
  23.         }
  24.  
  25.         if ( g_pClientState->m_nChokedCommands < (MaxProcessTicks) )
  26.         {
  27.             g::bSendPacket = false;
  28.         }
  29.         else
  30.         {
  31.             g::bSendPacket = true;
  32.         }
  33.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top