HelpπŸ™‚ shoot delay method externally

Posts 1–7 of 7 Β· Page 1 of 1
πŸ™‚ shoot delay method externally
I need to create shoot delay for my aimbot.
it is necessary that the shot occurred a certain number of times. How to realise it?
Something like this should work just fine ( untested, but should work ):

Code:
void ShootBurst( unsigned int NumberOfShots, unsigned int DelayInMs )
{
      unsigned int TimeOfLastShot = 0;
      unsigned int CurrentTick = 0;

      while( NumberOfShots )
      {
            CurrentTick = GetTickCount( );
            if ( CurrentTick - TimeOfLastShot >= DelayInMs )
            {
                  Shoot( );
                  TimeOfLastShot = CurrentTick;
                  --NumberOfShots;
            }
      }
}
Quote Originally Posted by WasserEsser View Post
Something like this should work just fine ( untested, but should work ):

Code:
void ShootBurst( unsigned int NumberOfShots, unsigned int DelayInMs )
{
      unsigned int TimeOfLastShot = 0;
      unsigned int CurrentTick = 0;

      while( NumberOfShots )
      {
            CurrentTick = GetTickCount( );
            if ( TimeOfLastShot + CurrentTick >= DelayInMs )
            {
                  Shoot( );
                  TimeOfLastShot = CurrentTick;
                  --NumberOfShots;
            }
      }
}
okay, but how i can to intercept shots in the game?
Quote Originally Posted by SP1K3CSGO View Post
okay, but how i can to intercept shots in the game?
I don't understand what you mean.
Quote Originally Posted by SP1K3CSGO View Post
okay, but how i can to intercept shots in the game?
iShotsFired? After a certain amount of bullets, delay the next bullet?
Check if shots fired is less than your set value, then don't aim.

In your aim function:
Code:
int BulletsToSkip = 3;

if (LocalPlayer->GetShotsFired() <= BulletsToSkip)
        return;
This only works with automatic weapons.
To get shots fired, find the NetVar "m_iShotsFired".
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 1–7 of 7 Β· Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us