添加63式的信息显示
This commit is contained in:
parent
d12ab212a6
commit
949fe96bec
3 changed files with 9 additions and 11 deletions
|
@ -195,7 +195,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
|
||||||
// setTurretYRot(getTurretYRot() + 1);
|
// setTurretYRot(getTurretYRot() + 1);
|
||||||
// setTurretXRot(getTurretXRot() + 1);
|
// setTurretXRot(getTurretXRot() + 1);
|
||||||
|
|
||||||
interactionTick *= 0.9;
|
interactionTick *= 0.96;
|
||||||
|
|
||||||
this.refreshDimensions();
|
this.refreshDimensions();
|
||||||
}
|
}
|
||||||
|
@ -219,10 +219,10 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
|
||||||
@Override
|
@Override
|
||||||
public void travel() {
|
public void travel() {
|
||||||
float diffY = entityData.get(YAW) - getTurretYRot();
|
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();
|
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));
|
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));
|
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
|
@Override
|
||||||
public Matrix4f getTurretTransform(float ticks) {
|
public Matrix4f getTurretTransform(float ticks) {
|
||||||
Matrix4f transformV = getVehicleTransform(ticks);
|
Matrix4f transformV = getVehicleTransform(ticks);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"ID": "superbwarfare:mortar",
|
"ID": "superbwarfare:mortar",
|
||||||
"MaxHealth": 100,
|
"MaxHealth": 40,
|
||||||
"Mass": 0.05
|
"Mass": 0.05
|
||||||
}
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"ID": "superbwarfare:type_63",
|
||||||
|
"MaxHealth": 100,
|
||||||
|
"Mass": 0.45
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue