Tweaked bird wing flapping

This commit is contained in:
Matt Caughey 2013-11-08 04:11:51 -05:00
parent 7690267d5a
commit f41b8fe023
6 changed files with 15 additions and 7 deletions

View File

@ -108,7 +108,7 @@ public class BOPEntities {
if (Biomes.promisedLandForest.isPresent() && Biomes.promisedLandSwamp.isPresent() && Biomes.promisedLandPlains.isPresent())
{
EntityRegistry.addSpawn(EntityBird.class, 8, 1, 1, EnumCreatureType.ambient, Biomes.promisedLandForest.get(), Biomes.promisedLandSwamp.get(), Biomes.promisedLandPlains.get());
EntityRegistry.addSpawn(EntityBird.class, 1, 1, 3, EnumCreatureType.monster, Biomes.promisedLandForest.get(), Biomes.promisedLandSwamp.get(), Biomes.promisedLandPlains.get());
}
}
}

View File

@ -77,18 +77,18 @@ public class EntityBird extends EntityFlyingMob
@Override
protected String getLivingSound()
{
return "biomesoplenty:mob.wasp.say";
return "biomesoplenty:mob.bird.say";
}
@Override
protected String getHurtSound()
{
return "biomesoplenty:mob.wasp.hurt";
return "biomesoplenty:mob.bird.hurt";
}
@Override
protected String getDeathSound()
{
return "biomesoplenty:mob.wasp.hurt";
return "biomesoplenty:mob.bird.hurt";
}
}

View File

@ -122,8 +122,16 @@ public class ModelBird extends ModelBase
{
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
WingRight.rotateAngleZ = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F;
WingLeft.rotateAngleZ = -WingRight.rotateAngleZ;
if (entity.motionY > 0 || (entity.motionX == 0 && entity.motionZ == 0))
{
WingRight.rotateAngleZ = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F;
WingLeft.rotateAngleZ = -WingRight.rotateAngleZ;
}
else
{
WingRight.rotateAngleZ = 0;
WingLeft.rotateAngleZ = 0;
}
}
}

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", "biomesoplenty:mob/wasp/hurt.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", "biomesoplenty:mob/bird/say.ogg", "biomesoplenty:mob/bird/hurt.ogg" };
@SideOnly(Side.CLIENT)
@ForgeSubscribe

Binary file not shown.

Binary file not shown.