google-site-verification: googlebaca44933768a824.html Hello again - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

Hello again

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hello again

    i found this Simple Vec aimbot made by Hyb0r
    but i tried a few methods /simple ways to load the vecs in game any ideas?

    Code:
    //=========================================================================================================================================================
    // CSS vector aimbot
    //      by hybOr
    // todo: 
    //    write a function that loads vectors in-game
    //    actually figure out some good vecs for it ;p
    //=========================================================================================================================================================
    class myVectors
    {
    public:
        float x,y,z;
    public:
        myVectors(){
            clearVecs();
        }
        ~myVectors(){
            clearVecs();
        }
    public:
        void setVecs(float newX,float newY,float newZ){
            x=newX;
            y=newY;
            z=newZ;
        }
        void clearVecs(){
            x=0;
            y=0;
            z=0;
        }
    };
    //=========================================================================================================================================================
    myVectors m_Vecs;
    //=========================================================================================================================================================
    void vectorAim(CUserCmd* pUserCommand){
        Vector    vPlayerAngles;
        iTarget=-1;
        for( int iIndex = 1; iIndex <= m_pEngine->GetMaxClients(); ++iIndex ){
            IClientEntity* ClientEntity = m_pEntList->GetClientEntity( iIndex );
            if (ClientEntity == NULL||ClientEntity->IsDormant())continue;
            CBaseEntity* pBaseEntity = ClientEntity->GetBaseEntity();
            if (pBaseEntity == NULL)continue;
            int iLifeState = *(int*)((DWORD)pBaseEntity+(DWORD)0x87);
            if (iIndex != m_pEngine->GetLocalPlayer()&&(getVisible( m_pMyPlayer->BaseEnt()->EyePosition(), pBaseEntity->EyePosition(), pBaseEntity ))&&(iLifeState==LIFE_ALIVE)&&(pBaseEntity->GetTeamNumber() != m_pMyPlayer->BaseEnt()->GetTeamNumber())){
                vPlayerAngles = pBaseEntity->GetAbsOrigin();
                vPlayerAngles.x -= m_Vecs.x;
                vPlayerAngles.y -= m_Vecs.y;
                vPlayerAngles.z -= m_Vecs.z;
                iTarget = iIndex;
                break;
            }else continue;
        }
        if(iTarget==-1)return;
        double flDelta[3] = { (m_pMyPlayer->BaseEnt()->EyePosition()[0]-vPlayerAngles[0]), (m_pMyPlayer->BaseEnt()->EyePosition()[1]-vPlayerAngles[1]), (m_pMyPlayer->BaseEnt()->EyePosition()[2]-vPlayerAngles[2]) };
        double flHyp = sqrt(flDelta[0]*flDelta[0] + flDelta[1]*flDelta[1]);
        pUserCommand->viewangles[0] = (float) (atan(flDelta[2]/flHyp) * 57.295779513082f);
        pUserCommand->viewangles[1] = (float) (atan(flDelta[1]/flDelta[0]) * 57.295779513082f);
        pUserCommand->viewangles[2] = 0.0f;
        if(flDelta[0] >= 0.0) { pUserCommand->viewangles[1] += 180.0f; }
        m_pEngine->SetViewAngles( pUserCommand->viewangles );
    }
    //=========================================================================================================================================================
    bool getVisible( Vector& vAbsStart, Vector& vAbsEnd, C_BaseEntity* pBaseEnt ) {
        player_info_t pInfo; trace_t pTrace; Ray_t pRay;
        pRay.Init( vAbsStart, vAbsEnd );
        m_pEnginetrace->TraceRay( pRay, MASK_NPCWORLDSTATIC|CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTER|CONTENTS_WINDOW|CONTENTS_DEBRIS|CONTENTS_HITBOX, NULL, &pTrace );
        if ( pTrace.fraction > 0.96f ) return true;
        else return false;
    }
    //=========================================================================================================================================================

    thats the aimbot..
    if anyone knows/ how to load the vecs in please help me out:P

    #2
    I guess... pm aVitamin :D
    Chiroz - 41 64 61 6D

    Comment


      #3
      Originally posted by Chiroz View Post
      I guess... pm aVitamin :D
      wtf?

      isnt vec simple:

      Code:
      Vector VecAdjust = Vector(m_psCvar->aim_adj_x,m_psCvar->aim_adj_y,.m_psCvar->aim_adj_z);
      
      VectorCopy( VecAdjust + pBaseEntity->GetAbsOrigin() ,vPlayer );
      correct me if im wrong pl0x

      and if im wright... figure it out urself lol

      Comment


        #4
        its spelled right, lol, and u use other , whats it called -.- ill just use the word functions / variables than him, plz adjust so he can understand
        Chiroz - 41 64 61 6D

        Comment


          #5
          Originally posted by Chiroz View Post
          its spelled right, lol, and u use other , whats it called -.- ill just use the word functions / variables than him, plz adjust so he can understand
          oh its not to difficult to change a few cvars huh
          Last edited by Guest; 05-24-2008, 07:31 PM.

          Comment


            #6
            hm i havent gotten this to work yet:(

            Comment


              #7
              leme guess, c + p from bo7o

              Comment


                #8
                Originally posted by maples View Post
                leme guess, c + p from bo7o
                what are you talking about?

                Comment

                Working...
                X