Entity

Posts 1–8 of 8 · Page 1 of 1
Entity
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);
}
The TotalShotsFired and IsShooting is nice, thanks.
Quote Originally Posted by failnoobgamer View Post
Could be useful?
Code:
DWORD EntityList = 0x101FA9BE;

class pLocalEntity
{
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 pLocalEntity::GetHealth(DWORD Entity)
{
	return *(DWORD*)(Entity - 0x212);
}

int pLocalEntity::GetAP(DWORD Entity)
{
	return *(DWORD*)(Entity - 0x216);
}

int pLocalEntity::GetPrimaryAmmo(DWORD Entity)
{
	return *(DWORD*)(Entity - 0x13E);
}

int pLocalEntity::GetSecondaryAmmo(DWORD Entity)
{
	return *(DWORD*)(Entity - 0x13A);
}

int pLocalEntity::GetTotalShotsFired(DWORD Entity)
{
	return *(DWORD*)(Entity + 0x17);
}

bool pLocalEntity::IsShooting(DWORD Entity)
{
	return (bool)((*(DWORD*)(Entity + 0xDA)) == 1 ? true : false);
}
This for SEA right ? hmm nice .
Function return type is int but you return DWORD...
Quote Originally Posted by Caezer99 View Post
Function return type is int but your return DWORD...
Ooops i forgot.. I was rushing it
class pEntity?

not

class cPlayer?

Are you sure other entities have those things.
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us