sound changes, press sounds, remove pitch
This commit is contained in:
parent
c5219ce100
commit
c602585e6a
76 changed files with 231 additions and 251 deletions
|
@ -8,7 +8,6 @@ import java.util.Set;
|
|||
import com.google.common.collect.Maps;
|
||||
|
||||
import game.Game;
|
||||
import game.audio.PositionedSound;
|
||||
import game.dimension.Dimension;
|
||||
import game.entity.DataWatcher;
|
||||
import game.entity.Entity;
|
||||
|
@ -136,7 +135,7 @@ public class NetHandlerPlayClient extends NetHandler
|
|||
* reset upon respawning
|
||||
*/
|
||||
private boolean doneLoadingTerrain;
|
||||
private boolean travelSound;
|
||||
// private boolean travelSound;
|
||||
private final Map<String, Integer> playerList = Maps.<String, Integer>newTreeMap();
|
||||
// private final List<Entry<String, Integer>> players = Lists.newArrayList();
|
||||
// private boolean field_147308_k = false;
|
||||
|
@ -643,11 +642,11 @@ public class NetHandlerPlayClient extends NetHandler
|
|||
this.gameController.thePlayer.prevZ = this.gameController.thePlayer.posZ;
|
||||
this.doneLoadingTerrain = true;
|
||||
// this.gameController.displayGuiScreen(null);
|
||||
if(this.travelSound) {
|
||||
this.gameController.getSoundManager().playSound(new PositionedSound(SoundEvent.TELEPORT));
|
||||
// this.clientWorldController.playSound(entityplayer.posX, entityplayer.posY + (double)entityplayer.getEyeHeight(), entityplayer.posZ, this.travelSound, 1.0F, 1.0F, false);
|
||||
this.travelSound = false;
|
||||
}
|
||||
// if(this.travelSound) {
|
||||
// this.gameController.getSoundManager().playSound(new PositionedSound(SoundEvent.TELEPORT));
|
||||
//// this.clientWorldController.playSound(entityplayer.posX, entityplayer.posY + (double)entityplayer.getEyeHeight(), entityplayer.posZ, this.travelSound, 1.0F, 1.0F, false);
|
||||
// this.travelSound = false;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -745,11 +744,11 @@ public class NetHandlerPlayClient extends NetHandler
|
|||
{
|
||||
if (entity instanceof EntityXp)
|
||||
{
|
||||
this.clientWorldController.playSoundAtEntity(entity, SoundEvent.ORB, 0.2F, ((this.avRandomizer.floatv() - this.avRandomizer.floatv()) * 0.7F + 1.0F) * 2.0F);
|
||||
this.clientWorldController.playSoundAtEntity(entity, SoundEvent.ORB, 0.2F);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.clientWorldController.playSoundAtEntity(entity, SoundEvent.POP, 0.2F, ((this.avRandomizer.floatv() - this.avRandomizer.floatv()) * 0.7F + 1.0F) * 2.0F);
|
||||
this.clientWorldController.playSoundAtEntity(entity, SoundEvent.POP, 0.2F);
|
||||
}
|
||||
|
||||
this.gameController.effectRenderer.addEffect(new EntityPickupFX(this.clientWorldController, entity, entitylivingbase, 0.5F));
|
||||
|
@ -1544,7 +1543,7 @@ public class NetHandlerPlayClient extends NetHandler
|
|||
// else if(packetIn.getSoundName().startsWith("music#")) {
|
||||
// return;
|
||||
// }
|
||||
this.gameController.theWorld.playSound(packetIn.getX(), packetIn.getY(), packetIn.getZ(), packetIn.getSound(), packetIn.getVolume(), packetIn.getPitch());
|
||||
this.gameController.theWorld.playSound(packetIn.getX(), packetIn.getY(), packetIn.getZ(), packetIn.getSound(), packetIn.getVolume());
|
||||
}
|
||||
|
||||
// public void handleDisplay(S48PacketDisplay packetIn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue