Results 1 to 12 of 12

Threaded View

  1. #1
    -iFaDy..*'s Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    C++/Mpgh.net/CF/devenv.exe
    Posts
    201
    Reputation
    22
    Thanks
    87
    My Mood
    Cool

    Talking CF 2D Boxes ESP Source Code ;)

    Hey all , i will Release 2D Boxes Source Code ( not mine - Credits other forum )

    Code:
    void CESP::Draw2DPlayerBox( CF_Player *pPlayer, DWORD drawColor )
    {
        if( !pPlayer )
            return;
    
        if( !pPlayer->Object )
            return;
    
        if( !g_Engine.GetClient() )
            return;
    
        LTVector vCenter, vFoot, vHead;
    
        //this is the centered position
        if( g_Engine.GetClient()->GetObjectPos( pPlayer->Object, &vCenter ) != LT_OK )
            return;
    
        //foot (bottom)
        if( g_Engine.GetClient()->GetObjectBoxMin( pPlayer->Object, vFoot ) != LT_OK )
            return;
    
        //head (top)
        if( g_Engine.GetClient()->GetObjectBoxMax( pPlayer->Object, vHead ) != LT_OK )
            return;
    
        //center the positions for 2d boxes
        vFoot.x = vCenter.x;
        vFoot.z = vCenter.z;
        vHead.x = vCenter.x;
        vHead.z = vCenter.z;
    
        LTVector vPlayerFootScreen, vPlayerHeadScreen;
    
        if( g_Engine.LTWorldToScreen( vFoot, vPlayerFootScreen ) && g_Engine.LTWorldToScreen( vHead, vPlayerHeadScreen ) )
        {
            float w = ( vPlayerFootScreen.y - vPlayerHeadScreen.y ) / 4;
    
            g_Engine.OutlineRGBA( vPlayerHeadScreen.x - w, vPlayerHeadScreen.y, w * 2, ( vPlayerFootScreen.y - vPlayerHeadScreen.y ), 1.0f,
                RED( drawColor ), GREEN( drawColor ), BLUE( drawColor ), ALPHA( drawColor ) );
        }
    }
    Edit : Credits : s0beit ( i Added just for @~FALLEN~
    Last edited by -iFaDy..*; 03-28-2012 at 02:41 PM.
    Need Any Help in C++/CrossFire? Just Pm me.

    My FB : Www.FaceBook.com/FaDiAtefAhlawy

    My Yahoo : Dodo_CrazyChat@yahoo.com

    My Hotmail : Dodo_CrazyChat@hotmail.com

  2. The Following User Says Thank You to -iFaDy..* For This Useful Post:

    Dead(H)ell (03-27-2012)

Similar Threads

  1. [Help] I want box esp full code
    By s2s2dll in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 03-20-2011, 07:50 AM
  2. My Source Code from Box Hack Generator
    By uzinato in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 13
    Last Post: 09-27-2010, 04:45 AM
  3. [Code] perfect box ESP
    By rob7601 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 54
    Last Post: 08-01-2010, 02:31 AM
  4. [SOLVED] External Esp source code editing question
    By Demented420 in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 06-04-2010, 11:13 AM