Results 1 to 3 of 3
  1. #1
    othales's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired

    Exclamation My Code Aimbot PBBR

    My Code

    Code:
    Code:
    ...
    
    int GetPriorityTarget()
    {
    	int Result = -1;
    	float fMaxDistance = 100.0f;
    	D3DXVECTOR3 PlayerEnd, LocPlayer;
    
    	for (int iSlot = 0; iSlot < 16; iSlot++)
    	{
    		if (GetCharaIndex() != iSlot && (!IsSpawn(iSlot)))
    		{
    			if (GetCharaIndex() %2 != iSlot % 2)
    			{
    				GetBoneById(LocPlayer, GetCharaIndex(), 7);
    				GetBoneById(PlayerEnd, iSlot, 7);
    				if (CalcDistance(LocPlayer, PlayerEnd) < fMaxDistance)
    				{
    					fMaxDistance = CalcDistance(PlayerEnd, LocPlayer);
    					Result = iSlot;			
    				}
    			}
    		}
    	}
    	return Result;
    }
    
    void AimToEnemy(int nIdx,int AimBone)
    {
        	D3DXVECTOR3 vDist;
    	D3DXVec3Subtract(&vDist, &GetBoneById2(nIdx, AimBone), &GetBoneById2(GetMySlot(), 7));
        	CPlayer* Player = (CPlayer*)(*(DWORD*)(g_pPlayer));
    	Player->Camera->Yaw = atan2(vDist.y, D3DXVec3Length(&vDist));
    	Player->Camera->Pitch = atan2(vDist.x, vDist.z);
    }
    My Problem is locks the screen and close the game
    Yaw does not have the angle 0º

    Help Please

  2. #2
    othales's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    My Problem Resolved Thanks

  3. #3
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    Problem was solved, Closed.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



Similar Threads

  1. [Source Code] Source Code Aimbot funcional... By JulioCesar
    By Juliocesar in forum Combat Arms BR Hack Coding/Source Code
    Replies: 5
    Last Post: 10-20-2011, 10:13 AM
  2. [Request] Source Code AIMBOT
    By egarn2 in forum C++/C Programming
    Replies: 5
    Last Post: 07-21-2011, 12:20 PM
  3. [Source Code] Aimbot code
    By toobad in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 19
    Last Post: 04-04-2011, 08:07 PM
  4. [Source Code] I Have Code Source! PBBR
    By ramonzin14 in forum Point Blank Hacks
    Replies: 1
    Last Post: 03-25-2011, 09:22 PM
  5. Codes Aimbot maker v1.2
    By mini-icones in forum CrossFire Discussions
    Replies: 18
    Last Post: 03-24-2010, 02:44 PM