优化lav150模型
This commit is contained in:
parent
2643a97445
commit
bd1abe8fc6
4 changed files with 1729 additions and 2642 deletions
|
@ -118,7 +118,7 @@ public abstract class FastThrowableProjectile extends ThrowableItemProjectile im
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isFastMoving() {
|
public boolean isFastMoving() {
|
||||||
return this.getDeltaMovement().lengthSqr() >= 6.25;
|
return this.getDeltaMovement().length() >= 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldSyncMotion() {
|
public boolean shouldSyncMotion() {
|
||||||
|
|
|
@ -291,13 +291,13 @@ public class SwarmDroneEntity extends FastThrowableProjectile implements GeoEnti
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull SoundEvent getSound() {
|
public @NotNull SoundEvent getCloseSound() {
|
||||||
return ModSounds.DRONE_SOUND.get();
|
return ModSounds.DRONE_SOUND.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getVolume() {
|
public float getVolume() {
|
||||||
return 0.07f;
|
return 0.6f;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -624,7 +624,7 @@ public class A10Entity extends ContainerMobileVehicleEntity implements GeoEntity
|
||||||
Entity driver = EntityFindUtil.findEntity(this.level(), this.entityData.get(LAST_DRIVER_UUID));
|
Entity driver = EntityFindUtil.findEntity(this.level(), this.entityData.get(LAST_DRIVER_UUID));
|
||||||
|
|
||||||
if ((verticalCollision)) {
|
if ((verticalCollision)) {
|
||||||
if (entityData.get(GEAR_ROT) > 10 || (Mth.abs(getRoll()) > 20)) {
|
if (entityData.get(GEAR_ROT) > 10 || Mth.abs(getRoll()) > 20 || Mth.abs(getXRot()) > 30) {
|
||||||
this.hurt(ModDamageTypes.causeVehicleStrikeDamage(this.level().registryAccess(), this, driver == null ? this : driver), (float) ((8 + Mth.abs(getRoll() * 0.2f)) * (lastTickSpeed - 0.3) * (lastTickSpeed - 0.3)));
|
this.hurt(ModDamageTypes.causeVehicleStrikeDamage(this.level().registryAccess(), this, driver == null ? this : driver), (float) ((8 + Mth.abs(getRoll() * 0.2f)) * (lastTickSpeed - 0.3) * (lastTickSpeed - 0.3)));
|
||||||
if (!this.level().isClientSide) {
|
if (!this.level().isClientSide) {
|
||||||
this.level().playSound(null, this, ModSounds.VEHICLE_STRIKE.get(), this.getSoundSource(), 1, 1);
|
this.level().playSound(null, this, ModSounds.VEHICLE_STRIKE.get(), this.getSoundSource(), 1, 1);
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue