Page 1 of 2 12 LastLast
Results 1 to 15 of 23

Hybrid View

  1. #1
    powerfear's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    32
    Reputation
    12
    Thanks
    240

    HotKey hack source

    Here you go

    For update just update the L***ient addy and offset it it ever change, but this have the current adress.

    Code:
    #include <windows.h>
    void __cdecl PushToConsole( const char* szCommand )
    {
    	DWORD *L***ient = ( DWORD* )( 0x3777DDAC );
    	void* CONoff = ( void* )*( DWORD* )( *L***ient + 0x208 );
     
    	__asm
    	{
    		push szCommand;
    		call CONoff;
    		add esp, 4;
    	}
    }
    bool IsGameReadyForHook()
    {
        if( GetModuleHandle( "d3d9.dll"     ) != NULL 
         && GetModuleHandle( "ClientFX.fxd" ) != NULL 
         && GetModuleHandle( "CShell.dll"   ) != NULL )
            return true;
    
        return false;
    }
    void main()
    {
    	while (!IsGameReadyForHook()){
    		Sleep(20);
    	}
    	bool boxes = false;
    	bool fog = false;
    	bool speed = false;
    	bool spread = false;
    	bool tracers = false;
    	bool showfps = false;
    	bool unlockcursor = false;
    	bool drawgun = false;
    	bool sjump = false;
    	PushToConsole("FallDamageMinHeight 0.000000");
    	PushToConsole("FallDamageMaxHeight 0.000000");
    	PushToConsole("FallDamageMax 0.000000");
    	while(true){
    		if(GetAsyncKeyState(VK_NUMPAD1)<0){
    			if(boxes){
    				PushToConsole("ModelDebug_DrawBoxes 0");
    				PushToConsole("SkelModelStencil 0");
    				boxes = false;
    			} else {
    				PushToConsole("ModelDebug_DrawBoxes 1");
    				PushToConsole("SkelModelStencil 1");
    				boxes = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)<0){
    			if(fog){
    				PushToConsole("FogEnable 1");
    				fog = false;
    			} else {
    				PushToConsole("FogEnable 0");
    				fog = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)<0){
    			if(speed){
    				PushToConsole("BaseMoveAccel 3000.000000");
    				PushToConsole("StartAccel 500.000000");
    				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 3000.000000");
    				PushToConsole("MaxAccel 3000.000000");
    				PushToConsole("AccelInc 3000.000000");
    				PushToConsole("WalkVel 3000.000000");
    				PushToConsole("FRunVel 3000.000000");
    		    	PushToConsole("BRunVel 3000.000000");
    				PushToConsole("SRunVel 3000.000000");
    				PushToConsole("DuckVel 3000.000000");
    				speed = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)<0){
    			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_NUMPAD5)<0){
    			if(tracers){
    				PushToConsole("ShowFirePath 0");
    				tracers = false;
    			} else {
    				PushToConsole("ShowFirePath 1");
    				tracers = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)<0){
    			if(sjump){
    				PushToConsole("JumpVel 330.000000");
    				sjump = false;
    			} else {
    				PushToConsole("JumpVel 660.000000");
    				sjump = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)<0){
    			if(showfps){
    				PushToConsole("ShowFps 0");
    				showfps = false;
    			} else {
    				PushToConsole("ShowFps 1");
    				showfps = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)<0){
    			if(unlockcursor){
    				PushToConsole("CursorCenter 1");
    				unlockcursor = false;
    			} else {
    				PushToConsole("CursorCenter 0");
    				unlockcursor = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_NUMPAD9)<0){
    			if(drawgun){
    				PushToConsole("drawguns 1");
    				drawgun = false;
    			} else {
    				PushToConsole("drawguns 0");
    				drawgun = true;
    			}
    		}
    		if(GetAsyncKeyState(VK_UP)<0){
    			PushToConsole("CamMaxPosYOffset 200.000000");
    			PushToConsole("DuckDownCamOffSet 1000.000000");
    		}
    		if(GetAsyncKeyState(VK_DOWN)<0){
    			PushToConsole("CamMaxPosYOffset -1000.000000");
    			PushToConsole("DuckDownCamOffSet -13.000000");
    		}
    		if(GetAsyncKeyState(VK_ADD)<0){
    			PushToConsole("PlayerGravity +800");
    		}
    		if(GetAsyncKeyState(VK_SUBTRACT)<0){
    			PushToConsole("PlayerGravity -800");
    		}
    		if(GetAsyncKeyState(VK_MULTIPLY)<0){
    			PushToConsole("PlayerGravity 0");
    		}
    		Sleep(200);
    	}
    }
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
    	switch (ul_reason_for_call)
    	{
    	case DLL_PROCESS_ATTACH:
    		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;
    }

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

    ac1d_buRn (02-09-2010),apandhi (02-15-2010),CAFlames (07-15-2010),CRUSTY (02-15-2010),hhhjr1 (07-06-2010),Ragehax (04-01-2010),topblast (03-28-2010),vingadormaster (02-09-2010),why06 (02-09-2010),Yepikiyay (07-05-2010),Zoom (02-09-2010),|-|3|_][({}PT3R12 (02-09-2010)

  3. #2
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    This almost an exact copy of Gellin's base, but I suppose its good to see it without all of Azorbix's D3D files and stuff with. Anyway I didn't those no falldamage commands still worked anymore.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  4. #3
    vingadormaster's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    154
    Reputation
    17
    Thanks
    243
    thanks for source, i tested again in hex and changed some numbers:

    JumpVel 3000.000000 to JumpVel 0400.000000 and no more superjump.

    and almost all values ( 3000.000000 ) changed to ( 1500.000000 ) and speed is no more superfast.
    but no changed MaxAccel.

  5. #4
    apandhi's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    NY
    Posts
    45
    Reputation
    10
    Thanks
    19
    Hey sorry if this is kinda noobish but i get errors when compiling. What compiler do you use? Im using dev c++

    also the console commands are found through Cshell.dll?
    I cant open it in olly i have to open it in PE explorer

    Again Sorry if this sounds noobish :\

  6. #5
    matypatty's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    864
    Reputation
    229
    Thanks
    2,694
    My Mood
    Amused
    i use microsoft visual c++, and yes console commands are found through cshell. if you open it with olly it should ask you if u want to launch loaddll press yea, click play twice and at the bottom it will say analising, wait till it gets to like 70% then press space to skip the rest

    as for the reason you get errors, you need to have gellins base and just edit this bit in
    Last edited by matypatty; 02-15-2010 at 12:34 PM.

  7. #6
    apandhi's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    NY
    Posts
    45
    Reputation
    10
    Thanks
    19
    Visual C++ 2008?
    And can you compile this no problem? I want to add a D3D menu

    Edit: NVM But i get a few errors
    Code:
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(17) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(18) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(19) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Last edited by apandhi; 02-15-2010 at 04:34 PM.

  8. #7
    vingadormaster's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    154
    Reputation
    17
    Thanks
    243
    Quote Originally Posted by apandhi View Post
    Visual C++ 2008?
    And can you compile this no problem? I want to add a D3D menu

    Edit: NVM But i get a few errors
    Code:
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(17) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(18) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(19) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Change in Property Page -> Character Set to Use Multi-Byte Character Set.

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

    apandhi (02-15-2010),Yepikiyay (07-05-2010)

  10. #8
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by apandhi View Post
    Visual C++ 2008?
    And can you compile this no problem? I want to add a D3D menu

    Edit: NVM But i get a few errors
    Code:
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(17) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(18) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\users\ashish\documents\visual studio 2008\projects\ca dll\ca dll\main.cpp(19) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
    1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    If you dont knnow what tat means, Then you need to go learn some C++

  11. #9
    harpreet10's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    USA
    Posts
    44
    Reputation
    10
    Thanks
    7
    My Mood
    Relaxed
    wait were all the addies that you assigned too the hacks
    like no fog or show fps?

  12. #10
    apandhi's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    NY
    Posts
    45
    Reputation
    10
    Thanks
    19
    Just to make sure the L***ient is supposed to be Las sient (without spaces) right?

  13. #11
    powerfear's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    32
    Reputation
    12
    Thanks
    240
    Quote Originally Posted by apandhi View Post
    Just to make sure the L***ient is supposed to be Las sient (without spaces) right?
    its supposed to be "* L T C lient" without space and " the forum block it for some reason

  14. #12
    vingadormaster's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    154
    Reputation
    17
    Thanks
    243
    someone managed to add the norecoil gellin Posted?

    I'm trying but without success.

  15. #13
    matypatty's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    864
    Reputation
    229
    Thanks
    2,694
    My Mood
    Amused
    nah i failed too
    i did manage to find and add fullbright, wireframe and skeletons
    if you want the commands pm me

  16. #14
    vingadormaster's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    154
    Reputation
    17
    Thanks
    243
    Quote Originally Posted by matypatty View Post
    nah i failed too
    i did manage to find and add fullbright, wireframe and skeletons
    if you want the commands pm me
    OR:

    https://www.mpgh.net/forum/207-combat...ml#post1545164

  17. #15
    matypatty's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    864
    Reputation
    229
    Thanks
    2,694
    My Mood
    Amused
    Quote Originally Posted by vingadormaster View Post
    yea i have some more

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] Hotkey Hack Source + Addies! (4NOOBS)
    By Lunatic in forum WarRock Hack Source Code
    Replies: 4
    Last Post: 06-14-2011, 08:40 PM
  2. [source] xp hotkey hack
    By lauwy in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 16
    Last Post: 08-17-2010, 05:47 AM
  3. Simple BF2 hack source with some interesting stuff.
    By Tyrano in forum C++/C Programming
    Replies: 2
    Last Post: 04-29-2009, 07:33 AM
  4. one of my basic hotkey hacks
    By mtbman19 in forum WarRock - International Hacks
    Replies: 15
    Last Post: 06-30-2008, 08:33 AM
  5. [VB.NET 08] Diamondo25's WarRock Hack source
    By diamondo25 in forum Visual Basic Programming
    Replies: 8
    Last Post: 04-24-2008, 09:21 AM