Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14

    Source Code For Hotkey - Would This Work?

    Hi, I was wondering if something like this would work. And if it wouldn't, what would prevent it from working:
    Code:
    #include <Windows.h>
    #include <iostream>
    #include <d3d9.h>
    
    #define FlyHack				0x379377B8
    #define GameStatus			0x3796392C
    
    bool Fly = false;
    DWORD * GameStatusAddy = (DWORD *) GameStatus;
    
    void TheHackLoop(){
    	while(true){
    		if(*(BYTE *) GameStatusAddy == 1){
    			DWORD * P = (DWORD *) FlyHack;
    			
    			// Check for toggle request
    			if(GetAsyncKeyState(VK_CONTROL) && GetAsyncKeyState(0X4D)){ // Control and M
    				Fly = !Fly;
    				if(Fly){ // fly turned on
    					Beep((DWORD) 528, (DWORD)500);
    					Sleep(75);
    					Beep((DWORD) 528, (DWORD)500);
    				}else{ // fly turned off
    					Beep((DWORD) 350, (DWORD)500);
    					*(float *) P = -800.00;
    				}
    			}
    
    			// check for fly request
    			if(Fly){
    				// check for up or down
    				long PreviousGravity = (LONG) P;
    				if(Fly && GetAsyncKeyState(VK_ADD)){ // up. Gravity += 50;
    					long NewGravity =  PreviousGravity + 50;
    					*(float *) P = (FLOAT) NewGravity;
    				}else if(Fly && GetAsyncKeyState(VK_SUBTRACT)){ // Down. Gravity -= 50;
    					long NewGravity =  PreviousGravity - 50;
    					*(float *) P = (FLOAT) NewGravity;
    				}
    			}
    		}
    		Sleep(75);
    	}
    }
    
    void LoadUp(){
    	while(true){
    		if(IsGameReady()){
    			break;	
    		}
    		Sleep(150);
    	}
    	TheHackLoop();
    }
    
    BOOL IsGameReady(){
    	DWORD YeahOrNah = (DWORD)GetModuleHandleA("cshell.dll");
    	if(YeahOrNah){ // Loaded
    		return TRUE;
    	}else{
    		return FALSE;
    	}
    }
    
    
    INT WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    	DisableThreadLibraryCalls(hModule);
    
    	if(dwReason == DLL_PROCESS_ATTACH)
    	{
          CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)LoadUp,NULL,NULL,NULL);
    	}
    	return 1;
    }
    Thank you in advance.

    Obviously the addresses need updated, but I wrote that about a week ago.

  2. #2
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    936
    Reputation
    32
    Thanks
    485
    My Mood
    Psychedelic
    Yes it will work, but it will be extremely glitchy and likely to crash after a short amount of time.




    ^Suck it!

  3. #3
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Skaterforeva1 View Post
    Yes it will work, but it will be extremely glitchy and likely to crash after a short amount of time.
    May I ask why?

    Additional Information: I asked flengo and he said no because it would require a detour. I asked fenix and he said hacks like this do not require detours.

  4. #4
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    The old PTC method required a hooked function because they had a really simple _ReturnAddress() Check in the function to prevent calling from other modules..
    This should work without a hook because your cahnging the variable directly

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    https://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    https://www.youtube.com/watch?v=Na2kUdu4d_k

  5. The Following User Says Thank You to Ch40zz-C0d3r For This Useful Post:

    lilghost8631 (12-22-2013)

  6. #5
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Ch40zz-C0d3r View Post
    The old PTC method required a hooked function because they had a really simple _ReturnAddress() Check in the function to prevent calling from other modules..
    This should work without a hook because your cahnging the variable directly
    First of all I just watched the video you posted of your game so far. That looks pretty awesome.
    Second I found some interesting stuff about SkelModelStencil, but I would love some help making sense of it. Would you be able to help by chance?

    Anywho, thank you for the clarification.

  7. #6
    Ticherhaz's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Malaysia
    Posts
    6,564
    Reputation
    1376
    Thanks
    1,297
    My Mood
    Inspired
    is that fly hack ??
    Anything can PM me. I'm from Malaysia.

  8. #7
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Zuhrain View Post
    is that fly hack ??
    yeah just an adjustable speed version that uses beep to notify the user when it's on or off. The fly hack is not my goal. I'm trying to find information for knockback and chams.

  9. #8
    Ticherhaz's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Malaysia
    Posts
    6,564
    Reputation
    1376
    Thanks
    1,297
    My Mood
    Inspired
    Quote Originally Posted by lilghost8631 View Post
    yeah just an adjustable speed version that uses beep to notify the user when it's on or off. The fly hack is not my goal. I'm trying to find information for knockback and chams.
    wow.. how long its take to completely understand C++??
    Anything can PM me. I'm from Malaysia.

  10. #9
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Zuhrain View Post


    wow.. how long its take to completely understand C++??
    5 minutes?
    I know Java, PHP, VB.net, a little LUA, a little C#, I've done a little with PERL, SQL, I know scheme lisp, batch, python and c++. So honestly since c++ is my most recent language, learning it was just learning a little bit of new syntax.
    Last edited by lilghost8631; 12-22-2013 at 05:56 PM.

  11. #10
    Ticherhaz's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Malaysia
    Posts
    6,564
    Reputation
    1376
    Thanks
    1,297
    My Mood
    Inspired
    Quote Originally Posted by lilghost8631 View Post
    5 minutes?
    I know Java, PHP, VB.net, a little LUA, a little C#, I've done a little with PERL, SQL, I know scheme lisp, batch, python and c++. So honestly since c++ is my most recent language, learning it was just learning a little bit of new syntax.
    what?!
    5 minutes?! how?
    Anything can PM me. I'm from Malaysia.

  12. #11
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Zuhrain View Post


    what?!
    5 minutes?! how?
    I just explained. Once you know several languages, learning a new language like c++ is just learning new syntax.

  13. #12
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    936
    Reputation
    32
    Thanks
    485
    My Mood
    Psychedelic
    Quote Originally Posted by lilghost8631 View Post
    May I ask why?

    Additional Information: I asked flengo and he said no because it would require a detour. I asked fenix and he said hacks like this do not require detours.
    @Flengo come on. You out of all people should know this will work. I tested it after reading this and it worked. It was very glitchy and i was instantly teleported way into the sky but it worked.




    ^Suck it!

  14. #13
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,178
    My Mood
    Inspired
    Quote Originally Posted by Skaterforeva1 View Post
    @Flengo come on. You out of all people should know this will work. I tested it after reading this and it worked. It was very glitchy and i was instantly teleported way into the sky but it worked.
    It shouldn't work. It'll last for a very short time if anything. Telling from testing from long time.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  15. #14
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    The fly was just a concept. The real goal here is chams which I think I just found the sig scan/pattern for (that was truly a hike). So, since I now (hopefully) have the pointer to the satellite chams, i should be able to just set the value to 1.0 and cham away.


    @Skaterforeva1 off topic: since you have bud in your sig, did you ever get any of that trainwreck strain that was making its way through manassas, gainesville and bristow?
    Last edited by lilghost8631; 12-22-2013 at 08:24 PM.

  16. #15
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    936
    Reputation
    32
    Thanks
    485
    My Mood
    Psychedelic
    Quote Originally Posted by lilghost8631 View Post
    The fly was just a concept. The real goal here is chams which I think I just found the sig scan/pattern for (that was truly a hike). So, since I now (hopefully) have the pointer to the satellite chams, i should be able to just set the value to 1.0 and cham away.


    @Skaterforeva1 off topic: since you have bud in your sig, did you ever get any of that trainwreck strain that was making its way through manassas, gainesville and bristow?
    It will most likely crash shortely after time, you will need to detour and hook it for it to last a while.

    /off topic
    Nah I have been smoking some plants that my friend grows locally. I have around two pounds of sour d so I havent been buy any lately. I have been selling a lot though.




    ^Suck it!

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] Would this work and not be banned? Spawning items for all players on a server.
    By LulzCode in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 2
    Last Post: 10-15-2012, 01:55 AM
  2. [Request] Source Code for this addy
    By jojit_0024 in forum WarRock Philippines Hacks
    Replies: 2
    Last Post: 08-31-2012, 09:05 AM
  3. [Request] Can Someone Check This Source Code For 1hit ZM?
    By BryanVB in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 11-12-2011, 03:51 PM
  4. Some One Try This Please Source Code For 1 Hit Hack
    By talamanak in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 28
    Last Post: 10-28-2010, 04:56 PM
  5. Would this work...?
    By Frolite in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-16-2006, 01:39 PM