Originally Posted by
twixxxx
i need help with my base.
it always gets caught by X-Trap i have no idea why, perhaps my addresses are wrong??
#include "windows.h"
#define WeaponMgr 0xAB2940
#define NoRecoil1 0x53C
#define NoRecoil2 0x6A4
#define NoRecoil3 0x1958
#define NoRecoil4 0x1964
#define NoRecoil5 0x1FC0
#define NoRecoil6 0x2128
#define NoRecoil7 0x2290
using namespace std;
DWORD WINAPI hack1(LPVOID param) {
bool noreload = true;
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD Wapenclass = *(PDWORD)(CShell + WeaponMgr);
int main();
while(true) {
for(int i=0 ; i<637 ; i++) {
for(int y = 0; y<10; y++)
{
DWORD curwapen = *(DWORD*)(Wapenclass +(4*i));
if (curwapen) {
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil2) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil3) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil4) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil5) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil6) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil7) = 0.0f;
}
}
}
}
return true;
}
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)hack1);
}
return TRUE;
}