修复飞机HUD的一个bug,微调A10操控

This commit is contained in:
Atsuishio 2025-05-13 15:07:28 +08:00 committed by Light_Quanta
parent cf40fadb83
commit c21662b1c0
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
3 changed files with 7 additions and 3 deletions

View file

@ -120,7 +120,7 @@ public class AircraftOverlay implements LayeredDraw.Layer {
//指南针
preciseBlit(guiGraphics, Mod.loc("textures/screens/compass.png"), x - 128, y - 122, 128 + ((float) 64 / 45 * mobileVehicle.getYRot()), 0, 256, 16, 512, 16);
preciseBlit(guiGraphics, Mod.loc("textures/screens/aircraft/compass_ind.png"), x - 4, y - 123, 0, 0, 8, 8, 8, 8);
preciseBlit(guiGraphics, Mod.loc("textures/screens/aircraft/compass_ind.png"), x - 4, y - 130, 0, 0, 8, 8, 8, 8);
//滚转指示
poseStack.pushPose();

View file

@ -516,7 +516,7 @@ public class A10Entity extends ContainerMobileVehicleEntity implements GeoEntity
} else if (passenger instanceof Player) {
if (getEnergy() > 0) {
if (forwardInputDown) {
this.entityData.set(POWER, Math.min(this.entityData.get(POWER) + 0.005f, 1f));
this.entityData.set(POWER, Math.min(this.entityData.get(POWER) + 0.004f, 1f));
}
if (backInputDown) {

View file

@ -170,10 +170,14 @@ public class ClientMouseHandler {
return 0.33;
}
if (player.getVehicle() instanceof Tom6Entity || player.getVehicle() instanceof A10Entity) {
if (player.getVehicle() instanceof Tom6Entity) {
return 0.3;
}
if (player.getVehicle() instanceof A10Entity) {
return 0.25;
}
return original;
}
}