HelpWeapon Id..

Posts 1–7 of 7 · Page 1 of 1
Weapon Id..
I'm stupid. Idk why it is not working...
I'm trying to get active weapon id

Code:
                        if (EspActiveWeapon)
                        {

                            var weaponEntityId = m[entityPointer, false].Read<int>(m_hActiveWeapon);
                            weaponEntityId &= 0xFFF;

                            var weaponEntityPointer = m["client.dll"].Read<IntPtr>(Memory.EntityListBase + (weaponEntityId - 1) * 0x10);

                            var weaponId = m[weaponEntityPointer , false].Read<int>(m_iWeaponID);
                        }
everything works fine until weaponId reading.
all values/pointers are changing correctly.
but weaponId is returning 257 all the time.
Active Weapon :
Code:
int iGetActiveWeapon()
{
         DWORD wpnhandl = Memory.Read<DWORD>(BaseEntity + Offsets.m_hActiveWeapon) & 0xFFF;
	 DWORD wpnadd = Memory.Read<DWORD>(GetClientDLL() + Offsets.m_dwEntityList + (wpnhandl - 1) * 0x10);
         return Memory.Read<int>(wpnadd + Offsets.m_iItemDefinitionIndex);
}
And now esp codenz, pseudocode
Code:
if(bWeaponESP)
{
   draw.whatever(x,y,colorez,wpn_name_array[iGetActiveWeapon()]);
}
Quote Originally Posted by armez47 View Post
Active Weapon :
Code:
int iGetActiveWeapon()
{
         DWORD wpnhandl = Memory.Read<DWORD>(BaseEntity + Offsets.m_hActiveWeapon) & 0xFFF;
	 DWORD wpnadd = Memory.Read<DWORD>(GetClientDLL() + Offsets.m_dwEntityList + (wpnhandl - 1) * 0x10);
         return Memory.Read<int>(wpnadd + Offsets.m_iItemDefinitionIndex);
}
And now esp codenz, pseudocode
Code:
if(bWeaponESP)
{
   draw.whatever(x,y,colorez,wpn_name_array[iGetActiveWeapon()]);
}
what's the current offset of m_iItemDefinitionIndex ?
m_iItemDefinitionIndex = 0x2F88
Quote Originally Posted by armez47 View Post
m_iItemDefinitionIndex = 0x2F88
Now it works
btw how can i get this value?
is there any dumper with this value?
Quote Originally Posted by Zaczero View Post


Now it works
btw how can i get this value?
is there any dumper with this value?
y3t1y3t dumper, netvar section. You're a little hopeless, search button doesn't bite
Quote Originally Posted by armez47 View Post
y3t1y3t dumper, netvar section. You're a little hopeless, search button doesn't bite
thanks xd
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us