diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/render/ESP.java b/src/main/java/me/zeroeightsix/kami/module/modules/render/ESP.java index 308385c4..7475fb87 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/render/ESP.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/render/ESP.java @@ -18,6 +18,7 @@ import static org.lwjgl.opengl.GL11.*; /** * Created by 086 on 14/12/2017. * Updated by d1gress/Qther on 27/11/2019. + * Kurisu Makise is cute */ @Module.Info(name = "ESP", category = Module.Category.RENDER, description = "Highlights entities") public class ESP extends Module { @@ -26,6 +27,7 @@ public class ESP extends Module { private Setting players = register(Settings.b("Players", true)); private Setting animals = register(Settings.b("Animals", false)); private Setting mobs = register(Settings.b("Mobs", false)); + private Setting renderInvis = register(Settings.b("Invisible", false)); public enum ESPMode { RECTANGLE, GLOW @@ -43,6 +45,12 @@ public class ESP extends Module { mc.world.loadedEntityList.stream() .filter(EntityUtil::isLiving) + .filter(entity -> { + if (entity.isInvisible()) { + return renderInvis.getValue(); + } + return true; + }) .filter(entity -> mc.player != entity) .map(entity -> (EntityLivingBase) entity) .filter(entityLivingBase -> !entityLivingBase.isDead) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java b/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java index be0f0c38..e79409b5 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java @@ -17,6 +17,8 @@ import org.lwjgl.opengl.GL11; /** * Created by 086 on 11/12/2017. + *

+ * Kurisu Makise is best girl */ @Module.Info(name = "Tracers", description = "Draws lines to other living entities", category = Module.Category.RENDER) public class Tracers extends Module { @@ -27,6 +29,7 @@ public class Tracers extends Module { private Setting mobs = register(Settings.b("Mobs", false)); private Setting range = register(Settings.d("Range", 200)); private Setting opacity = register(Settings.floatBuilder("Opacity").withRange(0f, 1f).withValue(1f)); + private Setting renderInvis = register(Settings.b("Invisible", false)); HueCycler cycler = new HueCycler(3600); @@ -35,6 +38,12 @@ public class Tracers extends Module { GlStateManager.pushMatrix(); Minecraft.getMinecraft().world.loadedEntityList.stream() .filter(EntityUtil::isLiving) + .filter(entity -> { + if (entity.isInvisible()) { + return renderInvis.getValue(); + } + return true; + }) .filter(entity -> !EntityUtil.isFakeLocalPlayer(entity)) .filter(entity -> (entity instanceof EntityPlayer ? players.getValue() && mc.player != entity : (EntityUtil.isPassive(entity) ? animals.getValue() : mobs.getValue()))) .filter(entity -> mc.player.getDistance(entity) < range.getValue())