google-site-verification: googlebaca44933768a824.html TF2 Entity ESP - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

TF2 Entity ESP

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

    TF2 Entity ESP

    PHP Code:
            void DrawWorldESP int Index )
            {
                try
                {
                    
    using boost::lexical_cast;
                    
    using std::string;

                    
    C_BaseEntitypBaseEntity Entity::GetBaseEntityIndex );
                    
    Vector worldspacecenterscreencenter;
                    
    Color color;
                    
    string ccname;
                    
    int Team;
                    
    //--
                    
    if(!pBaseEntity) return;
                    
    Team = *Utils::MakePointer<int>( (DWORDpBaseEntity_T("DT_BaseEntity->m_iTeamNum") );
                    
    //--
                    
    if( Team == color Color25500255 );
                    else 
    color Color00255255 );
                    
    //--
                    
    Drawing::GetWorldSpaceCenterpBaseEntityworldspacecenter );
                    if( ! 
    Drawing::WorldToScreenworldspacecenterscreencenter ) ) return;
                    
    ccname pBaseEntity->GetClientClass()->GetName();
                    
    Drawing::BeginESPDrawscreencenter.xscreencenter.ycolor );
                    
                    if ( 
    ccname.find"CaptureFlag" ) != string::npos )
                        
    Drawing::DrawESPText_T"--INTELLIGENCE--" ) );
                    if ( 
    ccname.find"StunBall" ) != string::npos )
                        
    Drawing::DrawESPText_T"[B]" ) );
                    if ( 
    ccname.find"Projectile_Rocket" ) != string::npos )
                        
    Drawing::DrawESPText_T"[R]" ) );
                    if ( 
    ccname.find"GrenadePipebomb" ) != string::npos )
                        
    Drawing::DrawESPText_T"[G]" ) );

                    if ( 
    ccname.find"Object" ) != string::npos && ccname.find("Objective") == string::npos )
                    {
                        
    int levelhealthmaxhealthtype;
                        
    bool sapper;
                        
    C_BaseEntitypOwner;

                        
    level = *Utils::MakePointerint > ( (DWORDpBaseEntity_T"DT_BaseObjectUpgrade->baseclass->DT_BaseObject->m_iUpgradeLevel" ) );
                        
    health = *Utils::MakePointerint >( (DWORDpBaseEntity_T"DT_BaseObjectUpgrade->baseclass->DT_BaseObject->m_iHealth" ) );
                        
    maxhealth = *Utils::MakePointerint > ( (DWORDpBaseEntity_T"DT_BaseObjectUpgrade->baseclass->DT_BaseObject->m_iMaxHealth" ) );
                        
    type = *Utils::MakePointerint > ( (DWORDpBaseEntity_T("DT_BaseObjectUpgrade->baseclass->DT_BaseObject->m_iObjectType") );
                        
                        
    sapper = *Utils::MakePointerbool > ( (DWORDpBaseEntity_T("DT_BaseObjectUpgrade->baseclass->DT_BaseObject->m_bHasSapper") );

                        if ( 
    type == )
                        {
                            
    Drawing::DrawESPText_T"Dispenser" ) );
                        }

                        else if ( 
    type == )
                        {
                            
    Drawing::DrawESPText_T"Teleporter Entrance" ) );
                        }

                        else if ( 
    type == )
                        {
                            
    Drawing::DrawESPText_T"Teleporter Exit" ) );
                        }

                        else if ( 
    type == )
                        {
                            
    Drawing::DrawESPText_T"Sentry Gun" ) );
                        }
                        
                        if ( 
    sapper )
                            
    Drawing::DrawESPText_T "--SAPPER--" ) );

                        
    Drawing::DrawESPText_T"Level: " ) + lexical_caststd::tstringint > ( level ) );
                        
    Drawing::DrawESPText_T"Health: " ) + lexical_caststd::tstringint > ( health ) + _T" / " ) + lexical_caststd::tstringint > ( maxhealth ) );

                    }
                }

                catch(...)
                {
                    
    //...laziness
                
    }
            } 

    #2
    Looks good :)
    lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
    I DONT HAVE TEAMVIEWER AND IM NOT GOING TO GIVE ANY 24/7 ONLINE SUPPORT VIA STEAM, XFIRE OR OTHER IM PROGRAMS SO DONT BOTHER ASKING. THANKS.

    Comment


      #3
      Pretty easy concept but nicely done, clean and simple code.

      I just don't understand why you use the hungarian notation for some variables and for some you just leave it out?

      Comment


        #4
        I use hungarian notation on pointers, global variables, and member variables. However, I do not use it to indicate type :)

        Comment


          #5
          php code tags hurt my eyes!

          nice job
          /* fibre */

          Comment


            #6
            so much boost =)
            lucky me i use it too (but in a moderated manner not anywhere)

            thanks for sharing






            gibs coins @
            1KatP9B8KG7mvcoFhdLGua1isG88nYZE8C

            Comment


              #7
              Re: TF2 Entity ESP

              thank you <33

              Comment

              Working...
              X