
#include <windows.h>
DWORD WINAPI MainThread(LPVOID param)
{
while (1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD noreload = 1;
DWORD nochange = 1;
DWORD wallhack = 1;
DWORD pWeaponMgr = *(DWORD*)(CShell+0xAB2940);
if (pWeaponMgr)
{
for (int i=0; i<650; i++)
{
DWORD pWeapon = *(DWORD*)(pWeaponMgr+i*4);
if (pWeapon)
{
if (noreload)
*(FLOAT*)(pWeapon+0x26C4) = 100.0f;
else
*(FLOAT*)(pWeapon+0x26C4) = 1.0f;
if (nochange)
*(FLOAT*)(pWeapon+0x26C8) = 100.0f;
else
*(FLOAT*)(pWeapon+0x26C8) = 1.0f;
}
}
}
if (wallhack)
memcpy((VOID*)0x6CE76C, "\x00\x00\x00\x00\x00\x00", 6);
else
memcpy((VOID*)0x6CE76C, "\x01\x01\x01\x01\x01\x01", 6);
Sleep(100);
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, MainThread, NULL, NULL, NULL);
MessageBox(0, "Inject Successfull.","Injected", MB_OK | MB_ICONINFORMATION);
}
return true;
}
bool noreload = true; bool nochange = true; bool wallhack = true;