Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. protected void renderModel(EntityLivingBase p_77036_1_, float p_77036_2_, float p_77036_3_, float p_77036_4_, float p_77036_5_, float p_77036_6_, float p_77036_7_)
  2. {
  3. boolean var8 = !p_77036_1_.isInvisible();
  4. boolean var9 = !var8 && !p_77036_1_.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer);
  5.  
  6. if (var8 || var9)
  7. {
  8. if (!this.bindEntityTexture(p_77036_1_))
  9. {
  10. return;
  11. }
  12.  
  13. if (var9)
  14. {
  15. GlStateManager.pushMatrix();
  16. GlStateManager.color(1.0F, 1.0F, 1.0F, 0.15F);
  17. GlStateManager.depthMask(false);
  18. GlStateManager.enableBlend();
  19. GlStateManager.blendFunc(770, 771);
  20. GlStateManager.alphaFunc(516, 0.003921569F);
  21. }
  22.  
  23. if(Cryton.theClient.moduleManager.getModule(OutlineESP.class).getState()){
  24.  
  25. if(p_77036_1_ instanceof EntityPlayer){
  26. GL11.glPushMatrix();
  27. {
  28. GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
  29. {
  30. GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE);
  31. GL11.glDisable(GL11.GL_TEXTURE_2D);
  32. GL11.glDisable(GL11.GL_LIGHTING);
  33. GL11.glDisable(GL11.GL_DEPTH_TEST);
  34.  
  35. GL11.glEnable(GL11.GL_LINE_SMOOTH);
  36.  
  37. GL11.glEnable(GL11.GL_BLEND);
  38. GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_CONSTANT_ALPHA);
  39.  
  40.  
  41. GL11.glLineWidth(1F);
  42. GL11.glColor3d(255, 0, 0);
  43.  
  44. this.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);
  45. }
  46. GL11.glPopAttrib();
  47. }
  48. GL11.glPopMatrix();
  49. }
  50.  
  51.  
  52. }
  53.  
  54.  
  55. this.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);
  56.  
  57. if (var9)
  58. {
  59. GlStateManager.disableBlend();
  60. GlStateManager.alphaFunc(516, 0.1F);
  61. GlStateManager.popMatrix();
  62. GlStateManager.depthMask(true);
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement