Finished Sounds

This commit is contained in:
StevenRS11 2013-11-06 22:46:55 -05:00
parent 4a6d166ba5
commit f2f1ee7af9
14 changed files with 24 additions and 21 deletions

View file

@ -117,21 +117,24 @@ public class EventHookContainer
public void playMusicForDim(World world) public void playMusicForDim(World world)
{ {
if(world.isRemote&&world.provider instanceof LimboProvider) if(world.isRemote)
{ {
SoundSystem sndSystem = FMLClientHandler.instance().getClient().sndManager.sndSystem; SoundManager sndManager = FMLClientHandler.instance().getClient().sndManager;
sndSystem.stop("BgMusic");
SoundPoolEntry soundPoolEntry = FMLClientHandler.instance().getClient().sndManager.soundPoolMusic.getRandomSoundFromSoundPool(mod_pocketDim.modid+":creepy"); if(world.provider instanceof LimboProvider)
{
if(soundPoolEntry!=null) sndManager.sndSystem.stop("BgMusic");
{ SoundPoolEntry soundPoolEntry = sndManager.soundPoolMusic.getRandomSoundFromSoundPool(mod_pocketDim.modid+":creepy");
sndSystem.backgroundMusic("LimboMusic", soundPoolEntry.getSoundUrl(), soundPoolEntry.getSoundName(), false); if(soundPoolEntry!=null)
sndSystem.play("LimboMusic"); {
} sndManager.sndSystem.backgroundMusic("LimboMusic", soundPoolEntry.getSoundUrl(), soundPoolEntry.getSoundName(), false);
} sndManager.sndSystem.play("LimboMusic");
else if(world.isRemote && !(world.provider instanceof LimboProvider)) }
{ }
FMLClientHandler.instance().getClient().sndManager.sndSystem.stop("LimboMusic"); else if(!(world.provider instanceof LimboProvider))
{
sndManager.sndSystem.stop("LimboMusic");
}
} }
} }
} }

View file

@ -185,7 +185,7 @@ public class ItemRiftBlade extends ItemSword
BaseItemDoor.canPlace(world, x, y - 1, z)) BaseItemDoor.canPlace(world, x, y - 1, z))
{ {
ItemDimensionalDoor.placeDoorBlock(world, x, y - 1, z, orientation, mod_pocketDim.transientDoor); ItemDimensionalDoor.placeDoorBlock(world, x, y - 1, z, orientation, mod_pocketDim.transientDoor);
player.worldObj.playSoundAtEntity(player,"mods.DimDoors.sfx.riftDoor", 0.6f, 1); player.worldObj.playSoundAtEntity(player,mod_pocketDim.modid+":riftDoor", 0.6f, 1);
stack.damageItem(3, player); stack.damageItem(3, player);
return stack; return stack;
} }

View file

@ -99,14 +99,14 @@ public class ItemRiftSignature extends Item
} }
clearSource(stack); clearSource(stack);
mod_pocketDim.sendChat(player,("Rift Created")); mod_pocketDim.sendChat(player,("Rift Created"));
world.playSoundAtEntity(player,"mods.DimDoors.sfx.riftEnd", 0.6f, 1); world.playSoundAtEntity(player,mod_pocketDim.modid+":riftEnd", 0.6f, 1);
} }
else else
{ {
//The link signature has not been used. Store its current target as the first location. //The link signature has not been used. Store its current target as the first location.
setSource(stack, x, adjustedY, z,orientation, PocketManager.getDimensionData(world)); setSource(stack, x, adjustedY, z,orientation, PocketManager.getDimensionData(world));
mod_pocketDim.sendChat(player,("Location Stored in Rift Signature")); mod_pocketDim.sendChat(player,("Location Stored in Rift Signature"));
world.playSoundAtEntity(player,"mods.DimDoors.sfx.riftStart", 0.6f, 1); world.playSoundAtEntity(player,mod_pocketDim.modid+":riftStart", 0.6f, 1);
} }
return true; return true;
} }

View file

@ -101,7 +101,7 @@ public class MobMonolith extends EntityFlying implements IMob
{ {
if(this.soundTime<=0) if(this.soundTime<=0)
{ {
this.playSound("mods.DimDoors.sfx.monk", 1F, 1F); this.playSound(mod_pocketDim.modid+":monk", 1F, 1F);
this.soundTime=100; this.soundTime=100;
} }
@ -128,12 +128,12 @@ public class MobMonolith extends EntityFlying implements IMob
} }
if (aggro>430&&this.soundTime<100) if (aggro>430&&this.soundTime<100)
{ {
this.worldObj.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ,"mods.DimDoors.sfx.tearing",2F, 1F); this.worldObj.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ,mod_pocketDim.modid+":tearing",2F, 1F);
this.soundTime=100; this.soundTime=100;
} }
if (aggro>445&&this.soundTime<200) if (aggro>445&&this.soundTime<200)
{ {
this.worldObj.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ,"mods.DimDoors.sfx.tearing",5F, 1F); this.worldObj.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ,mod_pocketDim.modid+":tearing",5F, 1F);
this.soundTime=200; this.soundTime=200;
} }
} }
@ -144,7 +144,7 @@ public class MobMonolith extends EntityFlying implements IMob
DDTeleporter.teleportEntity(entityPlayer, destination, false); DDTeleporter.teleportEntity(entityPlayer, destination, false);
this.aggro = 0; this.aggro = 0;
entityPlayer.worldObj.playSoundAtEntity(entityPlayer,"mods.DimDoors.sfx.crack",13, 1); entityPlayer.worldObj.playSoundAtEntity(entityPlayer,mod_pocketDim.modid+":crack",13, 1);
} }
if (!(this.worldObj.provider instanceof LimboProvider || this.worldObj.getClosestPlayerToEntity(this, 5) != null) || this.aggro > 300) if (!(this.worldObj.provider instanceof LimboProvider || this.worldObj.getClosestPlayerToEntity(this, 5) != null) || this.aggro > 300)
{ {