Skip to content

Commit

Permalink
Add blue circlebuddy
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed May 25, 2016
1 parent bb506fc commit 782f8e2
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions patches/net/minecraft/client/renderer/EntityRenderer.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@
}

private void updateMainMenu(GuiMainMenu mainGui)
@@ -2650,4 +3378,1766 @@
@@ -2650,4 +3378,1772 @@
;
}
}
Expand Down Expand Up @@ -3129,10 +3129,19 @@
+
+ public void renderCrosshairAtDepth()
+ {
+
+
+ GL11.glEnable(GL11.GL_BLEND);
+ GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
+ GL11.glDisable(GL11.GL_TEXTURE_2D);
+ GL11.glDisable(GL11.GL_LIGHTING);
+
+ //debug room origin
+ // renderCircle(mc.vrPlayer.roomOrigin.addVector(-renderOriginX, -renderOriginY + 0.1f, -renderOriginZ), 0.2f, 32, 0, 255, 0, 255, 1);
+ renderCircle(mc.thePlayer.getPosition(1).addVector(-renderOriginX, - mc.thePlayer.yOffset -renderOriginY + 0.03f, -renderOriginZ), 0.08f, 32, 0, 255, 255, 128, 1);
+
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glEnable(GL11.GL_TEXTURE_2D);
+ GL11.glEnable(GL11.GL_LIGHTING);
+
+ if (this.aimStartPos != null)
+ {
+ Vec3 originOffset = renderOrigin.subtract(this.aimRenderOrigin);
Expand Down Expand Up @@ -3442,7 +3451,7 @@
+
+ GL11.glEnable(GL11.GL_BLEND);
+ GL11.glDisable(GL11.GL_TEXTURE_2D);
+
+ GL11.glEnable(GL11.GL_LIGHTING);
+
+ Vec3 start = Vec3.createVectorHelper(handX,handY,handZ);
+
Expand All @@ -3461,22 +3470,19 @@
+
+ GL11.glEnable(GL11.GL_TEXTURE_2D);
+ GL11.glDisable(GL11.GL_BLEND);
+ GL11.glDisable(GL11.GL_LIGHTING);
+ }
+
+ mc.mcProfiler.endSection();
+
+
+
+
+ if(!mc.vrPlayer.getFreeMoveMode()){
+ if(mc.vrPlayer.vrMovementStyle.arcAiming) {
+ renderTeleportArc(mc.vrPlayer);
+ } else {
+ renderTeleportLine(mc.vrPlayer);
+ }
+ }
+
+
+
+
+ }
+
Expand Down

0 comments on commit 782f8e2

Please sign in to comment.