Why not fix up the audio while I'm eeeere

This commit is contained in:
George Paton 2024-02-01 22:07:54 +11:00
parent 1de796fec5
commit b1d7dc1738
3 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,7 @@ public class Gun12GaugeFactory {
config.allowsInfinity = true;
config.crosshair = Crosshair.CIRCLE;
config.reloadSound = GunConfiguration.RSOUND_SHOTGUN;
config.reloadSoundEnd = false;
config.firingSound = "hbm:weapon.shotgunPump";
config.name = "spas12";

View File

@ -78,6 +78,7 @@ public class Gun4GaugeFactory {
config.durability = 3000;
config.reloadSound = GunConfiguration.RSOUND_SHOTGUN;
config.reloadSoundEnd = false;
config.firingSound = "hbm:weapon.revolverShootAlt";
config.firingPitch = 0.65F;

View File

@ -374,6 +374,8 @@ public class ItemGunBase extends Item implements IHoldableWeapon, IItemHUD, IEqu
resetReloadCycle(player, stack);
AnimType animType = availableFills <= 1 ? AnimType.RELOAD_END : AnimType.RELOAD_CYCLE;
PacketDispatcher.wrapper.sendTo(new GunAnimationPacket(animType.ordinal()), (EntityPlayerMP) player);
if (availableFills > 1 && !mainConfig.reloadSoundEnd)
world.playSoundAtEntity(player, mainConfig.reloadSound, 1.0F, 1.0F);
}
if(hasLoaded && mainConfig.reloadSoundEnd)