HelpReading WeaponID's

Posts 14 of 4 · Page 1 of 1
Reading WeaponID's
okay, so i was looking into Netvars, and i looked up "glock" to see if i can set a different color for when someone has a glock
in my offsets i put this
Code:
const DWORD CWeaponGlock = 206;
this is my glow esp code:
Code:
/*glow*/
/*    */
/*    */
void glowespnotfire()
{
	while (true)
	{
		DWORD LocalBase = Mem.Read<DWORD>(ClientDll + LocalPlayer);
		int localTeam = Mem.Read<int>(LocalBase + Team);
		int localTeamKnife = Mem.Read<int>(m_weaponMode);
		int CWeaponGlock = Mem.Read<int>(CWeaponGlock);


		if (notfireglowesp == true)
		{
			DWORD glow_GlowPointer = Mem.Read<DWORD>(ClientDll + glowObjectBase);
			for (int i = 0; i < 64; i++)
			{
				int glow_currentPlayer = Mem.Read<int>(ClientDll + EntityList + ((i - 1) * 16));
				int glow_currentPlayerTeam = Mem.Read<int>(glow_currentPlayer + Team);
				bool glow_currentPlayerDormant = Mem.Read<bool>(glow_currentPlayer + isDormant);
				int glow_currentPlayerHealth = Mem.Read<int>(glow_currentPlayer + m_iHealth);	
				int glow_currentPlayerGlowIndex = Mem.Read<int>(glow_currentPlayer + glowIndex);
				if (glow_currentPlayerDormant == 1)
				{
					continue;
				}
				else
				{
					if (CWeaponGlock == 1)
					{
						Mem.Write<float>((glow_GlowPointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x4)), 1.f);
						Mem.Write<float>((glow_GlowPointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x8)), 0.f);
						Mem.Write<float>((glow_GlowPointer + ((glow_currentPlayerGlowIndex * 0x34) + 0xC)), 0.f);
						Mem.Write<float>((glow_GlowPointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x10)), 1.f);
						Mem.Write<BOOL>((glow_GlowPointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x24)), true);
						Mem.Write<BOOL>((glow_GlowPointer + ((glow_currentPlayerGlowIndex * 0x34) + 0x25)), false);
					}
btw i just cut out the part that was relevant thats not the full part of my glow esp
am i reading/ telling it to set a different rgb color? i can't tell, the normal color shows up for both teams, it just doesn't actually read the if they have a glock out, again am i reading the id right?
Code:
int CWeaponGlock = Mem.Read<int>(CWeaponGlock);
Lol.

I suggest you think about it one more time.

What do you want to do?

Exactly, know if enemy x or enemy y has a glock.

So, you read

Code:
Mem.Read<int>(CWeaponGlock);
wat?

I've never worked with netvars, but this is just logical lol
Code:
weapon1 = Read->Process<DWORD>(Add + 0x12C0);
weapon2 = weapon1 & 0xFFF;
weapon3 = Read->Process<DWORD>(Client + EntityList + ((weapon2 - 1) * 0x10));
weapon4 = Read->Process<int>(weapon3 + 0x00001690);
And Add is basiclly Client + Entitylist as DWORD.

And weapon4 will print out the weapon id for each entity:
https://tf2b.com/itemlist.php?gid=730
Quote Originally Posted by LittleRoxo View Post
Code:
weapon1 = Read->Process<DWORD>(Add + 0x12C0);
weapon2 = weapon1 & 0xFFF;
weapon3 = Read->Process<DWORD>(Client + EntityList + ((weapon2 - 1) * 0x10));
weapon4 = Read->Process<int>(weapon3 + 0x00001690);
And Add is basiclly Client + Entitylist as DWORD.

And weapon4 will print out the weapon id for each entity:
https://tf2b.com/itemlist.php?gid=730
I have been searching for a solution for days now and you just saved me, thanks :3
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?