PostCAFlames Create Line

Posts 1–15 of 38 · Page 1 of 3
CAFlames Create Line
Hi,

So this is, in fact, an EXTREMELY simple way to create a line.
It creates it w/o lag.


Basically, Combat Arms Requires you to create line originally to be able to use a line function (obviously). Then, each time you enter game it deletes it, so you must recreate. The simple code I made makes the line when you first start Combat Arms, then recreates it once each game to allow you to use lines.

Here it is:

Globals:
Code:
int Line = 0;
In Present/ EndScene (Above you main function... or it won't create before you call on a line function):
Code:
if(Line == 0 && *(BYTE*)0x377767B0 != 1){//GameStatus
		D3DXCreateLine(pDevice,&pLine); //Creates when CA opens
		Line = 1;
	}

	if(Line == 1 && *(BYTE*)0x377767B0 == 1){//GameStatus
		D3DXCreateLine(pDevice,&pLine);//Creates ONCE when you go into game... then changes int Line so it doesnt recreate
	Line = 2;
	} 
	if(Line == 2 && *(BYTE*)0x377767B0 != 1)//GameStatus
	{
		Line = 1;//Changes back to int 1, so when you join game it recreates once again
	}
So yeah, its pretty simple.

This is mainly for those that are new to hacking, for the other people probably know how to create a line LOL.
When they cant create a line, they cant have esp to use it
lol xD line =1 , line = 2
do this

#define IsInGame *(BYTE*)0x377767B0
bool Flag;
if(IsInGame != 1)
Flag = true;

if(IsInGame==1 && Flag )
{
create line ...
Flag = false;
}
Quote Originally Posted by mo3ad001 View Post
lol xD line =1 , line = 2
do this

#define IsInGame *(BYTE*)0x377767B0
bool Flag;
if(IsInGame != 1)
Flag = true;

if(IsInGame==1 && Flag )
{
create line ...
Flag = false;
}
Doesnt work. You needa create line right when u open combat arms.
Quote Originally Posted by CAFlames View Post


Doesnt work. You needa create line right when u open combat arms.
why you need it ? before the inGame when you open ca

you can create it with the Font !
Quote Originally Posted by mo3ad001 View Post
why you need it ? before the inGame when you open ca

you can create it with the Font !
u dont need to using my method though... and if ur menu uses lines or if u want like an xhair out of game u use my method...
Nice Working.... aproved!!!
Lines r for esp.
a crosshair is made from small boxes cause lines rnt really good for this cause
u must reset them
Code:
	if( Menu.g_pLine == 0 )
		D3DXCreateLine( pDevice, &Menu.g_pLine ); 
	else  
	{
		if (L_pDevice != pDevice)
		L_pDevice = pDevice; 
		try 
		{
			if (Menu.g_pLine != 0)
				Menu.g_pLine->Release();        

		} catch (...) {}
		Menu.g_pLine = 0;
		D3DXCreateLine( pDevice, &Menu.g_pLine ); 
	}
Quote Originally Posted by NOOB View Post
Code:
	if( Menu.g_pLine == 0 )
		D3DXCreateLine( pDevice, &Menu.g_pLine ); 
	else  
	{
		if (L_pDevice != pDevice)
		L_pDevice = pDevice; 
		try 
		{
			if (Menu.g_pLine != 0)
				Menu.g_pLine->Release();        

		} catch (...) {}
		Menu.g_pLine = 0;
		D3DXCreateLine( pDevice, &Menu.g_pLine ); 
	}
Ive tried that before, it works for 1 game then it stops working.
For people new to hacking don't know where it goes exactly...
Draw Text for Xhair xD you can draw strain(x,y,...,'+');












just jking i don't use line for xhair
how about not using Lines at all? DrawPrimitiveUP
No need to recreate anything. (:

Code:
struct D3DTLVERTEX
{
	float x, y, z, rhw;
	DWORD color;
};

struct DXUT_SCREEN_VERTEX 
{ 
	float x, y, z, h;
	D3DCOLOR color;
	float tu, tv;
	static DWORD FVF; 
};

void DrawLine( LPDIRECT3DDEVICE9 pDevice, float X, float Y, float X2, float Y2, DWORD dwColor )
{
	if( !pDevice )
		return;
		D3DTLVERTEX qV[2] = 
	{ 
		{ (float)X, (float)Y,	0.0f, 1.0f, dwColor },
		{ (float)X2, (float)Y2, 0.0f, 1.0f, dwColor },
	};
	pDevice->DrawPrimitiveUP( D3DPT_LINELIST, 1, qV, sizeof( D3DTLVERTEX ) );
}
Posts 1–15 of 38 · Page 1 of 3
This thread is closed for replies.

Tags for this Thread

None

Need help?