Have a working tracer in your client.
Second;
Go in RenderGlobal where your tracer line code is.
And look where it says...
And look where it says...
Code:
GL11.glBegin(GL11.GL_LINES);
GL11.glVertex2d(0.0D, 0.0D);
GL11.glVertex3d(x , y + 1.6F, z);
GL11.glEnd();
Third;
That code is where it begins the tracer line from your body to theres.
With out that code there would be no line.
Now put or make sure above that code there is color and line width like so.
With out that code there would be no line.
Now put or make sure above that code there is color and line width like so.
Code:
GL11.glLineWidth(4F);
GL11.glColor4f(255F, 255F, 255F, 0.5F);
Last;
Spoiler (Click to Hide)
So if you haven't figured by now what you will be doing is making another line smaller that the first with a different color.
So right below, where it says that line has been drawn and (ended)
paste in the same code below it with a different color and a smaller width.
Here's the code for slow people.
So right below, where it says that line has been drawn and (ended)
paste in the same code below it with a different color and a smaller width.
Here's the code for slow people.
Code:
/**Makes the color white and makes the width large.
Pro tip: look at the 0.5F. That is the opacity of the color to add a shadow effect. do that to both colors. */
GL11.glColor4f(255F, 255F, 255F, 0.5F);
GL11.glLineWidth(4F);
/**The first line that will be the border, this is where it begins to draw */
GL11.glBegin(GL11.GL_LINES);
/**Pos for the line */
GL11.glVertex2d(0.0D, 0.0D);
/**more positioning */
GL11.glVertex3d(x , y + 1.6F, z);
/**And ends it to make one line. */
GL11.glEnd();
/**Makes the middle line on top of the first making it smaller. */
GL11.glLineWidth(1F);
/**Changing the color to light blue */
GL11.glColor4f(0F, 255F, 255F, 0.5F);
/**Begins to draw */
GL11.glBegin(2);
/**pos */
GL11.glVertex2d(0.0D, 0.0D);
/**pos */
GL11.glVertex3d(x , y + 1.6F, z);
/**And here it ends */
GL11.glEnd();
Finish product.
No comments:
Post a Comment