NoRecoil

Posts 1–9 of 9 · Page 1 of 1
NoRecoil
Please help with code:



#include<windows.h>

#define WeaponClass 0xAAC3D0
#define NoRecoil1 0x2658


int szf = sizeof(float);
int szd = sizeof(DWORD);
bool norecoil = true;
void Hacks()
{

if(norecoil)
{
for(int y = 0; y<9; y++)
{
*(float*)( NoRecoil1 + (0x2658 + (szf*y))) = (float)0;
}
}
}






Compiled successfully, but it does not work in the game(RU crossfire)
You Have To Add a DllMain xD

---------- Post added at 11:33 PM ---------- Previous post was at 11:33 PM ----------

And You Have to Get 6 Norecoil Offsets not just 1
@eppi
that's 1 offset for NoSpread you need more offsets
LowerAnimRate
BulletPosOffset
Norecoil1: PerturbMin%d_%s
Norecoil2: PerturbMax%d_%s
Norecoil3: BulletOffset(second one)
Norecoil4: ShotReactPitch%d_%d
Norecoil5: DetailPerturbShot%d_%s
Norecoil6: DetailReactPitchShot%d_%s
Norecoil7: DetailReactYawShot%d_%s
http://www.mpgh.net/forum/242-crossf...onlog-etc.html
(Credits: @DaRk)

and your Loop/Code is wrong here is the rigth:

Code:
if(NoRecoil)
{
	if(Weapon)
	{
		for(int i=0; i<600; i++) // i<600 = number of weapons
		{
			DWORD wep = *(DWORD*)(Weapon +(4*i));
			if(wep)
			{
				for(int y=0; y<10; y++)
				{
					*(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
				}
			}
		}
	}
}
Quote Originally Posted by CFhackerfree View Post
@eppi
that's 1 offset for NoSpread you need more offsets
LowerAnimRate
BulletPosOffset
Norecoil1: PerturbMin%d_%s
Norecoil2: PerturbMax%d_%s
Norecoil3: BulletOffset(second one)
Norecoil4: ShotReactPitch%d_%d
Norecoil5: DetailPerturbShot%d_%s
Norecoil6: DetailReactPitchShot%d_%s
Norecoil7: DetailReactYawShot%d_%s
http://www.mpgh.net/forum/242-crossf...onlog-etc.html
(Credits: @DaRk)

and your Loop/Code is wrong here is the rigth:

Code:
if(NoRecoil)
{
	if(Weapon)
	{
		for(int i=0; i<600; i++) // i<600 = number of weapons
		{
			DWORD wep = *(DWORD*)(Weapon +(4*i));
			if(wep)
			{
				for(int y=0; y<10; y++)
				{
					*(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
                                        *(float*)(wep + OFFSETS+y*4) = 0.0f;
				}
			}
		}
	}
}
@CFhackerfree ,

Thank you so much, you helped me with my hack!
Can put the offset to search for the 6, not 7 :

Norecoil1
Norecoil2
Norecoil3
Norecoil4
Norecoil5
Norecoil6
Quote Originally Posted by eppi View Post
Can put the offset to search for the 6, not 7 :

Norecoil1
Norecoil2
Norecoil3
Norecoil4
Norecoil5
Norecoil6
xD it doens't matter..if it's 6 or 7
Quote Originally Posted by DaRk View Post
xD it doens't matter..if it's 6 or 7
Let then please оффсеты to search for NoRecoil =)
You can substitute the code and offsets here (code, which gave me the above)(Thank Dead(H)ell )
Code:
#include <Windows.h>
void ShowMessage(char* string, DWORD CShell);//credits to DaRk For Message Box
#include <fstream>
#include <iostream>
#define NoReload 0x26A4
#define WeaponMgr 0xAAC3D0
#define NoRecoil1 0x051C
#define Norecoil2 0x0684
#define Norecoil3 0x1938
#define Norecoil4 0x1B14
#define Norecoil5 0x1FA0
#define Norecoil6 0x2108

void UndetectedBase(void)
{
int szf = sizeof(float);
int szd = sizeof(DWORD);
bool norecoil = true;
bool noreload = false;
DWORD WeaponClass = NULL;
DWORD pWeaponMgr = NULL;
while(true)
{
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    ShowMessage("Undetected Base By DeadHell>>Credits to ||giniyat101||",CShell);
     while(true)
      {	
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(GetAsyncKeyState(VK_F11)&1) {
noreload = !noreload;
}
{
	
if(norecoil)
{
for(int y = 0; y<10; y++)
{
*(float*)( NoRecoil1 + (0x051C + (szf*y))) = (float)0;
*(float*)( Norecoil2 + (0x0684 + (szf*y))) = (float)0;
*(float*)( Norecoil3 + (0x1938 + (szf*y))) = (float)0;
*(float*)( Norecoil4 + (0x1B14 + (szf*y))) = (float)0;
*(float*)( Norecoil5 + (0x1FA0 + (szf*y))) = (float)0;
*(float*)( Norecoil6 + (0x2108 + (szf*y))) = (float)0;
}
}
}

for(int i=0; i<598; i++)
{
pWeaponMgr = (*(DWORD*)(WeaponClass + (szd*i)));
if(pWeaponMgr != NULL)
{
	if(pWeaponMgr){
if(noreload)
{
*(float*)(pWeaponMgr + 0x26A4) = (float)72;
}
	}
}
}

	 }

}
}


DWORD WINAPI Base(LPVOID)

{
UndetectedBase();
return 1;

}

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
}
if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") )
{
	
DisableThreadLibraryCalls(hDll); 
SetTimer(0,0,100,(TIMERPROC)Base);
}
return TRUE;
}
void ShowMessage(char* string, DWORD CShell)
{
    DWORD MsgBoxFunc = CShell + 0x838F0;
    __asm
    {
        push string;
        push 0;
        push 0x70;
        push 0x1C;
        call MsgBoxFunc;
        add esp, 16;
    }
}

This is for dllMain?
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us