can you guys help m reduce the lag and then set this to hotkeys visual studios wont let me for some reason
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole(char* sVal)
{
DWORD zAddress = 0x007D9200;
void* szConsole = (void*)*(DWORD*)(zAddress);
_asm
{
push sVal
call szConsole
add esp, 4
}
}
void main()
{
while(true)
{
PushToConsole("FogEnable 0" );
PushToConsole("no health peaces 1" );
PushToConsole("ActivationDistance 999999" );
PushToConsole("BaseMoveAccel 1800.000000");
PushToConsole("StartAccel 1800.000000");
PushToConsole("MaxAccel 1800.000000");
PushToConsole("AccelInc 1800.000000");
PushToConsole("WalkVel 1800.000000");
PushToConsole("FRunVel 1800.000000");
PushToConsole("BRunVel 1800.000000");
PushToConsole("SRunVel 1800.000000");
PushToConsole("JumpVel 1800.000000");
PushToConsole("DuckVel 1800.000000");
}
}
DWORD WINAPI dwHackThread(LPVOID) {
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
credits
various mpgh users