]:#include <windows.h>
#include <iostream>
#define WeaponMgr 0x??????
#define NoReload 0x??????
using namespace std;
void Hack()
{
bool change = true;
bool norecoil = true;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
PDWORD Weapon = (PDWORD)(CShell + 0x?????? );
}
}
if (change)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x0000) = 100.0f;
}
}
}
if(norecoil)
{
if (pWeaponMgr)
for(int i=0 ; i<577 ; i++)
{
DWORD Wep = *(DWORD*)(*Weapon + 4*i);
if(Wep)
{
for(int y = 0; y<9; y++)
{
*(float*)( Wep + (0x0000 + (4*y))) = (float)0;
*(float*)( Wep + (0x0000 + (4*y))) = (float)0;
*(float*)( Wep + (0x0000 + (4*y))) = (float)0;
*(float*)( Wep + (0x2000 + (4*y))) = (float)0;
*(float*)( Wep + (0x0000 + (4*y))) = (float)0;
*(float*)( Wep + (0x2000 + (4*y))) = (float)0;
}
}
}
}
DllMain = BOOL WINAPI DllMain ( HMODULE hDLL,DWORD dwReason,LPVOID lpReason)
{
DisableThreadLibraryCalls(hDLL);
if ( dwReason == 0x1 )
Hack();
return 1;
}