修复飞机HUD的一个bug,微调A10操控
This commit is contained in:
parent
cf40fadb83
commit
c21662b1c0
3 changed files with 7 additions and 3 deletions
|
@ -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/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();
|
poseStack.pushPose();
|
||||||
|
|
|
@ -516,7 +516,7 @@ public class A10Entity extends ContainerMobileVehicleEntity implements GeoEntity
|
||||||
} else if (passenger instanceof Player) {
|
} else if (passenger instanceof Player) {
|
||||||
if (getEnergy() > 0) {
|
if (getEnergy() > 0) {
|
||||||
if (forwardInputDown) {
|
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) {
|
if (backInputDown) {
|
||||||
|
|
|
@ -170,10 +170,14 @@ public class ClientMouseHandler {
|
||||||
return 0.33;
|
return 0.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player.getVehicle() instanceof Tom6Entity || player.getVehicle() instanceof A10Entity) {
|
if (player.getVehicle() instanceof Tom6Entity) {
|
||||||
return 0.3;
|
return 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player.getVehicle() instanceof A10Entity) {
|
||||||
|
return 0.25;
|
||||||
|
}
|
||||||
|
|
||||||
return original;
|
return original;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue