No Reload/No Change Delay code - doesn't work, please check.
I have made this No Reload/No Change Delay hack, but it doesnt work. Injecting works, message box comes up, but reload/change speed is unchanged.
Please check the code and correct it if necessary. Try compiling it and seeing if it works for you...
Note: The reason for this:
before DllMain is because i am using Code::Blocks, and it requires this to work.
Please check the code and correct it if necessary. Try compiling it and seeing if it works for you...
Code:
#include <windows.h>
void doyourstuffhere()
{
DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
DWORD cWeaponMgr = *(DWORD*)(cshell + 0xA68F80);
//DWORD cPlayerMgr = *(DWORD*)(cshell + 0xA69BE8);
int sz = sizeof(float);
while(1)
{
if(cWeaponMgr)
{
for(int i=0; i<560; i++)
{
*(float*)(cWeaponMgr + (sz*i) + (0x26A0)) = 100.0f; // No change delay
*(float*)(cWeaponMgr + (sz*i) + (0x269C)) = 100.0f; // No Reload
}
}
Sleep(100);
}
}
bool runner(LPVOID)
{
Sleep(1000);
try
{
DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
if(dllfile == NULL)
{
throw 1;
}
}
catch (int error)
{
switch(error)
{
case 1:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
return false;
default:
//Unkown error!
return false;
}
}
Beep(1000,1000);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doyourstuffhere, NULL, NULL, NULL);
return true;
}
extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
MessageBox(NULL, "Hack by _corn_. Made for MPGH.\nEnjoy!!!", "Hack loaded", MB_OK);
break;
case DLL_PROCESS_DETACH:
// detach from process
break;
case DLL_THREAD_ATTACH:
// attach to thread
break;
case DLL_THREAD_DETACH:
// detach from thread
break;
}
return TRUE; // succesful
}
Code:
extern "C" __declspec(dllexport) BOOL APIENTRY


dude it doesn't really matter about cWeaponMgr and pweaponMgr coz ur can name it anything u want