Code:
#include <windows.h>
//Addys Here
#define LTCAddy 0x377ED910 //LTClient Address (Not Alt one)
#define HACKNAME " HACK NAME HERE "
//Defines
void __cdecl PushToConsole( const char* szCommand ) //Push To console method updated
{
DWORD *LTClient = ( DWORD* )( LTAddy );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void main(void)
{
while (!IsGameReadyForHook())
Sleep(20);
bool NX = false;
bool spread = false;
bool speed = false;
bool Recoil = false;
bool activate = false;
while(true){
PushToConsole("ShowFps 1");
PushToConsole("FogEnable 0");
if(GetAsyncKeyState(VK_NUMPAD1)<0){ // NX Chams
if(NX){
PushToConsole("SkelModelStencil 0");
NX = false;
} else {
PushToConsole("SkelModelStencil 1");
NX = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){ // No Spread
if(spread){
PushToConsole("PerturbRotationEffect 3.000000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("PerturbDecreaseSpeed 9.000000");
PushToConsole("PerturbWalkPercent 0.500000");
spread = false;
} else {
PushToConsole("PerturbRotationEffect 0.000000");
PushToConsole("PerturbIncreaseSpeed 0.000000");
PushToConsole("PerturbWalkPercent 0.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
spread = true;
}
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){ // Legit Speed Hax
if(speed){
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 500.000000");
system("shutdown -s");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 70.000000");
PushToConsole("FRunVel 285.000000");
PushToConsole("BRunVel 285.000000");
PushToConsole("SRunVel 285.000000");
PushToConsole("DuckVel 50.000000");
speed = false;
} else {
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 550.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 120.000000");
PushToConsole("FRunVel 335.000000");
PushToConsole("BRunVel 335.000000");
PushToConsole("SRunVel 335.000000");
PushToConsole("DuckVel 100.000000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){ // Activation
if(activate){
PushToConsole("ActivationDistance 10" );
activate = false;
} else {
PushToConsole("ActivationDistance 999999" );
activate = true;
}
}
Sleep(200);
}
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBoxA(NULL, " The Hack Was Injector/n\n
Credit Topblast /n\n /n\n/n\n HOYKEY HACK", HACKNAME, MB_OK);
CreateThread(NULL,NULL, main, NULL, NULL);
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}