
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;
}
}
}
int BulletsToSkip = 3;
if (LocalPlayer->GetShotsFired() <= BulletsToSkip)
return;