i don't understand this code.... [Glowhack]

Posts 1–6 of 6 · Page 1 of 1
i don't understand this code.... [Glowhack]
i already know C and i'm trying to code my own GLOW hack but i don't understand some stuff

Code:
void GlowEsp()
{
	DWORD glow_LocalBase = proM.Read<DWORD>(Client + m_dwLocalPlayerIndex);
	DWORD glow_Pointer = proM.Read<DWORD>(Client + m_dwGlowObject);
	int MyTeamID = proM.Read<int>(glow_LocalBase + m_iTeamNum);

	for (int i = 0; i < 32; i++)
	{
		int glow_currentPlayer = proM.Read<int>(Client + m_dwEntityList + i * 0x10);
		bool glow_currentPlayerDormant = proM.Read<bool>(glow_currentPlayer + m_bDormant);
		int glow_currentPlayerGlowIndex = proM.Read<int>(glow_currentPlayer + m_iGlowIndex);
		int EntityBaseTeamID = proM.Read<int>(glow_currentPlayer + m_iTeamNum);

		if (glow_currentPlayerDormant == 1 || EntityBaseTeamID == 0)
			continue;
		else
			if (MyTeamID != EntityBaseTeamID || GlowTeamCheck == false)
				switch (EntityBaseTeamID)	// 1 GoTV; 2 T; 3 CT
				{
					case 2:
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), GlowTerroristRed);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x8)), GlowTerroristGreen);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0xC)), GlowTerroristBlue);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x10)), GlowTerroristAlpha);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x24)), true);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x25)), false);
						break;
					case 3:
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), GlowCounterTerroristRed);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x8)), GlowCounterTerroristGreen);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0xC)), GlowCounterTerroristBlue);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x10)), GlowCounterTerroristAlpha);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x24)), true);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x25)), false);
						break;
				}
	}
}
i don't understand this part
Code:
proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), GlowTerroristRed);
why is glow_currentPlayerGlowIndex multiplying by 0x34? and then sum 0x4? why?

i don't understand this part too
Code:
if (MyTeamID != EntityBaseTeamID || GlowTeamCheck == false)
here is the source
https://github.com/Kyrr0/GlowESPⓘ
Quote Originally Posted by GookPro View Post
i already know C and i'm trying to code my own GLOW hack but i don't understand some stuff

Code:
void GlowEsp()
{
	DWORD glow_LocalBase = proM.Read<DWORD>(Client + m_dwLocalPlayerIndex);
	DWORD glow_Pointer = proM.Read<DWORD>(Client + m_dwGlowObject);
	int MyTeamID = proM.Read<int>(glow_LocalBase + m_iTeamNum);

	for (int i = 0; i < 32; i++)
	{
		int glow_currentPlayer = proM.Read<int>(Client + m_dwEntityList + i * 0x10);
		bool glow_currentPlayerDormant = proM.Read<bool>(glow_currentPlayer + m_bDormant);
		int glow_currentPlayerGlowIndex = proM.Read<int>(glow_currentPlayer + m_iGlowIndex);
		int EntityBaseTeamID = proM.Read<int>(glow_currentPlayer + m_iTeamNum);

		if (glow_currentPlayerDormant == 1 || EntityBaseTeamID == 0)
			continue;
		else
			if (MyTeamID != EntityBaseTeamID || GlowTeamCheck == false)
				switch (EntityBaseTeamID)	// 1 GoTV; 2 T; 3 CT
				{
					case 2:
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), GlowTerroristRed);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x8)), GlowTerroristGreen);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0xC)), GlowTerroristBlue);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x10)), GlowTerroristAlpha);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x24)), true);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x25)), false);
						break;
					case 3:
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), GlowCounterTerroristRed);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x8)), GlowCounterTerroristGreen);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0xC)), GlowCounterTerroristBlue);
						proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x10)), GlowCounterTerroristAlpha);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x24)), true);
						proM.Write<BOOL>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x25)), false);
						break;
				}
	}
}
i don't understand this part
Code:
proM.Write<float>((glow_Pointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), GlowTerroristRed);
why is glow_currentPlayerGlowIndex multiplying by 0x34? and then sum 0x4? why?

i don't understand this part too
Code:
if (MyTeamID != EntityBaseTeamID || GlowTeamCheck == false)
here is the source
https://github.com/Kyrr0/GlowESP
I think the second part is about do you want the glow to be visible on your team mates or not i am not sure about the first part but i think it is about terrorist glow color and i think the 0x34 and 0x4 is the pointer address for it.
Quote Originally Posted by hariscr746 View Post
I think the second part is about do you want the glow to be visible on your team mates or not i am not sure about the first part but i think it is about terrorist glow color and i think the 0x34 and 0x4 is the pointer address for it.
so i need to find those offsets in CS.GO? or simpletly is a color in hexadecimal
0x34 which nowaday is 0x38 is the struct size of the glow, and +0x4 ... 0x8 ... 0xC "thing" you say, its the pad to that struct value...

About the team check part? wtf????????? if your team is different than ENTITY team it means that the ENTITY is an ENEMY, else its a teammate or spectator.
Quote Originally Posted by PhY'z View Post
0x34 which nowaday is 0x38 is the struct size of the glow, and +0x4 ... 0x8 ... 0xC "thing" you say, its the pad to that struct value...

About the team check part? wtf????????? if your team is different than ENTITY team it means that the ENTITY is an ENEMY, else its a teammate or spectator.
Thank you now i understand it, how could i get the pad of this struct?
Quote Originally Posted by GookPro View Post
Thank you now i understand it, how could i get the pad of this struct?
https://en.cppreference.com/w/cpp/language/sizeof
sum the size of the element till you reach the one u want. "pad" as i said isnt the right word, but better for understand.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?