fuck you
This commit is contained in:
parent
32b51515b8
commit
761bbc9bd4
File diff suppressed because it is too large
Load Diff
45069
javascript/classes.js
45069
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,14 +1,11 @@
|
||||||
package dev.resent.module.impl.misc;
|
package dev.resent.module.impl.misc;
|
||||||
|
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
import dev.resent.annotation.Module;
|
import dev.resent.annotation.Module;
|
||||||
import dev.resent.module.base.Mod;
|
import dev.resent.module.base.Mod;
|
||||||
import dev.resent.module.base.Mod.Category;
|
import dev.resent.module.base.Mod.Category;
|
||||||
import net.lax1dude.eaglercraft.v1_8.internal.PlatformOpenGL;
|
import dev.resent.util.render.Color;
|
||||||
import net.lax1dude.eaglercraft.v1_8.opengl.EaglercraftGPU;
|
import net.lax1dude.eaglercraft.v1_8.opengl.EaglercraftGPU;
|
||||||
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
|
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
|
||||||
import net.lax1dude.eaglercraft.v1_8.opengl.RealOpenGLEnums;
|
|
||||||
import net.lax1dude.eaglercraft.v1_8.opengl.WorldRenderer;
|
import net.lax1dude.eaglercraft.v1_8.opengl.WorldRenderer;
|
||||||
import net.minecraft.client.renderer.Tessellator;
|
import net.minecraft.client.renderer.Tessellator;
|
||||||
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
|
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
|
||||||
|
@ -26,15 +23,11 @@ public class ReachCircle extends Mod{
|
||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
GlStateManager.blendFunc(770, 771);
|
GlStateManager.blendFunc(770, 771);
|
||||||
GlStateManager.disableDepth();
|
GlStateManager.disableDepth();
|
||||||
//PlatformOpenGL._wglEnable(RealOpenGLEnums.GL_LINE_SMOOTH);
|
//PlatformOpenGL._wglEnable(2848);
|
||||||
GlStateManager.depthMask(false);
|
GlStateManager.depthMask(false);
|
||||||
Iterator<Entity> iterator = mc.theWorld.loadedEntityList.iterator();
|
|
||||||
|
|
||||||
while (iterator.hasNext()) {
|
for(Entity entity : mc.theWorld.loadedEntityList){
|
||||||
Object o = iterator.next();
|
if (((EntityLivingBase) entity).canEntityBeSeen(mc.thePlayer) && !entity.isInvisible() && entity instanceof EntityPlayer) {
|
||||||
Entity entity = (Entity) o;
|
|
||||||
|
|
||||||
if (entity instanceof EntityLivingBase && !entity.isInvisible() && !entity.isSneaking() && entity != mc.thePlayer && ((EntityLivingBase) entity).canEntityBeSeen(mc.thePlayer) && !entity.isInvisible() && entity instanceof EntityPlayer) {
|
|
||||||
double posX = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * partialTicks - mc.getRenderManager().viewerPosX;
|
double posX = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * partialTicks - mc.getRenderManager().viewerPosX;
|
||||||
double posY = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * partialTicks - mc.getRenderManager().viewerPosY;
|
double posY = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * partialTicks - mc.getRenderManager().viewerPosY;
|
||||||
double posZ = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * partialTicks - mc.getRenderManager().viewerPosZ;
|
double posZ = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * partialTicks - mc.getRenderManager().viewerPosZ;
|
||||||
|
@ -44,7 +37,7 @@ public class ReachCircle extends Mod{
|
||||||
}
|
}
|
||||||
|
|
||||||
GlStateManager.depthMask(true);
|
GlStateManager.depthMask(true);
|
||||||
//PlatformOpenGL._wglDisable(RealOpenGLEnums.GL_LINE_SMOOTH);
|
//PlatformOpenGL._wglDisable(2848);
|
||||||
GlStateManager.enableDepth();
|
GlStateManager.enableDepth();
|
||||||
GlStateManager.disableBlend();
|
GlStateManager.disableBlend();
|
||||||
GlStateManager.enableTexture2D();
|
GlStateManager.enableTexture2D();
|
||||||
|
@ -54,20 +47,28 @@ public class ReachCircle extends Mod{
|
||||||
|
|
||||||
public void circle(double x, double y, double z, double rad) {
|
public void circle(double x, double y, double z, double rad) {
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
|
Color color = new Color(255, 0, 0);
|
||||||
|
|
||||||
Tessellator tessellator = Tessellator.getInstance();
|
Tessellator tessellator = Tessellator.getInstance();
|
||||||
WorldRenderer worldrenderer = tessellator.getWorldRenderer();
|
WorldRenderer worldrenderer = tessellator.getWorldRenderer();
|
||||||
|
|
||||||
EaglercraftGPU.glLineWidth(2);
|
EaglercraftGPU.glLineWidth(2);
|
||||||
GlStateManager.color(1, 1, 1);
|
setColor(color.getRGB(), (color.getRGB() >> 24 & 255) / 255.0F);
|
||||||
worldrenderer.begin(1, DefaultVertexFormats.POSITION_COLOR);
|
worldrenderer.begin(1, DefaultVertexFormats.POSITION);
|
||||||
|
|
||||||
for (int i = 0; i <= 90; ++i) {
|
for (int i = 0; i <= 90; ++i) {
|
||||||
GlStateManager.color(1, 0, 0);
|
setColor(color.getRGB(), 40);
|
||||||
worldrenderer.pos(x + rad * Math.cos((double) i * 6.283185307179586D / 45.0D), y, z + rad * Math.sin((double) i * 6.283185307179586D / 45.0D));
|
worldrenderer.pos(x + rad * Math.cos((double) i * 6.283185307179586D / 45.0D), y, z + rad * Math.sin((double) i * 6.283185307179586D / 45.0D));
|
||||||
}
|
}
|
||||||
|
|
||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void setColor(int color, float alpha) {
|
||||||
|
float r = (float) (color >> 16 & 255) / 255.0F;
|
||||||
|
float g = (float) (color >> 8 & 255) / 255.0F;
|
||||||
|
float b = (float) (color & 255) / 255.0F;
|
||||||
|
GlStateManager.color(r, g, b, alpha);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
package dev.resent.module.impl.misc;
|
package dev.resent.module.impl.misc;
|
||||||
|
|
||||||
import dev.resent.annotation.RenderModule;
|
import dev.resent.annotation.Module;
|
||||||
|
import dev.resent.module.base.Mod;
|
||||||
import dev.resent.module.base.Mod.Category;
|
import dev.resent.module.base.Mod.Category;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.settings.KeyBinding;
|
import net.minecraft.client.settings.KeyBinding;
|
||||||
import dev.resent.module.base.RenderMod;
|
|
||||||
|
|
||||||
@RenderModule(name = "ToggleSprint", category = Category.MISC, x = 4, y = 122, hasSetting = true)
|
@Module(name = "ToggleSprint", category = Category.MISC)
|
||||||
public class Sprint extends RenderMod {
|
public class Sprint extends Mod {
|
||||||
|
|
||||||
public static void onUpdate(){
|
public static void onUpdate(){
|
||||||
KeyBinding.setKeyBindState(Minecraft.getMinecraft().gameSettings.keyBindSprint.getKeyCode(), true);
|
KeyBinding.setKeyBindState(Minecraft.getMinecraft().gameSettings.keyBindSprint.getKeyCode(), true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user