Results 1 to 15 of 26

Threaded View

  1. #1
    xXNoobAlertXx's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    125
    Reputation
    9
    Thanks
    76

    Activation Distance Source

    Hello guys this is the source for a simple hack with only activation distance. This is fully updated copy and paste if you want i dont care.

    Code:
    #include "stdafx.h"
    #include <windows.h>
    #include <shellapi.h>
    #pragma comment(lib,"shell32.lib")
    void __cdecl PushToConsole( const char* szCommand )
    {
    	DWORD *Ltclient = ( DWORD* )( 0x37775D68 );
    	void* CONoff = ( void* )*( DWORD* )( *Ltclient + 0x208 );
     
    	__asm
    	{
    		push szCommand;
    		call CONoff;
    		add esp, 4;
    	}
    }
    bool IsGameReadyForHook()
    {
        if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
         && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
         && GetModuleHandleA( "CShell.dll"   ) != NULL )
            return true;
    
        return false;
    }
    		void MemCopy(void* Dest, const void* Src, int Len)
    {
        DWORD OldProtect;
        DWORD OldProtect2;
        VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
        memcpy(Dest, Src, Len);
        VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
        FlushInstructionCache(GetCurrentProcess(), Dest, Len);
    }
    void main()
    {
    	
    	PushToConsole("FallDamageMinHeight 0.000000");
    	PushToConsole("FallDamageMaxHeight 0.000000");
    	PushToConsole("FallDamageMax 0.000000");
    	while(true){
    		if(GetAsyncKeyState(VK_INSERT)<0){
    			PushToConsole("ActivationDistance 1000");
    		}
    	}
    }
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
    	switch (ul_reason_for_call)
    	{
    	case DLL_PROCESS_ATTACH:
    		ShellExecute;
    		CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
    		break;
    	case DLL_THREAD_ATTACH:
    	case DLL_THREAD_DETACH:
    	case DLL_PROCESS_DETACH:
    		break;
    	}
    	return TRUE;
    }
    Last edited by xXNoobAlertXx; 06-18-2010 at 02:36 PM.

  2. The Following 2 Users Say Thank You to xXNoobAlertXx For This Useful Post:

    fishnchips4T (07-11-2010),test123123 (06-20-2010)

Similar Threads

  1. Replies: 7
    Last Post: 01-17-2010, 07:16 AM
  2. CS Source Clan/Server
    By Dave84311 in forum General
    Replies: 20
    Last Post: 10-04-2006, 12:21 PM
  3. How Do I Activate?!?!?!?!?!?
    By -[standoff]- in forum General Game Hacking
    Replies: 13
    Last Post: 06-16-2006, 06:46 AM
  4. Counter Strike: Source
    By Flawless in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 15
    Last Post: 06-03-2006, 08:28 PM