No Recoil Source Code Not Working

Posts 16–26 of 26 · Page 2 of 2
Shouldn''t it be: *(float*)(dwPlayerPtr + ADR_SPREAD) = 0;
Quote Originally Posted by AskAndHelp View Post
Shouldn''t it be: *(float*)(dwPlayerPtr + ADR_SPREAD) = 0;
Nope, just tried and it crashed WarRock when I pressed F3...
Quote Originally Posted by zooSz View Post
Yh.. But how? :P

EDIT:

Also, why doesn't this make NoSpread/NoRecoil stick?

Code:
//No Recoil/Spread
void NoRecoil()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr!=0){
// on
if(GetAsyncKeyState(VK_F3)){
*(float*)ADR_Spread = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
// off
if(GetAsyncKeyState(VK_F4)){
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 1;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 1;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 1;
*(float*) ADR_Spread = 1;}
}
}
Its like it only stays on while I hold in F3 :S
Norecoil should be stickied this way, but not NoSpread. As you said, it will only works when pressing F3.

Make 2 functions for it ( so user can choose )

Code:
//You know the noRecoil code

....

// NoSpread
// Here you have to bool a the state
Under you defines, out of a function, define a variable like this :
bool NoSpreadState = false;


// Then
void NoSpread()
{
if(GetAsyncKeyState(VK_F3))
NoSpreadState = true; // Activate
if(GetAsyncKeyState(VK_F4))
NoSpreadState = false; // Desactivate

// Then you check its value
if(NoSpreadState == true)
*(float*)ADR_Spread = 0;

else
// Do Nothing because it will came to the normal state automatic.
}
Then you're done
Quote Originally Posted by larta View Post
Norecoil should be stickied this way, but not NoSpread. As you said, it will only works when pressing F3.

Make 2 functions for it ( so user can choose )

Code:
//You know the noRecoil code

....

// NoSpread
// Here you have to bool a the state
Under you defines, out of a function, define a variable like this :
bool NoSpreadState = false;


// Then
void NoSpread()
{
if(GetAsyncKeyState(VK_F3))
NoSpreadState = true; // Activate
if(GetAsyncKeyState(VK_F4))
NoSpreadState = false; // Desactivate

// Then you check its value
if(NoSpreadState == true)
*(float*)ADR_Spread = 0;

else
// Do Nothing because it will came to the normal state automatic.
}
Then you're done
Ok thanks

But to show its working doesn't the cross hair like stay still in the middle and doesn't expand or whatever? Because when i toggled between F3 and F4 the cross hair looked the same :S
Quote Originally Posted by zooSz View Post
Ok thanks

But to show its working doesn't the cross hair like stay still in the middle and doesn't expand or whatever? Because when i toggled between F3 and F4 the cross hair looked the same :S
Yeh it's supposed to stay as you said.

Did you puted the hack function into the main ? ^^

Btw this is how I done and it works. Check again your code, if you defined the bool variable out of every function, as defines and others.
Also check your addys ?


EDIT : To be sure of addys, just don't make a hotkey.
Just do :
Code:
void NoSpread()
{
*(float*)ADR_Spread = 0;
}
( This is the way i debug my progs ^^ )
Quote Originally Posted by larta View Post
Yeh it's supposed to stay as you said.

Did you puted the hack function into the main ? ^^

Btw this is how I done and it works. Check again your code, if you defined the bool variable out of every function, as defines and others.
Also check your addys ?


EDIT : To be sure of addys, just don't make a hotkey.
Just do :
Code:
void NoSpread()
{
*(float*)ADR_Spread = 0;
}
( This is the way i debug my progs ^^ )
Okay, I just tested that and my cross hair flashes like from normal cross hair to no spread cross hair.. Weird.. And my address is fine :P
Quote Originally Posted by zooSz View Post
Okay, I just tested that and my cross hair flashes like from normal cross hair to no spread cross hair.. Weird.. And my address is fine :P
Search for a sleep and remove it , or make a seperate thread for nospread with no sleep
So only my code don't work ?

Wtf.. This is the same as me ^^ ( i only put a hotkey to middle click for NoSpread )
Weird. Here i dunno what's happen.


EDIT : Or yeah, zerohead helps... xD
Quote Originally Posted by larta View Post

EDIT : Or yeah, zerohead helps... xD
^^ Of course
Hmm i think this dude just got the help he need :/

i'll Give him Aimbot


Code:
Code:
if(AimBot)
{
AimBot = Aim At Enemys that arn't dead;
}

Here you go a nice aimbot
Quote Originally Posted by sh_z_sektor View Post
Hmm i think this dude just got the help he need :/

i'll Give him Aimbot


Code:
Code:
if(AimBot)
{
AimBot = Aim At Enemys that arn't dead;
}

Here you go a nice aimbot
Ohh aimbot haha
Posts 16–26 of 26 · Page 2 of 2
This thread is closed for replies.

Tags for this Thread

None

Talk with us