Looping through all weapons CoD4
From UnKnoWnCheaTs Game Hacking Wiki
Posted by R4z8r.
The use of this is that you can actually loop through all the weapons, so you can create a weapon esp So, here it is:
#define WEAPONSIZE 0x44 CWeapon* CBot::GetWeaponByIndex( INT Index ) { CWeapon* pWeapon = (CWeapon*)((DWORD)0x748658 + Index * WEAPONSIZE ); return pWeapon; } class CWeaponInfo { public: char* ViewMode; //0000 char unknown1[216]; char* WeaponFx; //00DC }; class CWeapon { public: char unknown0[4]; CWeaponInfo* WeaponInfo; //0004 char unknown2[48]; char* Name; //0038 };
WeaponId can be found @ Entity + 0x190
Have fun!
Credits: Me