Glow ESP c#

Posts 1–3 of 3 · Page 1 of 1
Glow ESP c#
Hey guys, currently i'm new to the game hacking scene but not new to programming.
Anyway, what my issue is, is that when i try to access the player entity list it returns nothing but zero. I've tried various combinations and i cannot seem to find the way of doing it. This is my code for my loop:

Code:
int ClientAddress =  Memory.GetClientAddress(); // works

            for (var i = 1; i < 65; i++)
                {
                    int CurrentPlayer = Memory.ReadInt(ClientAddress + Signatures.dwEntityList + (i - 1) * 0x10); // returns 0
                    
                    int playerGI = Memory.ReadInt(ClientAddress + CurrentPlayer + Netvars.m_iGlowIndex); // also returns 0 cause it needs the current player address

                    Console.WriteLine("Current Selected Player: " + CurrentPlayer);
                    Console.WriteLine("Player Glow Index: " + playerGI);

                    // idk if this is gonna work, but we'll see
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x4), 1);
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x8), 0);
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0xC), 0);
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x10), 1);
                    Memory.WriteBool(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x24), true);
                    Memory.WriteBool(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x25), false);
                    Thread.Sleep(10);

            }
            Console.WriteLine("Process complete, check esp");
            Console.ReadKey();
The issue Seems to lie somewhere in my selection of the current player which returns zero everytime its loops through. I believe personally that this issue lies in my ReadInt function which requires the process handle (Ive tried multiple combinations of addresses and client address in the hopes to find the issue), Though i am not entirely sure what the process handle is or how to get it.

Code:
       
 public static int ReadInt(int address)
        {         
                byte[] arr = new byte[4];
                ReadProcessMemory(ProcHandle, address, arr, 4, 0);
                return BitConverter.ToInt32(arr, 0);
        }
Any other code snippets you need ill happily tender. (All offsets are sourced from Hazedumpers current list)
I've managed to get the process handle but now my loop is returning this:
Code:
 708
Current Selected Player: 229549584
Player Glow Index: 0
Current Selected Player: -2101166832
Player Glow Index: 0
Current Selected Player: -1884941056
Player Glow Index: 0
Current Selected Player: -1874858512
Player Glow Index: 0
Current Selected Player: -1993745152
Player Glow Index: 0
Current Selected Player: -2003543488
Player Glow Index: 0
Current Selected Player: 775373744
Player Glow Index: -1328674054
Current Selected Player: -1988644848
Player Glow Index: 0
Current Selected Player: -1877162896
Player Glow Index: 0
Current Selected Player: -2005117968
Player Glow Index: 0
Current Selected Player: -1990804656
Player Glow Index: 0
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Process complete, check esp
- - - Updated - - -

I've managed to get the process handle but now my loop is returning this:
Code:
 708
Current Selected Player: 229549584
Player Glow Index: 0
Current Selected Player: -2101166832
Player Glow Index: 0
Current Selected Player: -1884941056
Player Glow Index: 0
Current Selected Player: -1874858512
Player Glow Index: 0
Current Selected Player: -1993745152
Player Glow Index: 0
Current Selected Player: -2003543488
Player Glow Index: 0
Current Selected Player: 775373744
Player Glow Index: -1328674054
Current Selected Player: -1988644848
Player Glow Index: 0
Current Selected Player: -1877162896
Player Glow Index: 0
Current Selected Player: -2005117968
Player Glow Index: 0
Current Selected Player: -1990804656
Player Glow Index: 0
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Current Selected Player: 0
Player Glow Index: 335922944
Process complete, check esp
int CurrentPlayer = Memory.ReadInt(ClientAddress + Signatures.dwEntityList + (i - 1) * 0x10); // returns 0

^ - your client address is wrong or sth is fck up with memory class

int playerGI = Memory.ReadInt(ClientAddress + CurrentPlayer + Netvars.m_iGlowIndex); // also returns 0 cause it needs the current player address

^ - you should read the glow index like that:

int playerGI = Memory.ReadInt(CurrentPlayer + Netvars.m_iGlowIndex);

u add client address to the base addresses ( signatures: most of them )

u can take a look on source code of my first csgo cheat:
https://www.mpgh.net/forum/showthread.php?t=1303168
ik code is ugly right
after u update the offsets it should still work

- - - Updated - - -

Memory.WriteBool(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x24), true);
Memory.WriteBool(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x25), false);

it's safer to write byte 1, 0 from my experience
c# bools are sometimes fcked up and dont always work

- - - Updated - - -

for (var i = 1; i < 65; i++)

change to:

for (var i = 0; i < 64; i++)

(index 0 is world so u can skip it but max length should be 64)

- - - Updated - - -

Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x4), 1);

this should be:

var glowObjectManager = readInt(ClientAddress + Signature.dwGlowObjectManager);
Memory.WriteInt(glowObjectManager + (playerGI * 0x38 + 0x4), 1);

- - - Updated - - -

Console.WriteLine("Process complete, check esp");
Console.ReadKey();

if you want to see esp you have to put this in while loop

Code:
while(true) {

            int ClientAddress =  Memory.GetClientAddress(); // works

            for (var i = 1; i < 65; i++)
                {
                    int CurrentPlayer = Memory.ReadInt(ClientAddress + Signatures.dwEntityList + (i - 1) * 0x10); // returns 0
                    
                    int playerGI = Memory.ReadInt(ClientAddress + CurrentPlayer + Netvars.m_iGlowIndex); // also returns 0 cause it needs the current player address

                    Console.WriteLine("Current Selected Player: " + CurrentPlayer);
                    Console.WriteLine("Player Glow Index: " + playerGI);

                    // idk if this is gonna work, but we'll see
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x4), 1);
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x8), 0);
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0xC), 0);
                    Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x10), 1);
                    Memory.WriteBool(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x24), true);
                    Memory.WriteBool(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x25), false);
                    Thread.Sleep(10);

            }

            Thread.Sleep(1); // prevent high cpu usage
}
csgo reverts ur changes really quickly so you have to brute force it

- - - Updated - - -

Memory.WriteInt(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x4), 1);

this should be

Memory.WriteFloat(ClientAddress + Signatures.dwGlowObjectManager + (playerGI * 0x38 + 0x4), 255f);

same with 4 others
glow colors are floats with range 0f - 255f
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us