Added proper flying sounds for changelings

This commit is contained in:
Sollace 2019-04-04 14:20:20 +02:00
parent b2edae1766
commit 05ef379fc0
7 changed files with 16 additions and 2 deletions

View file

@ -12,6 +12,8 @@ public class USounds {
public static final SoundEvent WIND_RUSH = new USound(Unicopia.MODID, "wind_rush");
public static final SoundEvent INSECT = new USound(Unicopia.MODID, "insect");
public static final SoundEvent CHANGELING_BUZZ = new USound(Unicopia.MODID, "changeling_buzz");
public static final SoundEvent SLIME_ADVANCE = new USound(Unicopia.MODID, "slime_advance");
public static final SoundEvent SLIME_RETRACT = new USound(Unicopia.MODID, "slime_retract");
@ -22,7 +24,7 @@ public class USounds {
static void init(IForgeRegistry<SoundEvent> registry) {
registry.registerAll(WING_FLAP, WIND_RUSH,
INSECT, SLIME_ADVANCE, SLIME_RETRACT,
CHANGELING_BUZZ, INSECT, SLIME_ADVANCE, SLIME_RETRACT,
RECORD_CRUSADE, RECORD_PET, RECORD_POPULAR, RECORD_FUNK);
}

View file

@ -126,6 +126,8 @@ class PlayerGravityDelegate implements IUpdatable, IGravity, InbtSerialisable, I
@Override
public void onUpdate() {
gravity = -0.008F;
EntityPlayer entity = player.getOwner();
if (isExperienceCritical() && player.isRemote()) {
@ -268,7 +270,7 @@ class PlayerGravityDelegate implements IUpdatable, IGravity, InbtSerialisable, I
}
public SoundEvent getWingSound() {
return player.getPlayerSpecies() == Race.CHANGELING ? USounds.INSECT : USounds.WING_FLAP;
return player.getPlayerSpecies() == Race.CHANGELING ? USounds.CHANGELING_BUZZ : USounds.WING_FLAP;
}
protected void moveFlying(EntityPlayer player) {

View file

@ -304,3 +304,4 @@ unicopia.subtitle.wind_rush=Wind Gust
unicopia.subtitle.insects=Insects Scurrying
unicopia.subtitle.slime_advance=Squealch
unicopia.subtitle.slime_retract=Sqonk
unicopia.subtitle.changeling_buzz=Drone Buzzing

View file

@ -9,6 +9,15 @@
"unicopia:wing/wing3"
]
},
"changeling_buzz": {
"category": "player",
"subtitle": "unicopia.subtitle.changeling_buzz",
"sounds": [
"unicopia:cicada/cicada_4",
"unicopia:cicada/cicada_5",
"unicopia:cicada/cicada_6"
]
},
"wind_rush": {
"category": "ambient",
"subtitle": "unicopia.subtitle.wind_rush",