2D and 3D box!!!

Posts 1–7 of 7 · Page 1 of 1
2D and 3D box!!!
I saw in some dll, what there is such function as 2D or 3D boxes, that is terrorists were in a red square, and SWAT were in dark blue squares how to make such squares won't prompt a code? I searched on a forum haven't found.
you want to know how to make them??? you need to hook cf and add a world 2 screen and search in the playerclass for the right addies and then draw a box
Quote Originally Posted by joered View Post
you want to know how to make them??? you need to hook cf and add a world 2 screen and search in the playerclass for the right addies and then draw a box
I not sure if that will work but, If he Hook CF get the Players Location(ESP) and Draw a Box around them, he be find.
Quote Originally Posted by joered View Post
Вы хотите знать, как их делать?? Вам нужно подключить CF и добавить 2 мировой экран и искать в playerclass за право addies, а затем нарисовать прямоугольник
I mean a code of the rectangle, and all the rest I can make.
struct sVertex
{

float x, y, z, RHW;
DWORD color;

enum FVF
{
FVF_Flags = (D3DFVF_XYZRHW | D3DFVF_DIFFUSE)
};
};
sVertex new_sVertex(DWORD x, DWORD y, DWORD color)
{
float fx = float(x);
float fy = float(y);
float fz = float(0);
float RHW = float(0);
sVertex ret = {fx,fy,fz,RHW, color};
return ret;
}
void DrawBox(LPDIRECT3DDEVICE9 pDevice, DWORD x, DWORD y, DWORD w, DWORD h, DWORD color)
{
sVertex Veri[4] =
{
new_sVertex(x,y,color),
new_sVertex(x+w,y,color),
new_sVertex(x,y+h,color),
new_sVertex(x+w,y+h,color)
};

pDevice->SetFVF( sVertex::FVF_Flags );
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,Veri,sizeof (sVertex));
}
Quote Originally Posted by topblast View Post
Code:
struct sVertex
{
	
    float x, y, z, RHW;
	DWORD color;
	
    enum FVF
    {
        FVF_Flags = (D3DFVF_XYZRHW | D3DFVF_DIFFUSE)
    };
};
sVertex new_sVertex(DWORD x, DWORD y, DWORD color)
{
	float fx = float(x);
	float fy = float(y);
	float fz = float(0);
	float RHW = float(0);
	sVertex ret = {fx,fy,fz,RHW, color};
	return ret;
}
void DrawBox(LPDIRECT3DDEVICE9 pDevice, DWORD x, DWORD y, DWORD w, DWORD h, DWORD color)
{
	sVertex Veri[4] =
	{
		new_sVertex(x,y,color),
		new_sVertex(x+w,y,color),
		new_sVertex(x,y+h,color),
		new_sVertex(x+w,y+h,color)
	};

	pDevice->SetFVF( sVertex::FVF_Flags  );
	pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,Veri,sizeof(sVertex));
}
I doubt he would understand any thing from that
i think that he will make a post asking for the rest maybe i make a mistake but...
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us