D e a t h h a u n t S (08-29-2010),GameTrainerMaker (08-27-2010),speedforyou (08-27-2010),tempta43 (08-29-2010)
Hello Mpgh this is my Circle Reticle source code.
Now you can C&P this code it is not missing anything very noob friendly
[php]
ID3DXLine *pLine;
#define PI 3.14159265
void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color)
{
D3DXVECTOR2 Line[128];
float Step = PI * 2.0 / numSides;
int Count = 0;
for (float a=0; a < PI*2.0; a += Step)
{
float X1 = radius * cos(a) + X;
float Y1 = radius * sin(a) + Y;
float X2 = radius * cos(a+Step) + X;
float Y2 = radius * sin(a+Step) + Y;
Line[Count].x = X1;
Line[Count].y = Y1;
Line[Count+1].x = X2;
Line[Count+1].y = Y2;
Count += 2;
}
pLine->Begin();
pLine->Draw(Line,Count,Color);
pLine->End();
}
if( Menu.mOpt[1].nopt > 0 ){
DrawCircle(iCenterX,iCenterY,10,50,D3DCOLOR_ARGB( 255, 255 , 0 ,0));
D3DCOLOR xcolor = D3DCOLOR_ARGB( 255, 255, 0, 0 );
int size = 15, strong = 1;
int iCenterX = GetSystemMetrics( 0 ) / 2;
int iCenterY = GetSystemMetrics( 1 ) / 2;
if( iCenterX < 20 && iCenterY < 20 )
{
iCenterX = ( GetSystemMetrics( 0 ) / 2 );
iCenterY = ( GetSystemMetrics( 1 ) / 2 );
}
D3DRECT rec2 = { iCenterX- size, iCenterY, iCenterX+ size, iCenterY+ strong};
D3DRECT rec3 = { iCenterX, iCenterY- size, iCenterX+ strong,iCenterY+ size};
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, xcolor, 0, 0);
pDevice->Clear(1, &rec3, D3DCLEAR_TARGET, xcolor, 0, 0);
}
[/php]
You can also throw a DisableCrosshair PTC in their if you want
What this will look like is.
Dont forget to +Rep and Thanks and credit
Last edited by C00lGuy; 08-27-2010 at 10:53 PM.
D e a t h h a u n t S (08-29-2010),GameTrainerMaker (08-27-2010),speedforyou (08-27-2010),tempta43 (08-29-2010)
Damn.. I see everyone with the same menu.
A new source was released. tell me site now.
Its Gellins old menu....
You dont deserve any credits.
give credit to person who made the function..
Lol, mine will be the only one with a non-standard menu when i finally release it
I'm Alen on Steam. RIP Skype Friday nights.
I'm Navi's lover 💖
Dave84311: God I've always wanted to eat crayons, with their vibrant colors. Only if they had taste.
Mr. Lonely: @Alen I like making you wet, it makes me hard.
"Hello Mpgh this is my Circle Reticle source code."
Yep, i see nothing at all that refers to insinuating that this is your source.
You clearly took no credit for it! I mean look at your post, only a moron would think you were taking credit!
need to leave
since i was the first to thank you
game crash... it not works for me