mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Added proper flying sounds for changelings
This commit is contained in:
parent
b2edae1766
commit
05ef379fc0
7 changed files with 16 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
BIN
src/main/resources/assets/unicopia/sounds/cicada/cicada_4.ogg
Normal file
BIN
src/main/resources/assets/unicopia/sounds/cicada/cicada_4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/assets/unicopia/sounds/cicada/cicada_5.ogg
Normal file
BIN
src/main/resources/assets/unicopia/sounds/cicada/cicada_5.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/assets/unicopia/sounds/cicada/cicada_6.ogg
Normal file
BIN
src/main/resources/assets/unicopia/sounds/cicada/cicada_6.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue