#include "stdafx.h"
#include <windows.h>
//=======================================
//declarations
#define LTClient 0x3718BF20
#define EngineLTC 0x4A4810
//=======================================
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole(char *szCommand)
{
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t PushToConsole = (RunConsoleCommand_t)EngineLTC;
}
//=======================================
void main()
{
while(!IsGameReadyForHook()){
Sleep(200);
}
bool nxchams = false;
while(true)
{
PushToConsole("ShowFPS 1");
if(GetAsyncKeyState(VK_HOME)<0)
if(nxchams){
PushToConsole("ShowFPS 0");
PushToConsole("SkelModelStencil 0");
nxchams = false;
}else{
PushToConsole("ShowFPS 1");
PushToConsole("SkelModelStencil 1");
nxchams = true;
}
}
}
//=======================================
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;
}


#include "stdafx.h"
#include <windows.h>
//=======================================
//declarations
#define EngineLTC 0x4A4810
//=======================================
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole(char *szCommand)
{
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t PushToConsole = (RunConsoleCommand_t)EngineLTC;
}
//=======================================
void main()
{
while(!IsGameReadyForHook()){
Sleep(200);
}
bool nxchams = false;
while(true)
{
PushToConsole("ShowFPS 1");
if(GetAsyncKeyState(VK_HOME)<0)
if(nxchams){
PushToConsole("ShowFPS 0");
PushToConsole("SkelModelStencil 0");
nxchams = false;
}else{
PushToConsole("ShowFPS 1");
PushToConsole("SkelModelStencil 1");
nxchams = true;
}
}
}
//=======================================
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;
}