Originally Posted by
-xGhost-
I have another question which I think I can answer but for some apparent reason the method I'm using does not work, here is my code,
Code:
void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color)
{
DrawCircle(CenterX,CenterY,8,8,RED);
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();
}
and here is my method,
Code:
void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color)
{
if (hack7 == 1)show=(show);
DrawCircle(CenterX,CenterY,8,8,RED);
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();
}
Can anyone care to explain to me why the crosshair's do not show up in-game when I put "Hack7" On?
xD man.. That is simply the function.
you see
Code:
void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color)
so under hack7 you would do
Code:
DrawCircle(#forX,#forY,radius,numSides,Color);
Hope that helped