Good Job
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:
In Present/ EndScene (Above you main function... or it won't create before you call on a line function):Code:int Line = 0;
So yeah, its pretty simple.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 }
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
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
Good Work \
[IMG]https://especiais.lancene*****m.br/santos-campeao-libertadores-2011/images/escudo-santos.png[/IMG]
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;
}
Last edited by mo3ad001; 04-29-2011 at 01:16 PM.
Last edited by mo3ad001; 04-29-2011 at 01:36 PM.
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 ); }
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 ) ); }
whit (04-30-2011)