Results 1 to 4 of 4
  1. #1
    bmwmatt's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Smile Another annoying newbie.. - quick help on localbase

    Hi all,

    This is my first post so sorry if I have violated any rules.

    After learning c++ for a couple of weeks I have gotten into putting together my first botched cheat for csgo.
    I have used a tweaked procmem (thanks to Yamiez and his awesome tutorial) for the hook and I know for a fact the game is attached as I can write +jump etc into my program and it works in game.

    I am so close to finally get my first bhop cheat working however I am utterly confused with a 'localbase'

    See below:

    Code:
    const DWORD localBase = 0x00A7D4CC;
    const DWORD flagOffset = 0x100; 
    const DWORD jumpOffset = 0x04F33AA8;
    
    void bhopF() {
    	
    	
    
    
    	
    	//DWORD ClientDLL = Mem.Module("client.dll");
    
    	DWORD clientdll, clientdllsize;
    	int onFloor = 257; 
    
    		clientdll = gMemory->Module("client.dll", clientdllsize);
    		gMemory->Process("csgo.exe");
    
    		
    	    DWORD localPlayer = Mem.Read<DWORD>(clientdll + localBase); // This is our local player. 
    		int m_fFlags = Mem.Read<DWORD>(localPlayer + flagOffset); // this is m_fFlags.
    
    		
    
    		
    
    	
    		if (GetAsyncKeyState(key_space) & 0x8000 && m_fFlags == onFloor) { /* If player is holding space, and m_fFlags is equal to 257 press space.*/
    			std::cout << "BHOP!";
    			gMemory->Write<int>(clientdll + jumpOffset, 5);
    			Sleep(100);
    			gMemory->Write<int>(clientdll + jumpOffset, 4);
    		}
    
    
    
    		}
    Can anyone enlighten me on where I find this localbase value? Is it just an offset or am I completely mixed up here?

    I have tried using different offsets from updated lists but I'm honestly now sure which one I'm looking for.

    I just need this to work -
    Code:
     DWORD localPlayer = Mem.Read<DWORD>(clientdll + localBase); // This is our local player.
    Thanks so much.

  2. #2
    Epik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    1,144
    Reputation
    263
    Thanks
    12,120
    My Mood
    Amused
    The offset you need is the name of the address you're trying to read.

    m_dwLocalPlayer?

  3. The Following User Says Thank You to Epik For This Useful Post:

    Hunter (04-29-2016)

  4. #3
    bmwmatt's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    I actually managed to figure this out but yes you were right... haha.

    Nothing like that feeling when something finally works for the first time even if it using 30% cpu because my program is so horribly optimised/coded!

    Thanks

  5. #4
    rwby's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    client.dll
    Posts
    1,631
    Reputation
    142
    Thanks
    6,724
    // Solved & Closed

Similar Threads

  1. [Help Request] Quick help with .ahk script (Should be easy)
    By Limit67 in forum Realm of the Mad God Help & Requests
    Replies: 1
    Last Post: 08-04-2014, 07:09 AM
  2. [Help Request] Yep another freakin kid needs help.
    By Broseff in forum Combat Arms Coding Help & Discussion
    Replies: 25
    Last Post: 07-29-2012, 12:24 AM
  3. [Help Request] Need Some Quick Help With IPB Board API
    By pilotberry in forum C++/C Programming
    Replies: 0
    Last Post: 06-28-2012, 10:52 PM
  4. [Help Request] need some really quick help
    By yair in forum Java
    Replies: 3
    Last Post: 02-21-2012, 03:37 PM
  5. [Help Request] Quick Help Needed
    By TeamDarkness in forum Call of Duty Modern Warfare 3 Help
    Replies: 1
    Last Post: 02-06-2012, 07:58 PM