Added a hurt sound for the wasp

This commit is contained in:
Matt Caughey 2013-10-30 05:23:04 -04:00
parent 21df57a054
commit f98ea5e6ae
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ public class EntityWasp extends EntityFlyingMob
public EntityWasp(World world)
{
super(world);
this.setSize(0.5F, 0.5F);
this.setSize(1.0F, 1.0F);
}
@Override
@ -93,7 +93,7 @@ public class EntityWasp extends EntityFlyingMob
if (this.targetedEntity != null && this.targetedEntity.getDistanceSqToEntity(this) < d4 * d4)
{
double d5 = this.targetedEntity.posX - this.posX;
double d6 = this.targetedEntity.boundingBox.minY + (double)(this.targetedEntity.height / 2.0F) - (this.posY + (double)(this.height / 2.0F));
double d6 = this.targetedEntity.boundingBox.minY + (double)(this.targetedEntity.height) - (this.posY);
double d7 = this.targetedEntity.posZ - this.posZ;
this.renderYawOffset = this.rotationYaw = -((float)Math.atan2(d5, d7)) * 180.0F / (float)Math.PI;
@ -143,12 +143,12 @@ public class EntityWasp extends EntityFlyingMob
@Override
protected String getHurtSound()
{
return "biomesoplenty:mob.wasp.say";
return "biomesoplenty:mob.wasp.hurt";
}
@Override
protected String getDeathSound()
{
return "biomesoplenty:mob.wasp.say";
return "biomesoplenty:mob.wasp.hurt";
}
}

View File

@ -13,7 +13,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class SoundHandler
{
static String[] recordSoundFiles = { "biomesoplenty:bopdisc.ogg", "biomesoplenty:bopdiscmud.ogg" };
static String[] soundFiles = { "biomesoplenty:mob/phantom/say.ogg", "biomesoplenty:mob/phantom/hurt.ogg", "biomesoplenty:mob/phantom/death.ogg", "biomesoplenty:mob/wasp/say.ogg" };
static String[] soundFiles = { "biomesoplenty:mob/phantom/say.ogg", "biomesoplenty:mob/phantom/hurt.ogg", "biomesoplenty:mob/phantom/death.ogg", "biomesoplenty:mob/wasp/say.ogg", "biomesoplenty:mob/wasp/hurt.ogg" };
@SideOnly(Side.CLIENT)
@ForgeSubscribe

Binary file not shown.