Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    boboben1's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    29
    My Mood
    Paranoid

    My aimbot is crashing in-game :(

    My first aimbot keeps crashing. Any suggestions would be appreciated.

    Code:
    void Aimbot( )
    {
    	//if (!IsBadReadPtr(pPlayerManager->clientPlayer,sizeof(pPlayerManager->clientPlayer)))
    	//{
        float AimDistance, BulletDelay;
        CObject* t_obj;
        CObject_Weapon * weapon = (CObject_Weapon*)pPlayerManager->clientPlayer->soldier->pObject->weapon;
            
            CTemplate* pWeaponTemplate =
    			(CTemplate*) weapon->weponTemplate;
    
        float projectile_speed = pPlayerManager->clientPlayer->soldier->pObject->weapon->weponTemplate->velocity;
    
    
        D3DXVECTOR3    AimSpot,v3TempVec;
    
        CPlayer * BestTarget = 0;
        FLOAT Saved = (FLOAT)INT_MAX;
    
        int BestID = -1;
    
        for(int i = 0; i < 255; i++) 
        {
            CPlayer* TargetPlayer = pPlayerManager->getPlayerByIndex(i);
            BestID = i;
            if ( TargetPlayer && IsValidTarget( TargetPlayer ) && (TargetPlayer->team != pPlayerManager->clientPlayer->team) && (IsBadReadPtr((void*)TargetPlayer->soldier->pObject,4)))
            {
        
                if(!getPosition(&AimSpot,TargetPlayer,6))
                    continue;
    
                if(isVisible(TargetPlayer,6)) 
                    continue;
    
                D3DXVECTOR3 target_velocity_vec(0.0f, 0.0f, 0.0f);
                if (TargetPlayer->soldier->pObject->objectPhysics->speed)
                    target_velocity_vec = ( TargetPlayer->soldier->pObject->objectPhysics->speed);
    
                D3DXVECTOR3 bla = AimSpot - ViewMatrix[3];
                AimDistance = D3DXVec3Length(&bla);
                BulletDelay = AimDistance / projectile_speed;
                AimSpot = AimSpot + target_velocity_vec * BulletDelay;
    
                v3TempVec = AimSpot - ViewMatrix[3];
                D3DXVec3Normalize( &v3TempVec, &v3TempVec );
    
                if(AimDistance < Saved || !AimDistance)
                {
                    if(i = BestID)
                    {
                        BestTarget = TargetPlayer;
                        BestID = i;
                    }
                    Saved = AimDistance;
                }
            }
            }
            if ( BestTarget == NULL || BestTarget == 0 || !BestTarget)
                return;
    
            //CompensateDeviation( &v3TempVec );// no spread call
    
            float flAspectRatio = pPlayerManager->clientPlayer->camera->GetInsideFieldOfView() / pPlayerManager->clientPlayer->zoom2 / 5.0f;
           InputBuffer[ 4 ] = D3***oDegree( asinf( D3DXVec3Dot(&ViewMatrix[0], &v3TempVec ) ) * flAspectRatio );
            InputBuffer[ 5 ] = D3***oDegree( -asinf( D3DXVec3Dot(&ViewMatrix[1], &v3TempVec ) ) * flAspectRatio );
    	//}
    }

  2. The Following User Says Thank You to boboben1 For This Useful Post:

    Asuamaeaquelabiscoitera (01-15-2012)

  3. #2
    thewisedumbguy9's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    in canadia
    Posts
    355
    Reputation
    14
    Thanks
    24
    My Mood
    Inspired
    wait, if i compile this will it work? (and it's crashing cuz punkbuster is recognizing a familiar line of code, best if u give this a little bit more "stealthy" coding
    hey guys i made my very first youtube video and i'dlike to know what you think and how i could improve it or what features i can add, you're the best MPGH, props to all of you


  4. #3
    yoda23456's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    420Sweden
    Posts
    1,333
    Reputation
    16
    Thanks
    380
    My Mood
    Cheerful
    Hehe Thnx for the code :P

  5. #4
    Viibez's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    5,828
    Reputation
    801
    Thanks
    2,778
    My Mood
    Amused
    lemme check bro .

  6. #5
    firehybrid21's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    5
    Quote Originally Posted by thewisedumbguy9 View Post
    wait, if i compile this will it work? (and it's crashing cuz punkbuster is recognizing a familiar line of code, best if u give this a little bit more "stealthy" coding
    try obsfuscating?

  7. #6
    hanoi22's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    4
    My Mood
    Psychedelic
    Do some logging to identify actually what is crashing and where

  8. #7
    Krooshev's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    1,039
    Reputation
    66
    Thanks
    253
    My Mood
    Inspired
    Wow You Know How To Make A Aimbot Hack Aimbot Are Only For V.I.P Are You A Good Coder?? Hope You Share Your H@X.

  9. #8
    thewisedumbguy9's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    in canadia
    Posts
    355
    Reputation
    14
    Thanks
    24
    My Mood
    Inspired
    heyhey i kno, maybe we can get rid of punkbuster somehow (just like we got rid of gameguard incrossfire bfor it got changed to XTRAP)
    hey guys i made my very first youtube video and i'dlike to know what you think and how i could improve it or what features i can add, you're the best MPGH, props to all of you


  10. #9
    nt2vision's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1
    My Mood
    Busy
    Can we download this Aimbot to test it? Or what is from the Aimbot the Name?!

  11. #10
    AhOrNyHiPo!!!'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic
    Quote Originally Posted by ricmild View Post
    Wow You Know How To Make A Aimbot Hack Aimbot Are Only For V.I.P Are You A Good Coder?? Hope You Share Your H@X.
    yea it would be nice if you are a good coder could you share your aimbot and other stuff you make for the game it would be really nice if you could

  12. #11
    sabhansali's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed
    maybe there's a punkbuster bypass? idk tbh

  13. #12
    spookyskunkk's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Wilmington, California
    Posts
    212
    Reputation
    10
    Thanks
    13
    HAHAHA im going to compile this!!!


    I currently don't have xBox live....ill try to renew it...
    If you need help with hacks or what to get started with them and dont know what the F*#k is happening Feel free to send me a message via: PM or VM
    Or message me at Gr1mCrEEpEr@live.com (i might not reply here because i dont check it offten..)

  14. #13
    hogo's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    How can I use this aimbot code?

  15. #14
    mushdoomx's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    123 CUNTMUFFIN drive
    Posts
    222
    Reputation
    2
    Thanks
    11
    My Mood
    Dead
    simple solution i cant code hacks but i know whats wrong its recogniseing the overused lines just like an antivirus you need to use original lines and strings to prevent detection if you copy and paste a code thats been used 500 times than its probably going to be patched due to the reason the antihack has seen that code so much and knows to block it

  16. #15
    Mr Moggy's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Behind you
    Posts
    540
    Reputation
    10
    Thanks
    64
    My Mood
    Aggressive
    this code would be outdated by now, but dosnt mean it wont work maybe




Page 1 of 2 12 LastLast