Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Sandwich's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    client_panorama.dll
    Posts
    1,512
    Reputation
    98
    Thanks
    23,162
    My Mood
    Psychedelic

    Lightbulb C++ Basic Radar Hack

    C++ Basic Radar Hack Function
    Recently I have seen a lot of people asking how to create a basic radar hack. Let me know if you have any questions.

    Code:
    struct Offsets {
        DWORD dwLocalPlayer = 0xCBD6B4;
        DWORD dwEntityList = 0x4CCDBFC;
        DWORD m_iTeamNum = 0xF4;
        DWORD m_bSpotted = 0x93D;
        DWORD m_bDormant = 0xED;
    } offsets;
    
    void ToggleRadar() {
    		if (Radar) {
    			DWORD LocalPlayer = ReadMemory<DWORD>(mod.Client + offsets.dwLocalPlayer);
    			int playerTeam = ReadMemory<int>(LocalPlayer + offsets.m_iTeamNum);
    			for (int i = 0; i < 32; i++) {
    				DWORD Entity = ReadMemory<DWORD>(mod.Client + offsets.dwEntityList + (i * 0x10));
    				int entityTeam = ReadMemory<int>(Entity + offsets.m_iTeamNum);
    				bool isEntityDormant = ReadMemory<bool>(Entity + offsets.m_bDormant);
    				bool isEntitySpotted = ReadMemory<bool>(Entity + offsets.m_bSpotted);
    				if (!isEntityDormant && entityTeam != playerTeam) {
    					if (!isEntitySpotted) 
    						WriteMemory<int>(Entity + offsets.m_bSpotted, 1);
    				}
    				else { continue; }
    			}
                            Sleep(1);
    		}
    	}
    Last edited by Sandwich; 01-09-2019 at 10:48 PM.

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

    deathsecrets (05-09-2019),ItsBl4z3 (01-10-2019),manuelsantos92 (01-22-2019),sujeito (04-04-2019),themis2523 (05-21-2019)

  3. #2
    Not Officer's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    3,654
    Reputation
    836
    Thanks
    152,064
    My Mood
    Amused
    A bit improved:

    Code:
    struct Offsets
    {
        DWORD dwLocalPlayer = 0xCBD6B4;
        DWORD dwEntityList = 0x4CCDBFC;
        DWORD m_iTeamNum = 0xF4;
        DWORD m_bSpotted = 0x93D;
        DWORD m_bDormant = 0xED;
        DWORD m_iHealth = 0x100;
    } offsets;
    
    void Radar()
    {
        for (;;)
        {
            DWORD localPlayer = ReadMemory<DWORD>(mod.Client + offsets.dwLocalPlayer);    
            int localPlayerTeam = ReadMemory<int>(localPlayer + offsets.m_iTeamNum);
    
            for (int i = 1; i <= 32; i++)
            {
                DWORD player = ReadMemory<DWORD>(mod.Client + offsets.dwEntityList + (i - 1) * 0x10);
                int playerTeam = ReadMemory<int>(player + offsets.m_iTeamNum);
    
                if (playerTeam == localPlayerTeam || playerTeam == 1)
                    continue;
    
                bool isPlayerDormant = ReadMemory<bool>(player + offsets.m_bDormant);
    
                if (isPlayerDormant)
                    continue;
    
                int playerHealth = ReadMemory<int>(player + offsets.m_iHealth);
    
                if (playerHealth <= 0)
                    continue;
    
                bool isPlayerSpotted = ReadMemory<bool>(player + offsets.m_bSpotted);
    
                if (isPlayerSpotted)
                    continue;
    
                WriteMemory<bool>(player + offsets.m_bSpotted, 1);
            }
            
            Sleep(200);
        }
    }
    Last edited by Not Officer; 01-10-2019 at 12:22 PM.









  4. The Following 3 Users Say Thank You to Not Officer For This Useful Post:

    deathsecrets (05-09-2019),manuelsantos92 (01-22-2019),themis2523 (05-21-2019)

  5. #3
    Sandwich's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    client_panorama.dll
    Posts
    1,512
    Reputation
    98
    Thanks
    23,162
    My Mood
    Psychedelic
    Quote Originally Posted by OfficerX View Post
    A bit improved:
    Both will work perfect I just wanted to provide a basic function for anyone to use and improve upon.
    Last edited by Sandwich; 01-10-2019 at 12:50 PM.

  6. #4
    Not Officer's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    3,654
    Reputation
    836
    Thanks
    152,064
    My Mood
    Amused
    Quote Originally Posted by Sandwich View Post
    Both will work perfect I just wanted to provide a basic function for anyone to use and improve upon.
    Well, you should check for health or lifestate too and dont write as integer to bspotted.
    Last edited by Not Officer; 01-12-2019 at 12:53 AM.









  7. The Following User Says Thank You to Not Officer For This Useful Post:

    deathsecrets (05-09-2019)

  8. #5
    Sandwich's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    client_panorama.dll
    Posts
    1,512
    Reputation
    98
    Thanks
    23,162
    My Mood
    Psychedelic
    Quote Originally Posted by OfficerX View Post


    Well, you should check for health or lifestate too.
    Yeah, that would be a good idea to avoid any unnecessary exceptions.
    Last edited by Sandwich; 01-12-2019 at 08:20 AM.

  9. #6
    iBloods's Avatar
    Join Date
    Aug 2018
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Question help!! <3

    how do i fix the errors get like 30 in vs 2017

  10. #7
    Sandwich's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    client_panorama.dll
    Posts
    1,512
    Reputation
    98
    Thanks
    23,162
    My Mood
    Psychedelic
    Quote Originally Posted by iBloods View Post
    how do i fix the errors get like 30 in vs 2017
    The function is only meant to be used as a reference. You still need an external project and a function to read and write memory.

  11. #8
    KF1337's Avatar
    Join Date
    Apr 2019
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    2
    My Mood
    Bored

    Question

    Actually, i've got a question about
    Code:
    DWORD LocalPlayer = ReadMemory<DWORD>(mod.Client + offsets.dwLocalPlayer);
    int playerTeam = ReadMemory<int>(LocalPlayer + offsets.m_iTeamNum);
    What's the point of using a DWORD for LocalPlayer but then using an integer for playerTeam, which uses LocalPlayer as input?
    Why not using one or the other for both variables?


    2nd question is about
    Code:
    DWORD Entity = ReadMemory<DWORD>(mod.Client + offsets.dwEntityList + (i * 0x10));
    Like seriously, how can someone know that you have to use (i * 0x10)? Where does the 0x10 come from?

    This might seem like "explain the whole code to me", but it's not LOL
    I get the point of the generic function, it's just this practical stuff that gets me stopped sometimes.

  12. #9
    Sandwich's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    client_panorama.dll
    Posts
    1,512
    Reputation
    98
    Thanks
    23,162
    My Mood
    Psychedelic
    Quote Originally Posted by KF1337 View Post
    Actually, i've got a question about
    Code:
    DWORD LocalPlayer = ReadMemory<DWORD>(mod.Client + offsets.dwLocalPlayer);
    int playerTeam = ReadMemory<int>(LocalPlayer + offsets.m_iTeamNum);
    What's the point of using a DWORD for LocalPlayer but then using an integer for playerTeam, which uses LocalPlayer as input?
    Why not using one or the other for both variables?


    2nd question is about
    Code:
    DWORD Entity = ReadMemory<DWORD>(mod.Client + offsets.dwEntityList + (i * 0x10));
    Like seriously, how can someone know that you have to use (i * 0x10)? Where does the 0x10 come from?

    This might seem like "explain the whole code to me", but it's not LOL
    I get the point of the generic function, it's just this practical stuff that gets me stopped sometimes.
    Local Player is a DWORD / uintptr_t.
    iTeam is an integer.
    0x10 is the distance between entities.

  13. #10
    KF1337's Avatar
    Join Date
    Apr 2019
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    2
    My Mood
    Bored
    Quote Originally Posted by Sandwich View Post


    Local Player is a DWORD / uintptr_t.
    iTeam is an integer.
    Did some research. It turned out that I missed that it is also a uintptr_t, therefore good for using as a parameter of an int (if I am not mistaken here)

    Quote Originally Posted by Sandwich View Post

    0x10 is the distance between entities.
    I was wondering how do we know this? And is 0x10 still considered an offset?

  14. #11
    Sandwich's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    client_panorama.dll
    Posts
    1,512
    Reputation
    98
    Thanks
    23,162
    My Mood
    Psychedelic
    Quote Originally Posted by KF1337 View Post
    I was wondering how do we know this?
    Look for "source-sdk-2013" on Git***, your brain will explode.

  15. The Following User Says Thank You to Sandwich For This Useful Post:

    KF1337 (05-14-2019)

  16. #12
    KF1337's Avatar
    Join Date
    Apr 2019
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    2
    My Mood
    Bored
    Quote Originally Posted by Sandwich View Post

    Look for "source-sdk-2013" on Git***, your brain will explode.
    ERROR. Buffer Overflow. Exit...

    No seriously, I found some of the stuff in the Source SDK, but not EntityList for example. Not sure waht to search for at this point.

    But still i like that you are posting easy examples.

  17. #13
    defaulto's Avatar
    Join Date
    Aug 2017
    Gender
    male
    Posts
    461
    Reputation
    427
    Thanks
    347
    My Mood
    Angelic
    Quote Originally Posted by KF1337 View Post
    I was wondering how do we know this? And is 0x10 still considered an offset?
    If you lookup the data/structures in Cheat Engine you also can see that there is always a gap between players which is 10. You also should find more informations around that.

    To reproduce this just search for your health. Decrease it. Search again for that value. Till you get a few less results. Then you need some knowledge how this tables are structured like. Memory View > Dissect Data/Structures > Follow the steps there.

    #LOGS
    12-02-2020 ⌨ [MPGH]defaulto got gifted the Premium Membership from [MPGH]Azuki - sponsored by [MPGH]Flengo.
    27-11-2019 ⌨ [MPGH]defaulto captured the GFX Team Base together with [MPGH]Howl & [MPGH]Poonce.
    08-14-2017 ⌨ defaulto joined the game.

  18. The Following User Says Thank You to defaulto For This Useful Post:

    KF1337 (05-21-2019)

  19. #14
    themis2523's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    240
    Reputation
    10
    Thanks
    8
    My Mood
    Amazed
    Thanks for this

  20. #15
    ADGHAM's Avatar
    Join Date
    Dec 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    pls i need some video tutorial how to make csgo cheats im new

Page 1 of 2 12 LastLast

Similar Threads

  1. basic tutorial hacks
    By Snowbrdd in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 10-16-2008, 04:14 PM
  2. one of my basic hotkey hacks
    By mtbman19 in forum WarRock - International Hacks
    Replies: 15
    Last Post: 06-30-2008, 08:33 AM
  3. Virtual basic warrock hack help!
    By iwanthacks121 in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 05-03-2008, 03:15 PM
  4. Visual Basic Vip Hacks
    By Jeckels in forum WarRock - International Hacks
    Replies: 17
    Last Post: 09-05-2007, 02:34 AM
  5. [EXCLUSIVE!!] Basic Wall Hack/Chams TuT
    By warrockk1ngs in forum WarRock - International Hacks
    Replies: 33
    Last Post: 08-28-2007, 09:59 PM

Tags for this Thread