#include "stdafx.h"
#include<windows.h>
#define WeaponMgr 0xB65E94
#define NoReload1 0x34C0
#define NoReload2 0x34C4
#define NoReload3 0x34C8
#define NoReload4 0x3B20
#define NoReload5 0xE98
#define NoReload6 0x1000
DWORD WINAPI Hacks(LPVOID)
{
bool noreload = true;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if (noreload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + noreload) = 100;
}
}
}
Sleep(100);
}
}


#include<windows.h>
#define WeaponMgr 0xB65E94
#define NoReload1 0x34C0
#define NoReload2 0x34C4
#define NoReload3 0x34C8
#define NoReload4 0x3B20
#define NoReload5 0xE98
#define NoReload6 0x1000
DWORD WINAPI Hacks(LPVOID)
{
bool noreload = true;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if (noreload)
{
if (pWeaponMgr)
{
for(int i=0; i<650; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + noreload) = 100;
}
}
}
Sleep(100);
}
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, Hacks, NULL, NULL, NULL);
}
}

