code

Posts 111 of 11 · Page 1 of 1
code
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
Hotkey just put them before :

PushToConsole("FogEnable 0" );

And change the value to put it off or on :P
You can use the same Hotkey to on / off

Now let's search a bit !
We will not do the job for you !
If you know some base, you will be able to do the rest xD
//Credits to:
//CoderNever - His tutorial
//MugNuf - Adding like, 7 sleep functions
//dugindog - C+Ping CN's tutorial, and his PTC without credits
#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" );
Sleep(50);
PushToConsole("no health peaces 1" );
Sleep(50);
PushToConsole("ActivationDistance 999999" );
Sleep(50);
PushToConsole("BaseMoveAccel 1800.000000");
Sleep(50);
PushToConsole("StartAccel 1800.000000");
Sleep(50);
PushToConsole("MaxAccel 1800.000000");
Sleep(50);
PushToConsole("AccelInc 1800.000000");
Sleep(50);
PushToConsole("WalkVel 1800.000000");
Sleep(50);
PushToConsole("FRunVel 1800.000000");
Sleep(50);
PushToConsole("BRunVel 1800.000000");
Sleep(50);
PushToConsole("SRunVel 1800.000000");
Sleep(50);
PushToConsole("JumpVel 1800.000000");
Sleep(50);
PushToConsole("DuckVel 1800.000000");
Sleep(50);
}
}
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;
}

You can do the rest yourself, adding hotkeys isn't hard.
Quote Originally Posted by MugNuf View Post
//Credits to:
//CoderNever - His tutorial
//MugNuf - Adding like, 7 sleep functions
//dugindog - C+Ping CN's tutorial, and his PTC without credits
#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" );
Sleep(50);
PushToConsole("no health peaces 1" );
Sleep(50);
PushToConsole("ActivationDistance 999999" );
Sleep(50);
PushToConsole("BaseMoveAccel 1800.000000");
Sleep(50);
PushToConsole("StartAccel 1800.000000");
Sleep(50);
PushToConsole("MaxAccel 1800.000000");
Sleep(50);
PushToConsole("AccelInc 1800.000000");
Sleep(50);
PushToConsole("WalkVel 1800.000000");
Sleep(50);
PushToConsole("FRunVel 1800.000000");
Sleep(50);
PushToConsole("BRunVel 1800.000000");
Sleep(50);
PushToConsole("SRunVel 1800.000000");
Sleep(50);
PushToConsole("JumpVel 1800.000000");
Sleep(50);
PushToConsole("DuckVel 1800.000000");
Sleep(50);
}
}
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;
}

You can do the rest yourself, adding hotkeys isn't hard.
This get detected ... Don't use it !
Reason that I think : PTC Addy !
i dont know how thats the thing cn you help me??
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...
Quote Originally Posted by GridMaster View Post
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
Damn... I see, thanks.

I wasnt sure how to space them.
Not trying to sound like a prick or an asshole here but guys, learn to use the search button! You can find multiple hotkey bases and other threads looking for the same thing as this one in this forum!
You sound like a prick.

lol
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?