c++ d3d9 draw line

Posts 1–4 of 4 · Page 1 of 1
c++ d3d9 draw line
Can anyone help me draw a simple line from point a to point b? is it possible to draw a line via numvert and privcount instead of having to find player class? reason i want to draw a line is because this game blocks paint = chams i don't know how to bypass it, so i would like to do a little like crosshair like stick a X on the target if possible. If possible again i would like to do this without having to find player class because i never done that no idea how to do it. so if possible i want to draw a X on the target from the following below.

Code:
#define German_1 ((Stride == 32))

#define German German_1 

    if (German) {
        if (_Features[0]) {
            pDevice->SetRenderState(D3DRS_ZENABLE, false);
            pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
            pDevice->SetTexture(0, GreenTex);
            oDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, PrimitiveCount);
            pDevice->SetRenderState(D3DRS_ZENABLE, true);
            pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
            pDevice->SetTexture(0, RedTex);
        }
    }
wtf you cant draw a line with numvert and privcount?!?! you need to have 2 2d vector points.
1 way to do this; find player location, w2s it, draw via d3d a line from center screen (e.g. x = width/2, y = height/2) to player screen coords.
Quote Originally Posted by _PuRe.LucK* View Post
wtf you cant draw a line with numvert and privcount?!?! you need to have 2 2d vector points.
1 way to do this; find player location, w2s it, draw via d3d a line from center screen (e.g. x = width/2, y = height/2) to player screen coords.
yeah had no idea what i was doing then i found player base etc and got w2s but thanks for reply.
Quote Originally Posted by Dazholmes View Post
yeah had no idea what i was doing then i found player base etc and got w2s but thanks for reply.
nice, you made it.
did you use dx w2s or engine w2s?
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us