no recoil source code

Posts 1–12 of 12 · Page 1 of 1
no recoil source code
if(norecoil)
{
if (pWeaponMgr)

for(int i=0 ; i<577 ; i++)

{
DWORD Wep = *(DWORD*)(*pWeaponMgr + i*4); // I GT SOME ERROR HERE IT SAYS error C2100: illegal indirection

if(Wep)
{
for(int y = 0; y<9; y++)
{

*(float*)( NoRecoil1 + (0x4C8 + (4*y))) = (float)0;
*(float*)( NoRecoil2 + (0x630 + (4*y))) = (float)0;
*(float*)( NoRecoil3 + (0x18E4 + (4*y))) = (float)0;
*(float*)( NoRecoil4 + (0x18F0 + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x1F4C + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x20B4 + (4*y))) = (float)0;


}
}

}
}
}


can some one help me please
I think it should be 4*1
Quote Originally Posted by Sprite View Post
I think it should be 4*1
No it's correct .. just remove the pointer before pWeaponMgr ..
i got another problem in wallhack source code

if (GetAsyncKeyState(VK_F7)){
wallHack = !wallHack;
}
if (wallHack){
PushToConsole("LightModels 1"); did i have to declare it again?? cause i declare is wallhack and ha 0x#### 'PushToConsole': identifier not found
memcpy((VOID*)0x6CE5DC, "\x00\x00\x00\x00\x00\x00", 6);
} else {
PushToConsole("LightModels 0"); 'PushToConsole': identifier not found
memcpy((VOID*)0x6CE5DC, "\x01\x01\x01\x01\x01\x01", 6);
Quote Originally Posted by hanoke View Post
i got another problem in wallhack source code

if (GetAsyncKeyState(VK_F7)){
wallHack = !wallHack;
}
if (wallHack){
PushToConsole("LightModels 1"); did i have to declare it again?? cause i declare is wallhack and ha 0x#### 'PushToConsole': identifier not found
memcpy((VOID*)0x6CE5DC, "\x00\x00\x00\x00\x00\x00", 6);
} else {
PushToConsole("LightModels 0"); 'PushToConsole': identifier not found
memcpy((VOID*)0x6CE5DC, "\x01\x01\x01\x01\x01\x01", 6);
you don't need PTC for wallhack .. ^__^
so what code is i need?
@hanoke You need this code

Code:
void __cdecl PushToConsole (char* command)
{
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if(dwCShell != NULL)
	{
		DWORD *LTClient = (DWORD*) ((dwCShell + 0x3599A4));
		void* CONoff = (void*)*(DWORD*)(*LTClient + 0x1FC);
		_asm
		{
			push command;
			call CONoff;
			add esp, 4;
		}
	}
}
Add that code after your includes and defines .
offsets are wrong check da first thread in da section for the offsets
the weapon loop should be 600
Quote Originally Posted by hanoke View Post
*(float*)( NoRecoil5 + (0x1F4C + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x20B4 + (4*y))) = (float)0;
Notice your small mistake?

Edit: what are these "norecoils" represent? cause it doesn't make sense..
Code:
if(Wep)
{
for(int y = 0; y<9; y++)
{
*(float*)( NoRecoil1 + (0x4C8 + (4*y))) = (float)0;
*(float*)( NoRecoil2 + (0x630 + (4*y))) = (float)0;
*(float*)( NoRecoil3 + (0x18E4 + (4*y))) = (float)0;
*(float*)( NoRecoil4 + (0x18F0 + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x1F4C + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x20B4 + (4*y))) = (float)0;
If the Wep is *(DWORD*)(*pWeaponMgr + i*4) then it should be like this:
Code:
*(float*)( Wep + (0x4C8 + (4*y))) = (float)0;
Instead of just c+p, you should study the codes before asking question to us.

Quote Originally Posted by [N.O]N.A.M.E View Post
offsets are wrong check da first thread in da section for the offsets
the weapon loop should be 600
The thread is old & @DaRk never update it.

According to derh.acker's weapon log, you should go with 632 if you want cover all weapons but it's not necessary cause it's really depend on what weapons you use in game.
Quote Originally Posted by Genkidesu View Post
Edit: what are these "norecoils" represent? cause it doesn't make sense..
Code:
if(Wep)
{
for(int y = 0; y<9; y++)
{
*(float*)( NoRecoil1 + (0x4C8 + (4*y))) = (float)0;
*(float*)( NoRecoil2 + (0x630 + (4*y))) = (float)0;
*(float*)( NoRecoil3 + (0x18E4 + (4*y))) = (float)0;
*(float*)( NoRecoil4 + (0x18F0 + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x1F4C + (4*y))) = (float)0;
*(float*)( NoRecoil5 + (0x20B4 + (4*y))) = (float)0;
If the Wep is *(DWORD*)(*pWeaponMgr + i*4) then it should be like this:
Code:
*(float*)( Wep + (0x4C8 + (4*y))) = (float)0;
Instead of just c+p, you should study the codes before asking question to us.
i have studying the code here in forum for about 2 weeks and what i always see in code in norecoil is always norecoil1-norecoil6 i never see it wep so i just compare it to others and im just starting to code and i dont have any member here in forum that i can just silently pm if i got question if you seeing my thread as i dumb nonsence thread cause this stuff is easy for you and for our begginers this stuff are to hard. btw thanks for your comment now i know what it represent and i wish i got to finish my base

@Sprite you did not tell me that code
omg u guys are all C++ ers o.O
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us