Benvenuto! Per postare e godere delle funzionalità del forum registrati, occorrono pochi secondi ed è gratis!

ESP 3D Boxes

maurow
Messaggi: 6,041
Discussioni: 2,066
Registrato: 03-2011
Reputazione:
133

Mix: 8,107
[Immagine: 03111-f9b218b8-ec1a-4439-9b0a-da753f11a847.png]

Codice:
void Draw3DBox(D3DXVECTOR3 Pos,IDirect3DDevice9 *pDevice)
{
    pDevice->GetTransform(D3DTS_WORLD, &SavedMatrices );

    D3DXMatrixTranslation(&ObjWorldMatrices,  Pos.x, Pos.y, Pos.z);
    pDevice->SetTransform(D3DTS_WORLD, &ObjWorldMatrices);
    pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME);
    pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
    pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
    pDevice->SetRenderState( D3DRS_FOGENABLE, false );
    pBoxMesh->DrawSubset(0);

    pDevice->SetTransform(D3DTS_WORLD, &SavedMatrices );
}

void SetupMatrices(D3DXVECTOR3 Pos,IDirect3DDevice9 *pDevice)
{
float x=Pos.x,y=Pos.y,z=Pos.z,r=D3DX_PI/2.0;
float world=5.0f;
D3DXMATRIX matWorld;
D3DXMATRIX matTemp;
D3DXMATRIX* D3DXMatrixTranslation( D3DXMATRIX &matWorld, float x, float y, float z );
D3DXMATRIX* D3DXMatrixRotationY( D3DXMATRIX &matTemp, float r );
D3DXMATRIX* D3DXMatrixMultiply( D3DXMATRIX &matWorld, float world, D3DXMATRIX &matTemp );
D3DXMATRIX* D3DXMatrixTranslation( D3DXMATRIX &matTemp, float x, float y, float z );
D3DXMATRIX* D3DXMatrixMultiply( D3DXMATRIX &matWorld, float world, D3DXMATRIX &matTemp );
pDevice->SetTransform( D3DTS_WORLD, &matWorld );
}

D3DXCreateBox( pDevice,15,38,15, &pBoxMesh, 0);
D3DXCreateTextureFromFileInMemory(pDevice, (LPCVOID)&bRed   , sizeof(bRed)   , &fRed   );
D3DXCreateTextureFromFileInMemory(pDevice, (LPCVOID)&bBlue  , sizeof(bBlue)  , &fBlue  );

LPDIRECT3DTEXTURE9 fRed     = NULL;
LPDIRECT3DTEXTURE9 fBlue    = NULL;

const BYTE bRed[]    = {0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x01, 0x00,
            0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00};

const BYTE bBlue[]    = {0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
             0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x01, 0x00,
             0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x00,
             0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
             0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00};


    if( cEsp.CH_BoxEsp3D)
    {
        Draw3DBox(PlayerView,pDevice);
    }

Credits:
s0beit
Kazbah


La libertà non si insegna, è una scelta individuale.
17/01/2013, 23:42
#1
Cerca

Iscritto
Messaggi: 75
Discussioni: 17
Registrato: 09-2012
Reputazione:
5

Mix: 0
TI AMO <3

18/01/2013, 0:19
#2
Cerca

maurow
Messaggi: 6,041
Discussioni: 2,066
Registrato: 03-2011
Reputazione:
133

Mix: 8,107
io no Asd Asd


La libertà non si insegna, è una scelta individuale.
18/01/2013, 0:36
#3
Cerca

1 Life, 1 Avatar &lt;3
Messaggi: 9,074
Discussioni: 271
Registrato: 08-2011
Reputazione:
77

Mix: 0
bastava chiedere e te lo davo Asd Asd

18/01/2013, 14:42
#4
Cerca

Iscritto
Messaggi: 75
Discussioni: 17
Registrato: 09-2012
Reputazione:
5

Mix: 0
Asd Asd Asd

18/01/2013, 15:18
#5
Cerca




Utenti che stanno guardando questa discussione: 1 Ospite(i)