Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tracer Tread: Put it anywhere in RenderGlobal.java
- public void TracerLine(boolean flag) {
- try {
- GL11.glBlendFunc(770, 771);
- GL11.glLineWidth(3.0F);
- GL11.glDisable(2929 /*GL_DEPTH_TEST*/);
- GL11.glDepthMask(false);
- double size = 0.45;
- double ytSize = 0.35;
- GL11.glBegin(GL11.GL_LINES);
- GL11.glColor3f(0, 255, 0);
- for(int x = 0; x < mc.theWorld.playerEntities.size(); x ++) {
- Entity entity = (Entity) mc.theWorld.playerEntities.get(x);
- double X = entity.posX;
- double Y = entity.posY;
- double Z = entity.posZ;
- double mX = mc.thePlayer.posX;
- double mY = mc.thePlayer.posY;
- double mZ = mc.thePlayer.posZ;
- double dX = (mX - X);
- double dY = (mY - Y);
- double dZ = (mZ - Z);
- if(X != mX && Y != mY && Z != mZ) {
- GL11.glVertex3d(0, 0, 0);
- GL11.glVertex3d((-dX + size) - 0.5, (ytSize - dY) + 1.0, (-dZ - size) + 0.5);
- }
- }
- GL11.glEnd();
- GL11.glDepthMask(true);
- GL11.glEnable(2929 /*GL_DEPTH_TEST*/);
- } catch (Exception e) {}
- }
- Calling the Tracer: Put it in public void renderEntities(Vec3D vec3d, ICamera icamera, float f)
- if(Eliteeheekkz.eliteeheeckkzz)
- {
- TracerLine(true);
- }
- Peace out guys! :D
Advertisement
Add Comment
Please, Sign In to add comment