mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 11:59:48 +00:00
Animation GUI Fixes
- Stop Head from following Mouse in Editor
This commit is contained in:
1 parent
adad618de5
commit
cf30c509d1
2 files changed
+5
-3
No files matched your search
@@ -24,6 +24,7 @@ public class GuiModelInterface extends GuiNPCInterface{
|
||||
|
||||
public int xOffset = 0;
|
||||
public int yOffset = 0;
|
||||
public boolean followMouse = true;
|
||||
|
||||
public EntityCustomNpc npc;
|
||||
|
||||
@@ -102,8 +103,8 @@ public class GuiModelInterface extends GuiNPCInterface{
|
||||
GL11.glRotatef(-(float)Math.atan(f6 / 80F) * 20F, 1.0F, 0.0F, 0.0F);
|
||||
entity.prevRenderYawOffset = entity.renderYawOffset = rotation;
|
||||
entity.prevRotationYaw = entity.rotationYaw = (float)Math.atan(f5 / 80F) * 40F + rotation;
|
||||
entity.rotationPitch = -(float)Math.atan(f6 / 80F) * 20F;
|
||||
entity.prevRotationYawHead = entity.rotationYawHead = entity.rotationYaw;
|
||||
entity.rotationPitch = followMouse ? -(float)Math.atan(f6 / 80F) * 20F : 0;
|
||||
entity.prevRotationYawHead = entity.rotationYawHead = followMouse ? entity.rotationYaw : rotation;
|
||||
GL11.glTranslatef(0.0F, entity.yOffset, 0.0F);
|
||||
RenderManager.instance.playerViewY = 180F;
|
||||
|
||||
|
||||
Reference in new issue
Block a user