From 9e1cf35103f0f65ed958731037e5961fe648f2aa Mon Sep 17 00:00:00 2001 From: KKNecmi Date: Mon, 25 May 2026 21:51:27 +0300 Subject: [PATCH 1/3] TU24 feature: Third-person sword blocking position slightly tweaked --- Minecraft.Client/PlayerRenderer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Minecraft.Client/PlayerRenderer.cpp b/Minecraft.Client/PlayerRenderer.cpp index 8ff3bf85..8c61afbc 100644 --- a/Minecraft.Client/PlayerRenderer.cpp +++ b/Minecraft.Client/PlayerRenderer.cpp @@ -635,10 +635,10 @@ void PlayerRenderer::additionalRendering(shared_ptr _mob, float a) { if (anim == UseAnim_block) { - glTranslatef(0.05f, 0, -0.1f); - glRotatef(-50, 0, 1, 0); - glRotatef(-10, 1, 0, 0); - glRotatef(-60, 0, 0, 1); + glTranslatef(-0.015f, -0.05f, -0.08f); + glRotatef(-20, 0, 1, 0); + glRotatef(10, 1, 0, 0); + glRotatef(0, 0, 0, 1); } } glTranslatef(0, 3 / 16.0f, 0); From f1b62154dfbcbd3ee71b0d1ac4ba211d6d0dac47 Mon Sep 17 00:00:00 2001 From: KKNecmi Date: Mon, 25 May 2026 22:05:13 +0300 Subject: [PATCH 2/3] add body rotation --- Minecraft.Client/HumanoidModel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Minecraft.Client/HumanoidModel.cpp b/Minecraft.Client/HumanoidModel.cpp index c363f528..517621c8 100644 --- a/Minecraft.Client/HumanoidModel.cpp +++ b/Minecraft.Client/HumanoidModel.cpp @@ -593,6 +593,12 @@ void HumanoidModel::setupAnim(float time, float r, float bob, float yRot, float if (sleeve1) sleeve1->yRot=0.0f; + if (holdingRightHand == 3) + { + arm0->yRot = -0.4f; + if (sleeve0) sleeve0->yRot = -0.4f; + } + if (attackTime > -9990.0f) { float swing = attackTime; From 6315f7b6249c544abf2e2f12c8db8b3ee8bcac66 Mon Sep 17 00:00:00 2001 From: KKNecmi Date: Mon, 25 May 2026 22:47:52 +0300 Subject: [PATCH 3/3] fix sword rotation values --- Minecraft.Client/PlayerRenderer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Minecraft.Client/PlayerRenderer.cpp b/Minecraft.Client/PlayerRenderer.cpp index 8c61afbc..9224a60b 100644 --- a/Minecraft.Client/PlayerRenderer.cpp +++ b/Minecraft.Client/PlayerRenderer.cpp @@ -635,10 +635,10 @@ void PlayerRenderer::additionalRendering(shared_ptr _mob, float a) { if (anim == UseAnim_block) { - glTranslatef(-0.015f, -0.05f, -0.08f); - glRotatef(-20, 0, 1, 0); - glRotatef(10, 1, 0, 0); - glRotatef(0, 0, 0, 1); + glTranslatef(-0.015f, -0.05f, -0.12f); + glRotatef(0, 0, 1, 0); //-20 / -15 + glRotatef(20, 1, 0, 0); //10 / 30 + glRotatef(-5, 0, 0, 1); //0 / 5 } } glTranslatef(0, 3 / 16.0f, 0);