RapidFire help with existing SRC

Posts 1–15 of 32 · Page 1 of 3
RapidFire help with existing SRC
ok awhile ago i used to hack COD4 and this was something i found back then that worked.
Code:
void AtomFire()
{	
		if (AutoFireStage2)
		{
			if(clock() - AutoFireTMR > 55)
			{
				{
					mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); // 
					mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); //
				    AutoFireTMR = clock();
				}
			}
		}
}
i also added it so it detects the right mouse button held down. At the current setting it keeps shooting but slow if i put to 100 it shoots a little faster but not much and i go as high as 450 before it changes speeds again which at that point it slows down
I have tried every number from 55 - 0 and nothing works below 55 it wont do anything.
Im calling this through (IsMenuOn) when the menu is off this enables the Rapid fire if it is enabled in the menu and right mouse button is pressed.

Code:
if (AutoFire)
			 {
				//Check if our right mouse is down dont forget 0x80 As Button is held down and keep firing the mouse click event
					if(GetAsyncKeyState(VK_RBUTTON)  & 0x8000)AutoFireStage2 = true;
					else AutoFireStage2 = false;
			 }
any idea what im doing wrong or what i could do to improve the speed. I know there is a Rapid fire function in MW3 but i dont know how to use it so im trying to make one that will acrross most games.
Try changing 0x8000 to 0x80?

Also, if you wanted to know:

Code:
bool isFiring;

void FromWritePacketHook()
{

    usercmd_t* cmd = GetUserCmd( Input_t->currentCmd );
    if(GetAsyncKeyState(VK_END))
    {
          isFiring = !isFiring;
          if(isFiring) cmd->Button |= ( 1 << 0 );
          else cmd->Button &= ~ ( 1 << 0 );
    }
}
Nothing's faster than this. Rendering maybe but not Client-Server side.
Quote Originally Posted by Kenshin13 View Post
Try changing 0x8000 to 0x80?

Also, if you wanted to know:

Code:
bool isFiring;

void FromWritePacketHook()
{

    usercmd_t* cmd = GetUserCmd( Input_t->currentCmd );
    if(GetAsyncKeyState(VK_END))
    {
          isFiring = !isFiring;
          if(isFiring) cmd->Button |= ( 1 << 0 );
          else cmd->Button &= ~ ( 1 << 0 );
    }
}
Nothing's faster than this. Rendering maybe but not Client-Server side.
Missing & 1 (or 0x1 if , you like hex) in GetAsyncKeyState
Quote Originally Posted by mwxplayer View Post
Missing & 1 (or 0x1 if , you like hex) in GetAsyncKeyState
No I am not.....
Code:
void Aim :: cmd_AutoShoot()
{
	input_t2 * input = ( input_t2* )0x010638A4;
    usercmd_t* cmd = input->GetUserCmd( input->currentCmdNum );
	if(Frame - FrameShot > 5)
	{
		cmd->buttons &= ~ BUTTON_FIRE;
		FrameShot = Frame;
	}else
			cmd->buttons |= BUTTON_FIRE;
	

}
so Useful for me :
3 Bullets = 3 Kills


I LOVE USERCMD_T
PS : 6 Moabs :O
@Kenshin13 @mwxplayer
neither one is working for me the gun shows that its shooting fast but no bullets or sound lol WTH
Quote Originally Posted by XiAtomikiX View Post
@Kenshin13 @mwxplayer
neither one is working for me the gun shows that its shooting fast but no bullets or sound lol WTH
Using the current usercmd?
Quote Originally Posted by Kenshin13 View Post
Using the current usercmd?
well duh its how i use autoKnife,and autoshoot for the aimbot lol
Quote Originally Posted by XiAtomikiX View Post
well duh its how i use autoKnife,and autoshoot for the aimbot lol
But you just said you can't get Auto Shoot to work...
Quote Originally Posted by Kenshin13 View Post
But you just said you can't get Auto Shoot to work...
no i have Auto Shoot i was trying to get Rapid Fire. lol I know they are coded the same but i wanted to be able to enable it anytime
its not auto shoot just rapid fire you hold down the Right Mouse button and it shoots rapidly until you release button
nvm i fixed it lol i had to add
Code:
pInput->FireWeapon.wasPressed = 1;
Quote Originally Posted by XiAtomikiX View Post
nvm i fixed it lol i had to add
Code:
pInput->FireWeapon.wasPressed = 1;
It's useless if you do that, might as well do this from a normal thread.
The way I did it(above) makes your bullet count decrease while the gun remains still. So, people would see me (using Silent Aim) with this and kill them without shooting or aiming at them :3
Quote Originally Posted by Kenshin13 View Post
It's useless if you do that, might as well do this from a normal thread.
The way I did it(above) makes your bullet count decrease while the gun remains still. So, people would see me (using Silent Aim) with this and kill them without shooting or aiming at them :3
ok well get on skype or something then b.c i dont understand why its not working.
Quote Originally Posted by XiAtomikiX View Post
ok well get on skype or something then b.c i dont understand why its not working.
Asks me to come one skype.
Not online...


Ok.
Quote Originally Posted by Kenshin13 View Post
Asks me to come one skype.
Not online...


Ok.
i am online o wait nvm it was invisible
So how do we run that script in iw4m? :O
Posts 1–15 of 32 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us