优化lav150模型

This commit is contained in:
Atsuishio 2025-07-07 14:06:18 +08:00 committed by Light_Quanta
parent 2643a97445
commit bd1abe8fc6
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
4 changed files with 1729 additions and 2642 deletions

View file

@ -118,7 +118,7 @@ public abstract class FastThrowableProjectile extends ThrowableItemProjectile im
}
public boolean isFastMoving() {
return this.getDeltaMovement().lengthSqr() >= 6.25;
return this.getDeltaMovement().length() >= 0.5;
}
public boolean shouldSyncMotion() {

View file

@ -291,13 +291,13 @@ public class SwarmDroneEntity extends FastThrowableProjectile implements GeoEnti
}
@Override
public @NotNull SoundEvent getSound() {
public @NotNull SoundEvent getCloseSound() {
return ModSounds.DRONE_SOUND.get();
}
@Override
public float getVolume() {
return 0.07f;
return 0.6f;
}
@Override

View file

@ -624,7 +624,7 @@ public class A10Entity extends ContainerMobileVehicleEntity implements GeoEntity
Entity driver = EntityFindUtil.findEntity(this.level(), this.entityData.get(LAST_DRIVER_UUID));
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)));
if (!this.level().isClientSide) {
this.level().playSound(null, this, ModSounds.VEHICLE_STRIKE.get(), this.getSoundSource(), 1, 1);

File diff suppressed because it is too large Load diff