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
this is my glow esp code:
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?
in my offsets i put this
Code:
const DWORD CWeaponGlock = 206;
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);
}
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?
