diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java index b4be5d145..a4dc2345a 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java @@ -195,7 +195,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt // setTurretYRot(getTurretYRot() + 1); // setTurretXRot(getTurretXRot() + 1); - interactionTick *= 0.9; + interactionTick *= 0.96; this.refreshDimensions(); } @@ -219,10 +219,10 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt @Override public void travel() { float diffY = entityData.get(YAW) - getTurretYRot(); - this.setTurretYRot(Mth.clamp(this.getTurretYRot() + 0.25f * diffY, -15, 15)); + this.setTurretYRot(Mth.clamp(this.getTurretYRot() + 0.1f * diffY, -15, 15)); float diffX = entityData.get(PITCH) - getTurretXRot(); - this.setTurretXRot(Mth.clamp(this.getTurretXRot() + 0.25f * diffX, -60, 5)); + this.setTurretXRot(Mth.clamp(this.getTurretXRot() + 0.1f * diffX, -60, 5)); double s0 = getDeltaMovement().dot(this.getViewVector(1)); @@ -230,13 +230,6 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt this.setRightWheelRot((float) (this.getRightWheelRot() - 1.75 * s0)); } - public Vec3 getTurretVector(float pPartialTicks) { - Matrix4f transform = getTurretTransform(pPartialTicks); - Vector4f rootPosition = transformPosition(transform, 0, 0, 0); - Vector4f targetPosition = transformPosition(transform, 0, 0, 1); - return new Vec3(rootPosition.x, rootPosition.y, rootPosition.z).vectorTo(new Vec3(targetPosition.x, targetPosition.y, targetPosition.z)); - } - @Override public Matrix4f getTurretTransform(float ticks) { Matrix4f transformV = getVehicleTransform(ticks); diff --git a/src/main/resources/data/superbwarfare/vehicles/mortar.json b/src/main/resources/data/superbwarfare/vehicles/mortar.json index e7c9f02e6..de312a202 100644 --- a/src/main/resources/data/superbwarfare/vehicles/mortar.json +++ b/src/main/resources/data/superbwarfare/vehicles/mortar.json @@ -1,5 +1,5 @@ { "ID": "superbwarfare:mortar", - "MaxHealth": 100, + "MaxHealth": 40, "Mass": 0.05 } \ No newline at end of file diff --git a/src/main/resources/data/superbwarfare/vehicles/type_63.json b/src/main/resources/data/superbwarfare/vehicles/type_63.json new file mode 100644 index 000000000..a4381af2d --- /dev/null +++ b/src/main/resources/data/superbwarfare/vehicles/type_63.json @@ -0,0 +1,5 @@ +{ + "ID": "superbwarfare:type_63", + "MaxHealth": 100, + "Mass": 0.45 +} \ No newline at end of file