Guest User

Tracers by GeNeTiCModz

a guest
Jan 30th, 2012
2,340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Tracer Tread: Put it anywhere in RenderGlobal.java
  2.  
  3. public void TracerLine(boolean flag) {
  4.          try {
  5.              GL11.glBlendFunc(770, 771);
  6.        GL11.glLineWidth(3.0F);
  7.        GL11.glDisable(2929 /*GL_DEPTH_TEST*/);
  8.        GL11.glDepthMask(false);
  9.  
  10.             double size = 0.45;
  11.              double ytSize = 0.35;
  12.              GL11.glBegin(GL11.GL_LINES);
  13.              GL11.glColor3f(0, 255, 0);
  14.              for(int x = 0; x < mc.theWorld.playerEntities.size(); x ++) {
  15.                  Entity entity = (Entity) mc.theWorld.playerEntities.get(x);
  16.                  double X = entity.posX;
  17.                  double Y = entity.posY;
  18.                  double Z = entity.posZ;
  19.                  double mX = mc.thePlayer.posX;
  20.                  double mY = mc.thePlayer.posY;
  21.                  double mZ = mc.thePlayer.posZ;
  22.                  double dX = (mX - X);
  23.                  double dY = (mY - Y);
  24.                  double dZ = (mZ - Z);
  25.  
  26.                 if(X != mX && Y != mY && Z != mZ) {        
  27.                      GL11.glVertex3d(0, 0, 0);
  28.                      GL11.glVertex3d((-dX + size) - 0.5, (ytSize - dY) + 1.0, (-dZ - size) + 0.5);
  29.                  }
  30.              }
  31.  
  32.             GL11.glEnd();    
  33.        GL11.glDepthMask(true);
  34.        GL11.glEnable(2929 /*GL_DEPTH_TEST*/);
  35.         } catch (Exception e) {}
  36.      }
  37.  
  38.  
  39.  
  40. Calling the Tracer: Put it in public void renderEntities(Vec3D vec3d, ICamera icamera, float f)
  41. if(Eliteeheekkz.eliteeheeckkzz)
  42.         {
  43.             TracerLine(true);
  44.         }
  45.  
  46.  
  47. Peace out guys! :D
Advertisement
Add Comment
Please, Sign In to add comment