Aimbot - NPC Check problem
Hello guys, im wanting to ask you if you guys know, how to identify an NPC.
for now the Aimbot still works for players but how would i check it for an NPC ?
i think it's an Object ID or somethink like that:
pPlayer->obj == NPC ID ?
Code:
for ( int i = 0; i < 16; i++ )
{
D3DXVECTOR3 Pos, MyPos;
PlayerInfo* pPlayer = GetPlayerByIndex( ulThis,i,0);
PlayerInfo* pLocal = GetLocalPlayer(ulThis);
if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0)
{
if(pLocal->Team != pPlayer->Team)
{
Pos = MyGetObjectMaxPos((int*)pPlayer->obj);
MyPos = MyGetObjectMaxPos((int*)pLocal->obj);
if(((FindDistance(MyPos, Pos, pPlayer, pLocal))/10) < fNearest )
{
iAimAt = i;
fNearest = (FindDistance(MyPos, Pos, pPlayer, pLocal))/10;
}
}
}
}