
#include <windows.h>
#define WeaponMgr 0xA68F80
#define NoReload 0x269C
DWORD WINAPI Hacks(LPVOID)
{
bool reload = false;
if(GetAsyncKeyState(VK_F11)&1){ reload = true; Beep(1000,1000);}
if(GetAsyncKeyState(VK_F12)&1){ reload = false; Beep(1000,1000);}
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100,0; //String is "ReloadAnimRatio"
}
}
}
Sleep(100);
}
}
bool R2H()
{
if ( GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL )
return 1;
return 0;
}
DWORD WINAPI W41t(LPVOID)
{
while ( !R2H()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "blah blah blah","blah blah blah", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)W41t,0,0, 0);
}
return 1;
}



if(GetAsyncKeyState(VK_F12) !=){
reload = !reload;}
if(reload){
if(pWeaponMgr){
for(int i = 0; i < 577; i ++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) + (4*i))) + 0x269C) = (float) 100.0;
}else{
if(GetAsyncKeyState(VK_F11) != true){
if(reload){
if(pWeaponMgr){
for(int i = 0; i < 577; i ++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) + (4*i))) + 0x269C) = (float) 1.0;
}
}
}
}
if(GetAsyncKeyState(VK_F11) != false){
reload = !reload;}
if(reload){
if(pWeaponMgr){
for(int i = 0; i < 577; i ++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float) 100.0;
}else{
if(GetAsyncKeyState(VK_F12)&1){
if(reload){
if(pWeaponMgr){
for(int i = 0; i < 577; i ++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float) 1.0;}}
}}}}}}}

if (GetAsyncKeyState(VK_F11)){
if(pWeaponMgr){
for(int i = 0; i < 577; i ++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float) 100.0;
}}}}
if (GetAsyncKeyState(VK_F12)){
if(pWeaponMgr){
for(int i = 0; i < 577; i ++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float) 1.0;
}}}}

