Could be useful?
Code:
DWORD EntityList = 0x101FA9BE;
class cPlayer
{
public:
int GetHealth(DWORD Entity);
int GetAP(DWORD Entity);
int GetPrimaryAmmo(DWORD Entity);
int GetSecondaryAmmo(DWORD Entity);
int GetTotalShotsFired(DWORD Entity);
bool IsShooting(DWORD Entity);
};
int cPlayer::GetHealth(DWORD Entity)
{
return (int)*(DWORD*)(Entity - 0x212);
}
int cPlayer::GetAP(DWORD Entity)
{
return (int)*(DWORD*)(Entity - 0x216);
}
int cPlayer::GetPrimaryAmmo(DWORD Entity)
{
return (int)*(DWORD*)(Entity - 0x13E);
}
int cPlayer::GetSecondaryAmmo(DWORD Entity)
{
return (int)*(DWORD*)(Entity - 0x13A);
}
int cPlayer::GetTotalShotsFired(DWORD Entity)
{
return (int)*(DWORD*)(Entity + 0x17);
}
bool cPlayer::IsShooting(DWORD Entity)
{
return (bool)((*(DWORD*)(Entity + 0xDA)) == 1 ? true : false);
}