Originally Posted by
trevmmeister
I don't know how to make each feature activated and deactivated by hotkey. How?
I know what code to use, but i ahve no idea where to put it in relation to the OTHER hotkey codes...
like this for hotkeys
Code:
#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( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )(0x3778BFB0);
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
bool walls = false, recoil = false, reload = false, cham = false;
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){
walls = !walls;
if(walls){
memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
PushToConsole("HealHP 100");
} else {
memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
}
Sleep(300);
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
recoil = !recoil;
if(recoil){
memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
PushToConsole("SkelModelStencil 2");
PushToConsole("ActivationDistance 100000");
} else {
memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
PushToConsole("SkelModelStencil 0");
}
Sleep(300);
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
reload = !reload;
if(reload){
memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
PushToConsole("InfiniteAmmo 1");
PushToConsole("Accuracyinc 99999999999");
PushToConsole("CamDamage 999999999");
PushToConsole("CamRecoilRecover 99999999");
PushToConsole("Recoildec 99999999");
PushToConsole("PusherMaxVelocity 999999999");
} else {
memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6);
}
Sleep(300);
}
Sleep(10);
}
{
if(GetAsyncKeyState(VK_NUMPAD3)<0)
PushToConsole("FootPrintBlendMode 0");
PushToConsole("TrailSegmentLifetime 0");
PushToConsole("FootStepSoundRadius 0");
PushToConsole("QuietMovementVolumeFactor 0");
}
{
if(GetAsyncKeyState(VK_NUMPAD4)<0)
PushToConsole("Accuracyinc 99999999999");
PushToConsole("CamDamage 999999999");
PushToConsole("CamRecoilRecover 99999999");
PushToConsole("Recoildec 99999999");
PushToConsole("PusherMaxVelocity 999999999");
}
{
if(GetAsyncKeyState(VK_NUMPAD5)<0)
PushToConsole("ActivationDistance 100000");
}
{
if(GetAsyncKeyState(VK_NUMPAD6)<0)
PushToConsole("DestroyProjectiles 1");
}
{
if(GetAsyncKeyState(VK_NUMPAD7)<0)
PushToConsole("InfiniteAmmo 1");
}
{
if(GetAsyncKeyState(VK_NUMPAD7)<0)
PushToConsole("Rangedamage 10000000");
}
if(GetAsyncKeyState(VK_NUMPAD8)<0)
PushToConsole("DefaultGP 50000");
}
void dwHackThread() {
}
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;
}
don't actually use the above code, its detected, and i just posted that as an example for how to use hotkeys