Thread: Help [2D Boxes]

Results 1 to 10 of 10
  1. #1
    S0aD's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2,247
    Reputation
    5
    Thanks
    590

    Help [2D Boxes]

    For 2D Boxes is necessary only that (I adicionet W2S, Find Distance, Classes, FillRGB n DrawBorder)

    I'm doing something wrong?


    Code:
    	if(esp){
        GetPlayerByIndex = (lpGetPlayerByIndex)(0x3715D9C0);
        unsigned long ulThis = *(unsigned long*)(0x377FDF28);
        GetLocalPlayer = (lpGetLocalPlayer)(0x3715E370);
        char *szFormat = new char[ 256 ];   
        for ( int i = 0; i < 16; i++ ){
            PlayerInfo* pPlayer = GetPlayerByIndex( ulThis,i,0);
            PlayerInfo* pLocal = GetLocalPlayer(ulThis);        
            if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead ==0){
                D3DXVECTOR3 xDistance = pPlayer->obj->origin - pLocal->obj->origin;
                D3DXVECTOR3 MyDistance = pLocal->obj->origin - pPlayer->obj->origin;
                float xaDistance = D3DXVec3Length(&xDistance );
                float MyaDistance = D3DXVec3Length(&MyDistance );
                D3DXVECTOR3 Position;
                if(WorldToScreen(pDevice, pPlayer, &Position)){
                    if (pPlayer->Team != pLocal->Team){
                        if(esp){
                            DrawBorder(Position.x-(10000/MyaDistance), Position.y- (35000/MyaDistance),50000/MyaDistance/6*2,50000/MyaDistance/3*2,2,Vermelho,pDevice);
                        }
                    }
                }
            }
        }
    }

  2. #2
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    looks rite. Make sure its in endscene or present

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  3. #3
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,008
    Reputation
    58
    Thanks
    224
    what does World 2 Screen do exactly?

  4. #4
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by PashaAmd View Post
    what does World 2 Screen do exactly?
    takes position in world and converts to screenx-y. So if you are looking at an enemy directly, their position is centerx/y.... get it?

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  5. #5
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,008
    Reputation
    58
    Thanks
    224
    Quote Originally Posted by CAFlames View Post


    takes position in world and converts to screenx-y. So if you are looking at an enemy directly, their position is centerx/y.... get it?
    yea thanks (:

  6. #6
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Thats right. Call it in Present (:

  7. #7
    S0aD's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2,247
    Reputation
    5
    Thanks
    590
    I use Reset n' Present

  8. #8
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    735
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    C++ knolage + Call it in Present
    = WIN

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  9. #9
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,008
    Reputation
    58
    Thanks
    224
    Quote Originally Posted by speedforyou View Post
    C++ knolage + Call it in Present
    = WIN
    Grammar + Language Arts = win
    xD jk

  10. #10
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    831
    Reputation
    44
    Thanks
    401
    My Mood
    Twisted
    U copied from nubzgrtkillz...
    But ok. Ur problem:
    I domt know the current addys but look if they r right
    I mean the drawprim addy in w2s too.
    Make sure esp is true.
    I hope this helps