Results 1 to 3 of 3
  1. #1
    >Tiger<'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    -
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Sad

    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;
    				}
    			}
    		}
    	}

  2. #2
    pDevice's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    d3d9.h
    Posts
    1,306
    Reputation
    15
    Thanks
    420
    My Mood
    Stressed
    Use CharacterFX



  3. #3
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,587
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    In your for loop just add a conditional check to check if its an NPC or not.

    Using the CharacterFX Class.

    Code:
    			cCharacterFX* cNPC = (cCharacterFX *)SFXMgr->SFXList[SFX_CHARACTER].List[i];
    
    
    			if( !pEngine->ValidPointer( cNPC ) )
    				continue;
    
    
    			if( cNPC->IsPlayer )
    				continue;
    Inside your for loop. Good luck, pretty straight forward.

    /Solved
    /Closed
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  4. The Following User Says Thank You to Flengo For This Useful Post:

    pDevice (01-16-2013)

Similar Threads

  1. Aimbot Visual Check Request
    By asda12348 in forum Combat Arms Hack Requests
    Replies: 1
    Last Post: 09-15-2012, 09:26 AM
  2. [Patched] PiKaMucha_Itu Light CANA Aimbot, Npc Opk,AntiKick, Respawn,Chams Color, And More !
    By PikaMucha_Itu in forum Combat Arms Hacks & Cheats
    Replies: 68
    Last Post: 06-21-2012, 06:29 AM
  3. [Source Code] GX4HXR | GHOST MODE | TELE KILL | AIMBOT | NPC OPK | SPRITE | MENU V1.0
    By Gx4hxR in forum Combat Arms BR Hack Coding/Source Code
    Replies: 110
    Last Post: 03-31-2012, 08:49 AM
  4. Aimbot Distance check and dont aim on women??
    By ChanceOfHax in forum Combat Arms Coding Help & Discussion
    Replies: 22
    Last Post: 02-28-2011, 05:24 AM
  5. Problem with aimbot
    By EliteSlayer in forum Battlefield Heroes Hacks
    Replies: 8
    Last Post: 05-23-2009, 05:50 PM