unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Other FPS Games > Crossfire

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2010, 04:54 AM
CallMeEclipse CallMeEclipse is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default [Coding] Crossfire perfect 2d box esp

Author: s0beit


Believe it or not, it took longer to figure out than i thought (at the time)
PHP Code:
void CESP::Draw2DPlayerBoxCF_Player *pPlayerDWORD drawColor )
{
    if( !
pPlayer )
        return;

    if( !
pPlayer->Object )
        return;

    if( !
g_Engine.GetClient() )
        return;

    
LTVector vCentervFootvHead;

    
//this is the centered position
    
if( g_Engine.GetClient()->GetObjectPospPlayer->Object, &vCenter ) != LT_OK )
        return;

    
//foot (bottom)
    
if( g_Engine.GetClient()->GetObjectBoxMinpPlayer->ObjectvFoot ) != LT_OK )
        return;

    
//head (top)
    
if( g_Engine.GetClient()->GetObjectBoxMaxpPlayer->ObjectvHead ) != LT_OK )
        return;

    
//center the positions for 2d boxes
    
vFoot.vCenter.x;
    
vFoot.vCenter.z;
    
vHead.vCenter.x;
    
vHead.vCenter.z;

    
LTVector vPlayerFootScreenvPlayerHeadScreen;

    if( 
g_Engine.LTWorldToScreenvFootvPlayerFootScreen ) && g_Engine.LTWorldToScreenvHeadvPlayerHeadScreen ) )
    {
        
float w = ( vPlayerFootScreen.vPlayerHeadScreen.) / 4;

        
g_Engine.OutlineRGBAvPlayerHeadScreen.wvPlayerHeadScreen.y2, ( vPlayerFootScreen.vPlayerHeadScreen.), 1.0f,
            
REDdrawColor ), GREENdrawColor ), BLUEdrawColor ), ALPHAdrawColor ) );
    }

Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
box, coding, crossfire, esp, perfect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:12 PM.