Reading Weapon Ammo
Hi,
Hoping this is an easy question. I have all of the offsets but I can't seem to read ammo correctly. Right now I'm trying this:
Where m_iClip1 is dwAmmo and dwWeapon is m_hActiveWeapon. It's not giving me the right values though. How should I go about reading ammo?
Hoping this is an easy question. I have all of the offsets but I can't seem to read ammo correctly. Right now I'm trying this:
Code:
DWORD myBase = manager->Read<DWORD>(client + dwLocalPlayer); DWORD weapon = manager->Read<DWORD>(myBase + dwWeapon); int ammo = manager->Read<int>(weapon + dwAmmo);

. On the topic of writing good code, you should avoid unnecessary constructs like this