diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java index d893dbdb8..8a96c8b8d 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/MortarEntity.java @@ -11,6 +11,7 @@ import com.atsuishio.superbwarfare.init.ModTags; import com.atsuishio.superbwarfare.item.ArtilleryIndicator; import com.atsuishio.superbwarfare.item.Monitor; import com.atsuishio.superbwarfare.item.common.ammo.MortarShell; +import com.atsuishio.superbwarfare.network.message.receive.ShakeClientMessage; import com.atsuishio.superbwarfare.tools.VectorTool; import net.minecraft.ChatFormatting; import net.minecraft.commands.arguments.EntityAnchorArgument; @@ -309,6 +310,7 @@ public class MortarEntity extends VehicleEntity implements GeoEntity, RemoteCont this.clearContent(); resetTarget(); + ShakeClientMessage.sendToNearbyPlayers(this, 6, 6, 8, 14); } } 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 3ad769242..95a7d6fd6 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java @@ -12,6 +12,7 @@ import com.atsuishio.superbwarfare.init.ModSounds; import com.atsuishio.superbwarfare.init.ModTags; import com.atsuishio.superbwarfare.item.common.ammo.MediumRocketItem; import com.atsuishio.superbwarfare.item.common.container.ContainerBlockItem; +import com.atsuishio.superbwarfare.network.message.receive.ShakeClientMessage; import com.atsuishio.superbwarfare.tools.CustomExplosion; import com.atsuishio.superbwarfare.tools.OBB; import com.atsuishio.superbwarfare.tools.ParticleTool; @@ -238,7 +239,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt MediumRocketEntity entityToSpawn = rocketItem.createProjectile(level(), shootPos); entityToSpawn.setOwner(player); - entityToSpawn.shoot(getShootVector(1).x, getShootVector(1).y, getShootVector(1).z, 10, (float) 0.5); + entityToSpawn.shoot(getShootVector(1).x, getShootVector(1).y, getShootVector(1).z, 10, (float) 0.75); level().addFreshEntity(entityToSpawn); level().playSound(null, shootPos.x, shootPos.y, shootPos.z, ModSounds.MEDIUM_ROCKET_FIRE.get(), SoundSource.PLAYERS, 4f, random.nextFloat() * 0.1f + 0.95f); @@ -266,6 +267,8 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt serverLevel.sendParticles(ParticleTypes.FLAME, pPos2.x, pPos2.y, pPos2.z, 2, 0.05, 0.05, 0.05, 0.007); } } + + ShakeClientMessage.sendToNearbyPlayers(this, 8, 8, 10, 20); } @Override diff --git a/src/main/resources/assets/superbwarfare/sounds/type63/type_63_reload.ogg b/src/main/resources/assets/superbwarfare/sounds/type63/ty63_reload.ogg similarity index 100% rename from src/main/resources/assets/superbwarfare/sounds/type63/type_63_reload.ogg rename to src/main/resources/assets/superbwarfare/sounds/type63/ty63_reload.ogg