Thread: Aimbot bug

Results 1 to 6 of 6
  1. #1
    ChanceOfHax's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    PlayerInfo* pPlayer = SearchPlayerByIndex(ChanceOfHax);
    Posts
    113
    Reputation
    3
    Thanks
    5
    My Mood
    Sneaky

    Unhappy Aimbot bug

    Hey guys
    I got my aimbot work now......

    But i have still a problem :/

    When i activate it, it aims like the nade but just not so high -.-

    like: nade thowing up 5m - aimbot aims at 5cm

    I tested *2 and something like this but ithout succeess.

    I use Gellins Classes and aimbot method with pitch and yaw.
    My defines:

    [HTML]#define M_PI 3.14159265358979323846f
    #define DegToRad( degree ) ( (degree) * (3.141592654f / 180.0f) )
    #define PITCH 0
    #define YAW 1
    #define ROLL 2
    My Code:[/HTML]

    [HTML]void VectorAngles( const float* forward, float* angles )
    {
    float tmp, yaw, pitch;

    if( forward[2] == 0 && forward[0] == 0 )
    {
    yaw = 0;

    if( forward[2] > 0 )
    pitch = 90;
    else
    pitch = 270;
    }
    else
    {
    yaw = ( atan2( forward[2], -forward[0] ) * 180 / M_PI )-90;

    if( yaw < 0 )
    yaw += 360;

    tmp = sqrt( forward[0] * forward[0] + forward[2] * forward[2] );
    pitch = ( atan2( forward[1], tmp) * 180 / M_PI );

    if( pitch < 0 )
    pitch += 360;
    }

    angles[0] = -pitch;
    angles[1] = yaw;
    angles[2] = 0;
    }


    void GetAngleToTarget(D3DXVECTOR3 vTargetPos, D3DXVECTOR3 vCameraPos, D3DXVECTOR3& vAngles)
    {

    D3DXVECTOR3 vDelta;
    vDelta.x = vTargetPos.x - vCameraPos.x;
    vDelta.y = vTargetPos.y - vCameraPos.y;
    vDelta.z = vTargetPos.z - vCameraPos.z;

    VectorAngles( (float*)&vDelta, (float*)&vAngles );

    if( vAngles.x > 180.0f )
    vAngles.x -= 360.0f;
    else if( vAngles.x < -180.0f )
    vAngles.x += 360.0f;

    if( vAngles.y > 180.0f )
    vAngles.y -= 360.0f;
    else if( vAngles.y < -180.0f )
    vAngles.y += 360.0f;
    }

    bool IsTargetInFieldOfView( D3DXVECTOR3 Camera, D3DXVECTOR3 Target )
    {
    float angle = 360.0f;

    D3DXVECTOR3 newAngles( 0, 0, 0 );
    D3DXVECTOR3 curAngles( 0, 0, 0 );

    cGameClientShell* pGameClientShell;
    pGameClientShell = *(cGameClientShell**)ADDR_GCS;

    cPlayerMgr* pPlayerManager;
    pPlayerManager = (cPlayerMgr*)pGameClientShell->GetPlayerManager();

    GetAngleToTarget( Target, Camera, newAngles );

    //pPlayerManager->Yaw = DegToRad( newAngles[YAW]);
    pPlayerManager->Pitch = DegToRad( newAngles[PITCH]);

    curAngles[YAW] = DegToRad( D3***oDegree( pPlayerManager->Yaw ) );
    curAngles[PITCH] = DegToRad( D3***oDegree( pPlayerManager->Pitch ) );

    if( newAngles[YAW] >= ( curAngles[YAW] - angle ) &&
    newAngles[YAW] <= ( curAngles[YAW] + angle ) &&
    newAngles[PITCH] >= ( curAngles[PITCH] - angle ) &&
    newAngles[PITCH] <= ( curAngles[PITCH] + angle ) )
    return true;

    return false;
    } [/HTML]

    I hope u can help me

  2. #2
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Kekistan
    Posts
    15,566
    Reputation
    1817
    Thanks
    6,678
    so it shooting above their heads?




  3. #3
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    720
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    /confused about the question



    Put this image in your signature if you support HTML5 development!

  4. #4
    ChanceOfHax's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    PlayerInfo* pPlayer = SearchPlayerByIndex(ChanceOfHax);
    Posts
    113
    Reputation
    3
    Thanks
    5
    My Mood
    Sneaky
    I fixed it i used wrong camera.

    But now its aiming obove theam and on ALL players in the map -.-
    How to make it aimong on other team? I dont get it work. My try isnt good :/

  5. #5
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    720
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Show us how you call these functions, and we might be able to explain what you did wrong.



    Put this image in your signature if you support HTML5 development!

  6. #6
    ChanceOfHax's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    PlayerInfo* pPlayer = SearchPlayerByIndex(ChanceOfHax);
    Posts
    113
    Reputation
    3
    Thanks
    5
    My Mood
    Sneaky
    Ok my code is:

    [html]Pos = fx->Object + 0x4;// i need this to go on enemy but i need a better number for head its left over the head a bit :/
    IsTargetInFieldOfView(MyGetObjectMaxPos(pPlayerMan ager->CameraObject), Pos);// to aim at the enemy[/html]