Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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_)
- {
- boolean var8 = !p_77036_1_.isInvisible();
- boolean var9 = !var8 && !p_77036_1_.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer);
- if (var8 || var9)
- {
- if (!this.bindEntityTexture(p_77036_1_))
- {
- return;
- }
- if (var9)
- {
- GlStateManager.pushMatrix();
- GlStateManager.color(1.0F, 1.0F, 1.0F, 0.15F);
- GlStateManager.depthMask(false);
- GlStateManager.enableBlend();
- GlStateManager.blendFunc(770, 771);
- GlStateManager.alphaFunc(516, 0.003921569F);
- }
- if(Cryton.theClient.moduleManager.getModule(OutlineESP.class).getState()){
- if(p_77036_1_ instanceof EntityPlayer){
- GL11.glPushMatrix();
- {
- GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
- {
- GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE);
- GL11.glDisable(GL11.GL_TEXTURE_2D);
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDisable(GL11.GL_DEPTH_TEST);
- GL11.glEnable(GL11.GL_LINE_SMOOTH);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_CONSTANT_ALPHA);
- GL11.glLineWidth(1F);
- GL11.glColor3d(255, 0, 0);
- this.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);
- }
- GL11.glPopAttrib();
- }
- GL11.glPopMatrix();
- }
- }
- this.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);
- if (var9)
- {
- GlStateManager.disableBlend();
- GlStateManager.alphaFunc(516, 0.1F);
- GlStateManager.popMatrix();
- GlStateManager.depthMask(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement