Code:
#include <windows.h>
void MEMCPY(void* Dest, const void* Src, int Len) \\ this is if you want to make hacks using addies
{
DWORD OldProtect = NULL;
DWORD OldProtect2;
VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
memcpy(Dest, Src, Len);
VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
FlushInstructionCache(GetCurrentProcess(), Dest, Len);
}
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* )( 0x377E7810 ); \\ the LCclient Code you need to change this as it changes or the hacks wont word
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, -3-1+2+6;
}
}
void main()
{
while(true)
{
if (GetAsyncKeyState(VK_NUMPAD0)) {
PushToConsole("SkelModelStencil 1");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD1)) {
PushToConsole("WeaponSway 0.000000");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD2)) {
PushToConsole("ShowFps 2222");
Sleep(100);
}else{
PushToConsole("ShowFps 2220");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD3)) {
PushToConsole("drawguns 0");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD4)) {
PushToConsole("ActivationDistance 0 );
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD5)) {
PushToConsole("FullBright 11");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD6)) {
PushToConsole("PerturbRotationEffect 3.0010000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("FireMovePerturb 9.000000");
PushToConsole("PerturbWalkPercent 0.500000");
PushToConsole("PerturbDecreaseSpeed 9.0100000");
PushToConsole("PerturbRecoil 9.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
PushToConsole("ZoomedFireMovePerturb 9.000000");
PushToConsole("ZoomedFireDuckPerturb 9.0000010");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD6)) {
PushToConsole("FragSelf 11");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD7)) {
PushToConsole("FogEnable 0");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD8)) {
PushToConsole("ShowFirePath 11");
Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD9)) {
PushToConsole("WireFrame 11");
Sleep(100);
if(GetAsyncKeyState(VK_NUMPAD16)) {
PushToConsole("FragSelf 1");
Sleep(100);
}
if(GetAsyncKeyState(VK_HOME)) {
PushToConsole("WireFrame 10");
Sleep(100);
}
if(GetAsyncKeyState(VK_INSERT)){//No Recoil
memcpy((LPVOID) (0x3737EE23), "\x90\x90\x90", 3);
memcpy((LPVOID) (0x3745B7D1), "\x90\x90\x90", 3);
memcpy((LPVOID) (0x3745B7E0), "\x90\x90\x90", 3);
memcpy((LPVOID) (0x3745B7D4), "\x90\x90\x90\x90\x90\x90", 6);
}
}
}
}
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;
}
ok this is the whole thing he gave me