优化部分武器第三人称

This commit is contained in:
Atsuishio 2025-07-04 14:25:57 +08:00 committed by Light_Quanta
parent e8db3c22cd
commit 636e21a56b
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
2 changed files with 17 additions and 17 deletions

View file

@ -48,8 +48,8 @@ public class ModEnumExtensions {
false,
(IArmPoseTransformer) (model, entity, arm) -> {
if (arm != HumanoidArm.LEFT) {
model.rightArm.xRot = -67.5f * Mth.DEG_TO_RAD + model.head.xRot + 0.2f * model.rightArm.xRot;
model.rightArm.yRot = 5f * Mth.DEG_TO_RAD;
model.rightArm.xRot = -67.5f * Mth.DEG_TO_RAD + model.head.xRot + 0.05f * model.rightArm.xRot;
model.rightArm.yRot = 5f * Mth.DEG_TO_RAD + model.head.yRot;
}
}
);
@ -63,10 +63,10 @@ public class ModEnumExtensions {
false,
(IArmPoseTransformer) (model, entity, arm) -> {
if (arm != HumanoidArm.LEFT) {
model.rightArm.xRot = -22.5f * Mth.DEG_TO_RAD + model.head.xRot;
model.rightArm.yRot = -10f * Mth.DEG_TO_RAD;
model.leftArm.xRot = -45f * Mth.DEG_TO_RAD + model.head.xRot;
model.leftArm.yRot = 40f * Mth.DEG_TO_RAD;
model.rightArm.xRot = 22.5f * Mth.DEG_TO_RAD + model.head.xRot;
model.rightArm.yRot = model.head.yRot;
model.leftArm.xRot = Mth.clamp(-45f * Mth.DEG_TO_RAD + model.head.xRot, -67.5f * Mth.DEG_TO_RAD, 0f * Mth.DEG_TO_RAD);
model.leftArm.yRot = Mth.clamp(45f * Mth.DEG_TO_RAD + model.head.yRot, 45f * Mth.DEG_TO_RAD, 80f * Mth.DEG_TO_RAD);
}
}
);
@ -81,9 +81,9 @@ public class ModEnumExtensions {
(IArmPoseTransformer) (model, entity, arm) -> {
if (arm != HumanoidArm.LEFT) {
model.rightArm.xRot = 45f * Mth.DEG_TO_RAD + model.head.xRot;
model.rightArm.yRot = -10f * Mth.DEG_TO_RAD;
model.leftArm.xRot = -45f * Mth.DEG_TO_RAD + model.head.xRot;
model.leftArm.yRot = 40f * Mth.DEG_TO_RAD;
model.rightArm.yRot = model.head.yRot;
model.leftArm.xRot = Mth.clamp(-45f * Mth.DEG_TO_RAD + model.head.xRot, -67.5f * Mth.DEG_TO_RAD, 0f * Mth.DEG_TO_RAD);
model.leftArm.yRot = Mth.clamp(45f * Mth.DEG_TO_RAD + model.head.yRot, 45f * Mth.DEG_TO_RAD, 80f * Mth.DEG_TO_RAD);
}
}
);

View file

@ -32,19 +32,19 @@
},
"thirdperson_righthand": {
"rotation": [
67.5,
-10,
112.5,
0,
0
],
"translation": [
0.5,
6.5,
-5
-1.25,
9.5,
3
],
"scale": [
0.55,
0.55,
0.55
0.6,
0.6,
0.6
]
},
"thirdperson_lefthand": {