Help [2D Boxes]

Posts 110 of 10 · Page 1 of 1
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);
                    }
                }
            }
        }
    }
}
looks rite. Make sure its in endscene or present
what does World 2 Screen do exactly?
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?
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 (:
Thats right. Call it in Present (:
I use Reset n' Present
C++ knolage + Call it in Present
= WIN
Quote Originally Posted by speedforyou View Post
C++ knolage + Call it in Present
= WIN
Grammar + Language Arts = win
xD jk
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
Posts 110 of 10 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?