This commit is contained in:
Necmi 2026-06-01 21:56:51 -04:00 committed by GitHub
commit 8ae3e34810
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -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;

View file

@ -635,10 +635,10 @@ void PlayerRenderer::additionalRendering(shared_ptr<LivingEntity> _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.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);