优化弹道显示,更改关闭视角摇晃配置的目标范围
This commit is contained in:
parent
56ec3f2766
commit
d7493c0fde
2 changed files with 9 additions and 11 deletions
|
@ -537,17 +537,15 @@ public class ClientEventHandler {
|
||||||
angle = Math.atan(0.6 / (lookDistance + 2.9)) * Mth.RAD_TO_DEG;
|
angle = Math.atan(0.6 / (lookDistance + 2.9)) * Mth.RAD_TO_DEG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DisplayConfig.CAMERA_ROTATE.get()) {
|
if (player.getMainHandItem().is(ModTags.Items.GUN) || (player.getVehicle() != null && (player.getVehicle() instanceof ICannonEntity))) {
|
||||||
if (player.getMainHandItem().is(ModTags.Items.GUN) || (player.getVehicle() != null && (player.getVehicle() instanceof ICannonEntity))) {
|
event.setPitch((float) (pitch + cameraRot[0] + (DisplayConfig.CAMERA_ROTATE.get() ? 0.2 : 0) * turnRot[0] + 3 * velocityY));
|
||||||
event.setPitch((float) (pitch + cameraRot[0] + 0.2 * turnRot[0] + 3 * velocityY));
|
if (Minecraft.getInstance().options.getCameraType() == CameraType.THIRD_PERSON_BACK) {
|
||||||
if (Minecraft.getInstance().options.getCameraType() == CameraType.THIRD_PERSON_BACK) {
|
event.setYaw((float) (yaw + cameraRot[1] + (DisplayConfig.CAMERA_ROTATE.get() ? 0.8 : 0) * turnRot[1] - angle * zoomPos));
|
||||||
event.setYaw((float) (yaw + cameraRot[1] + 0.8 * turnRot[1] - angle * zoomPos));
|
} else {
|
||||||
} else {
|
event.setYaw((float) (yaw + cameraRot[1] + (DisplayConfig.CAMERA_ROTATE.get() ? 0.8 : 0) * turnRot[1]));
|
||||||
event.setYaw((float) (yaw + cameraRot[1] + 0.8 * turnRot[1]));
|
|
||||||
}
|
|
||||||
|
|
||||||
event.setRoll((float) (roll + cameraRot[2] + 0.35 * turnRot[2]));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event.setRoll((float) (roll + cameraRot[2] + (DisplayConfig.CAMERA_ROTATE.get() ? 0.35 : 0) * turnRot[2]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"name": "bone2",
|
"name": "bone2",
|
||||||
"parent": "bone",
|
"parent": "bone",
|
||||||
"pivot": [-0.16703, -30.85427, 0],
|
"pivot": [-0.16703, -30.85427, 0],
|
||||||
"rotation": [-90, 0, -3.75],
|
"rotation": [-90, 0, 0],
|
||||||
"cubes": [
|
"cubes": [
|
||||||
{
|
{
|
||||||
"origin": [-2.34303, -33.03027, 10.5525],
|
"origin": [-2.34303, -33.03027, 10.5525],
|
||||||
|
|
Loading…
Add table
Reference in a new issue