Solved Csgo Glow hack Question 0x38

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

tappineapple

Full Member
Jun 6, 2019
33
568
3
Game Name
CSGO
Anticheat
N/A
Tutorial Link
https://www.youtube.com/watch?v=jutZzuvX8Qs
How long you been coding/hacking?
2 Weeks
Coding Language
C++
So I'm following the csgo glow tutorial and I notice that he is using 0x38.
C++:
 MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x4), 0);
I understand the 0x4 is because the numbers are 4 bytes in size (i think :p) but why do you multiply entity * 0x38?

Basically I'm just looking for a deeper understanding of how it works, I don't like writing code and having no clue why it does what it does.

Here is main.cpp if you're curious.
main:
#include <Windows.h>
#include "MemMan.h"
#include <iostream>

MemMan MemClass;

struct variables
{
    DWORD localPlayer;
    DWORD gameModule;

}var;

struct offsets
{
    DWORD glowIndex = 0xA438;
    DWORD dwGlowObjectManager = 0x529B2B8;
    DWORD localPlayer = 0xD3EC5C;
    DWORD entityList = 0x4D5344C;;
    DWORD team = 0xF4;
}offset;


int main()
{
    int procID = MemClass.getProcess("csgo.exe");
    var.gameModule = MemClass.getModule(procID, "client.dll");
    var.localPlayer = MemClass.readMem<DWORD>(var.gameModule + offset.localPlayer);

    if (var.localPlayer == NULL)
        while (var.localPlayer == NULL)
            var.localPlayer = MemClass.readMem<DWORD>(var.gameModule + offset.localPlayer);



    while (true)
    {
        DWORD glowObject = MemClass.readMem<DWORD>(var.gameModule + offset.dwGlowObjectManager);
        int myTeam = MemClass.readMem<int>(var.localPlayer + offset.team);

        for (short int i = 0; i < 64; i++)
        {

            DWORD entity = MemClass.readMem<DWORD>(var.gameModule + offset.entityList + i * 0x10);
            if (entity != NULL)
            {
                int glowIndex = MemClass.readMem<int>(entity + offset.glowIndex);
                int entityTeam = MemClass.readMem<int>(entity + offset.team);

                if (myTeam == entityTeam)
                {
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x4), 0);// r
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x8), 0);// g
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0xC), 2); // b
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x10), 1.7f); //  alpha

                }
                else
                {
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x4), 2);// r
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x8), 0);// g
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0xC), 0); // b
                    MemClass.writeMem<float>(glowObject + ((glowIndex * 0x38) + 0x10), 1.7f); //  alpha

                }
                MemClass.writeMem<bool>(glowObject + ((glowIndex * 0x38) + 0x24), true);
                MemClass.writeMem<bool>(glowObject + ((glowIndex * 0x38) + 0x25), false);

            }

         }

        Sleep(1);
    }

}
Thanks in advance!
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods