调整地载操控,加强重机木仓威力
This commit is contained in:
parent
219fe939a3
commit
4a809e2338
5 changed files with 12 additions and 10 deletions
|
@ -238,7 +238,7 @@ public class VehicleConfig {
|
|||
builder.push("Heavy Machine Gun");
|
||||
|
||||
builder.comment("The gun damage of 12.7mm HMG");
|
||||
HEAVY_MACHINE_GUN_DAMAGE = builder.defineInRange("heavy_machine_gun_damage", 25, 1, 10000000);
|
||||
HEAVY_MACHINE_GUN_DAMAGE = builder.defineInRange("heavy_machine_gun_damage", 40, 1, 10000000);
|
||||
|
||||
builder.pop();
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ import com.atsuishio.superbwarfare.tools.CustomExplosion;
|
|||
import com.atsuishio.superbwarfare.tools.InventoryTool;
|
||||
import com.atsuishio.superbwarfare.tools.ParticleTool;
|
||||
import com.mojang.math.Axis;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.Font;
|
||||
import net.minecraft.client.gui.GuiGraphics;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
@ -208,7 +209,7 @@ public class Bmp2Entity extends ContainerMobileVehicleEntity implements GeoEntit
|
|||
sendParticle(serverLevel, ParticleTypes.BUBBLE_COLUMN_UP, this.getX() + 0.5 * this.getDeltaMovement().x, this.getY() + getSubmergedHeight(this) - 0.2, this.getZ() + 0.5 * this.getDeltaMovement().z, (int) (2 + 10 * this.getDeltaMovement().length()), 0.65, 0, 0.65, 0, true);
|
||||
}
|
||||
|
||||
turretAngle(25, 25);
|
||||
turretAngle(10, 12.5f);
|
||||
this.terrainCompact(4f, 5f);
|
||||
inertiaRotate(1);
|
||||
|
||||
|
@ -738,7 +739,7 @@ public class Bmp2Entity extends ContainerMobileVehicleEntity implements GeoEntit
|
|||
|
||||
@Override
|
||||
public double getSensitivity(double original, boolean zoom, int seatIndex, boolean isOnGround) {
|
||||
return zoom ? 0.22 : 0.27;
|
||||
return zoom ? 0.22 : Minecraft.getInstance().options.getCameraType().isFirstPerson() ? 0.27 : 0.36;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -21,6 +21,7 @@ import com.atsuishio.superbwarfare.tools.CustomExplosion;
|
|||
import com.atsuishio.superbwarfare.tools.InventoryTool;
|
||||
import com.atsuishio.superbwarfare.tools.ParticleTool;
|
||||
import com.mojang.math.Axis;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.Font;
|
||||
import net.minecraft.client.gui.GuiGraphics;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
@ -160,7 +161,7 @@ public class Lav150Entity extends ContainerMobileVehicleEntity implements GeoEnt
|
|||
sendParticle(serverLevel, ParticleTypes.BUBBLE_COLUMN_UP, this.getX() + 0.5 * this.getDeltaMovement().x, this.getY() + getSubmergedHeight(this) - 0.2, this.getZ() + 0.5 * this.getDeltaMovement().z, (int) (2 + 10 * this.getDeltaMovement().length()), 0.65, 0, 0.65, 0, true);
|
||||
}
|
||||
|
||||
turretAngle(15, 12.5f);
|
||||
turretAngle(10, 12.5f);
|
||||
lowHealthWarning();
|
||||
this.terrainCompact(2.7f, 3.61f);
|
||||
inertiaRotate(1.25f);
|
||||
|
@ -601,7 +602,7 @@ public class Lav150Entity extends ContainerMobileVehicleEntity implements GeoEnt
|
|||
|
||||
@Override
|
||||
public double getSensitivity(double original, boolean zoom, int seatIndex, boolean isOnGround) {
|
||||
return zoom ? 0.23 : 0.3;
|
||||
return zoom ? 0.23 : Minecraft.getInstance().options.getCameraType().isFirstPerson() ? 0.3 : 0.4;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -18,6 +18,7 @@ import com.atsuishio.superbwarfare.network.message.receive.ShakeClientMessage;
|
|||
import com.atsuishio.superbwarfare.tools.*;
|
||||
import com.mojang.math.Axis;
|
||||
import net.minecraft.ChatFormatting;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.Font;
|
||||
import net.minecraft.client.gui.GuiGraphics;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
@ -187,7 +188,7 @@ public class PrismTankEntity extends ContainerMobileVehicleEntity implements Geo
|
|||
sendParticle(serverLevel, ParticleTypes.BUBBLE_COLUMN_UP, this.getX() + 0.5 * this.getDeltaMovement().x, this.getY() + getSubmergedHeight(this) - 0.2, this.getZ() + 0.5 * this.getDeltaMovement().z, (int) (2 + 10 * this.getDeltaMovement().length()), 0.65, 0, 0.65, 0, true);
|
||||
}
|
||||
|
||||
turretAngle(15, 10);
|
||||
turretAngle(10, 12.5f);
|
||||
this.terrainCompact(4.6375f, 5.171875f);
|
||||
inertiaRotate(1);
|
||||
|
||||
|
@ -782,7 +783,7 @@ public class PrismTankEntity extends ContainerMobileVehicleEntity implements Geo
|
|||
|
||||
@Override
|
||||
public double getSensitivity(double original, boolean zoom, int seatIndex, boolean isOnGround) {
|
||||
return zoom ? 0.26 : 0.33;
|
||||
return zoom ? 0.26 : Minecraft.getInstance().options.getCameraType().isFirstPerson() ? 0.33 : 0.45;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1246,9 +1246,9 @@ public class Yx100Entity extends ContainerMobileVehicleEntity implements GeoEnti
|
|||
@Override
|
||||
public double getSensitivity(double original, boolean zoom, int seatIndex, boolean isOnGround) {
|
||||
if (seatIndex == 0) {
|
||||
return zoom ? 0.17 : 0.22;
|
||||
return zoom ? 0.17 : Minecraft.getInstance().options.getCameraType().isFirstPerson() ? 0.22 : 0.35;
|
||||
} else if (seatIndex == 1) {
|
||||
return zoom ? 0.25 : 0.35;
|
||||
return zoom ? 0.25 : Minecraft.getInstance().options.getCameraType().isFirstPerson() ? 0.35 : 0.4;
|
||||
} else return original;
|
||||
}
|
||||
|
||||
|
@ -1302,7 +1302,6 @@ public class Yx100Entity extends ContainerMobileVehicleEntity implements GeoEnti
|
|||
Matrix4f transform = getVehicleTransform(1);
|
||||
Vector4f worldPosition = transformPosition(transform, 0, 1.125f, 0.25f);
|
||||
this.obb.center().set(new Vector3f(worldPosition.x, worldPosition.y, worldPosition.z));
|
||||
|
||||
this.obb.setRotation(VectorTool.combineRotations(1, this));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue