Revert "Model Switcher Information + Cleanup"

This reverts commit 82f2323178.
This commit is contained in:
KAMKEEL committed 2021-04-29 20:42:38 -04:00
1 parent d2b5ce2880
commit 2afbdbf94d
6 files changed
+68

No files matched your search

@@ -24,6 +24,7 @@ import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.constants.EnumAnimation;
import noppes.npcs.constants.EnumStandingType;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.EntityCustomNpc64;
import noppes.npcs.entity.EntityNPCInterface;
import org.lwjgl.opengl.GL11;
@@ -176,6 +177,29 @@ public class RenderNPCInterface extends RenderLiving{
}
else {
super.rotateCorpse(npc, f, f1, f2);
// if(npc.deathTime > 0)
// {
// float x = (float) -Math.cos(Math.toRadians(180 - f1));
// float y = (float) -Math.sin(Math.toRadians(f1));
// x = (x/ 5f) * npc.getModelSize();
// y = (y/ 5f) * npc.getModelSize();
// GL11.glTranslatef(x, 0, y);
//
//
// float f3 = ((((float)npc.deathTime+ f2) - 1.0F) / 20F) * 1.6F;
// f3 = MathHelper.sqrt_float(f3);
// if(f3 > 1.0F)
// {
// f3 = 1.0F;
// }
// GL11.glRotatef(f1, 0.0F, 1.0F, 0.0F);
// GL11.glRotatef(f3 * getDeathMaxRotation(npc), 0.0F, 0.0F, 1.0F);
// GL11.glRotatef(180F - f1, 0.0F, 1.0F, 0.0F);
// }
// else
// {
// GL11.glRotatef(180F - f1, 0.0F, 1.0F, 0.0F);
// }
}
}