new toreterror sounds
This commit is contained in:
1 parent
303a56f7fc
commit
2c9fc4f11f
17 files changed
+82
-5
No files matched your search
+5
-3
@@ -34,7 +34,6 @@ dependencies {
|
|||||||
// implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
|
// implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
|
||||||
|
|
||||||
|
|
||||||
annotationProcessor "org.spongepowered:mixin:0.8.7:processor"
|
|
||||||
implementation(annotationProcessor("io.github.llamalad7:mixinextras-common:${rootProject.mixin_extras}"))
|
implementation(annotationProcessor("io.github.llamalad7:mixinextras-common:${rootProject.mixin_extras}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,10 +41,13 @@ architectury {
|
|||||||
common("fabric", "neoforge")
|
common("fabric", "neoforge")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No mixin AP / refmap in common: the fabric project compiles common's sources itself
|
||||||
|
// and generates its own refmap. With the legacy AP enabled here, loom injects a
|
||||||
|
// "refmap" line into the built antarchy-common.mixins.json, which breaks NeoForge
|
||||||
|
// (it resolves to fabric-only intermediary names like field_6353).
|
||||||
loom {
|
loom {
|
||||||
mixin {
|
mixin {
|
||||||
useLegacyMixinAp = true
|
useLegacyMixinAp = false
|
||||||
defaultRefmapName = "antarchy.refmap.json"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,6 +126,9 @@ public final class AntarchySoundEvents {
|
|||||||
public static Supplier<SoundEvent> TORETERROR_HURT = (Supplier<SoundEvent>) UNBOUND;
|
public static Supplier<SoundEvent> TORETERROR_HURT = (Supplier<SoundEvent>) UNBOUND;
|
||||||
public static Supplier<SoundEvent> TORETERROR_DEATH = (Supplier<SoundEvent>) UNBOUND;
|
public static Supplier<SoundEvent> TORETERROR_DEATH = (Supplier<SoundEvent>) UNBOUND;
|
||||||
public static Supplier<SoundEvent> TORETERROR_BOMBER_FIRE = (Supplier<SoundEvent>) UNBOUND;
|
public static Supplier<SoundEvent> TORETERROR_BOMBER_FIRE = (Supplier<SoundEvent>) UNBOUND;
|
||||||
|
public static Supplier<SoundEvent> TORETERROR_SPIN = (Supplier<SoundEvent>) UNBOUND;
|
||||||
|
public static Supplier<SoundEvent> TORETERROR_RICOCHET = (Supplier<SoundEvent>) UNBOUND;
|
||||||
|
public static Supplier<SoundEvent> WATER_CANNON_FIRE = (Supplier<SoundEvent>) UNBOUND;
|
||||||
public static Supplier<SoundEvent> TORETERROR_JUMP_UP = (Supplier<SoundEvent>) UNBOUND;
|
public static Supplier<SoundEvent> TORETERROR_JUMP_UP = (Supplier<SoundEvent>) UNBOUND;
|
||||||
public static Supplier<SoundEvent> TORETERROR_JUMP_LAND = (Supplier<SoundEvent>) UNBOUND;
|
public static Supplier<SoundEvent> TORETERROR_JUMP_LAND = (Supplier<SoundEvent>) UNBOUND;
|
||||||
public static Supplier<SoundEvent> STINKY_FLY = (Supplier<SoundEvent>) UNBOUND;
|
public static Supplier<SoundEvent> STINKY_FLY = (Supplier<SoundEvent>) UNBOUND;
|
||||||
@@ -259,6 +262,9 @@ public final class AntarchySoundEvents {
|
|||||||
Supplier<SoundEvent> toreterrorHurt,
|
Supplier<SoundEvent> toreterrorHurt,
|
||||||
Supplier<SoundEvent> toreterrorDeath,
|
Supplier<SoundEvent> toreterrorDeath,
|
||||||
Supplier<SoundEvent> toreterrorBomberFire,
|
Supplier<SoundEvent> toreterrorBomberFire,
|
||||||
|
Supplier<SoundEvent> toreterrorSpin,
|
||||||
|
Supplier<SoundEvent> toreterrorRicochet,
|
||||||
|
Supplier<SoundEvent> waterCannonFire,
|
||||||
Supplier<SoundEvent> toreterrorJumpUp,
|
Supplier<SoundEvent> toreterrorJumpUp,
|
||||||
Supplier<SoundEvent> toreterrorJumpLand,
|
Supplier<SoundEvent> toreterrorJumpLand,
|
||||||
Supplier<SoundEvent> stinkyFly,
|
Supplier<SoundEvent> stinkyFly,
|
||||||
@@ -388,6 +394,9 @@ public final class AntarchySoundEvents {
|
|||||||
TORETERROR_HURT = toreterrorHurt;
|
TORETERROR_HURT = toreterrorHurt;
|
||||||
TORETERROR_DEATH = toreterrorDeath;
|
TORETERROR_DEATH = toreterrorDeath;
|
||||||
TORETERROR_BOMBER_FIRE = toreterrorBomberFire;
|
TORETERROR_BOMBER_FIRE = toreterrorBomberFire;
|
||||||
|
TORETERROR_SPIN = toreterrorSpin;
|
||||||
|
TORETERROR_RICOCHET = toreterrorRicochet;
|
||||||
|
WATER_CANNON_FIRE = waterCannonFire;
|
||||||
TORETERROR_JUMP_UP = toreterrorJumpUp;
|
TORETERROR_JUMP_UP = toreterrorJumpUp;
|
||||||
TORETERROR_JUMP_LAND = toreterrorJumpLand;
|
TORETERROR_JUMP_LAND = toreterrorJumpLand;
|
||||||
STINKY_FLY = stinkyFly;
|
STINKY_FLY = stinkyFly;
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ public class ToreterrorEntity extends Monster implements GeoEntity {
|
|||||||
private int shootCooldown;
|
private int shootCooldown;
|
||||||
private int jumpCooldown;
|
private int jumpCooldown;
|
||||||
private int spinCooldown;
|
private int spinCooldown;
|
||||||
|
private int spinRicochetCooldown;
|
||||||
private boolean jumpLaunched;
|
private boolean jumpLaunched;
|
||||||
private boolean jumpAirborne;
|
private boolean jumpAirborne;
|
||||||
private boolean shockwaveApplied;
|
private boolean shockwaveApplied;
|
||||||
@@ -227,6 +228,7 @@ public class ToreterrorEntity extends Monster implements GeoEntity {
|
|||||||
if (this.shootCooldown > 0) this.shootCooldown--;
|
if (this.shootCooldown > 0) this.shootCooldown--;
|
||||||
if (this.jumpCooldown > 0) this.jumpCooldown--;
|
if (this.jumpCooldown > 0) this.jumpCooldown--;
|
||||||
if (this.spinCooldown > 0) this.spinCooldown--;
|
if (this.spinCooldown > 0) this.spinCooldown--;
|
||||||
|
if (this.spinRicochetCooldown > 0) this.spinRicochetCooldown--;
|
||||||
if (this.jumpShakeTicks > 0) {
|
if (this.jumpShakeTicks > 0) {
|
||||||
this.jumpShakeTicks--;
|
this.jumpShakeTicks--;
|
||||||
if (this.jumpShakeTicks <= 0) {
|
if (this.jumpShakeTicks <= 0) {
|
||||||
@@ -575,6 +577,7 @@ public class ToreterrorEntity extends Monster implements GeoEntity {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.playSpinRicochetSound();
|
||||||
this.spinStrafeSign *= -1;
|
this.spinStrafeSign *= -1;
|
||||||
Vec3 bounced = rotateHorizontal(direction, this.spinStrafeSign * 35.0D);
|
Vec3 bounced = rotateHorizontal(direction, this.spinStrafeSign * 35.0D);
|
||||||
if (this.trySpinMoves(bounced, true)) {
|
if (this.trySpinMoves(bounced, true)) {
|
||||||
@@ -590,6 +593,14 @@ public class ToreterrorEntity extends Monster implements GeoEntity {
|
|||||||
return this.trySpinMoves(reversedBounce, true);
|
return this.trySpinMoves(reversedBounce, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void playSpinRicochetSound() {
|
||||||
|
if (this.spinRicochetCooldown > 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.spinRicochetCooldown = 6;
|
||||||
|
this.playSound(AntarchySoundEvents.TORETERROR_RICOCHET.get(), 1.0F, 0.95F + this.random.nextFloat() * 0.1F);
|
||||||
|
}
|
||||||
|
|
||||||
private boolean trySpinMoves(Vec3 baseDirection, boolean bounced) {
|
private boolean trySpinMoves(Vec3 baseDirection, boolean bounced) {
|
||||||
Vec3[] attempts = new Vec3[]{
|
Vec3[] attempts = new Vec3[]{
|
||||||
baseDirection,
|
baseDirection,
|
||||||
@@ -715,7 +726,7 @@ public class ToreterrorEntity extends Monster implements GeoEntity {
|
|||||||
if (!(this.level() instanceof ServerLevel serverLevel)) return;
|
if (!(this.level() instanceof ServerLevel serverLevel)) return;
|
||||||
LivingEntity target = this.getTarget();
|
LivingEntity target = this.getTarget();
|
||||||
if (target == null) return;
|
if (target == null) return;
|
||||||
this.playSound(AntarchySoundEvents.SQUIDZOOKA_FIRE.get(), 0.8F, 0.9F + this.random.nextFloat() * 0.2F);
|
this.playSound(AntarchySoundEvents.WATER_CANNON_FIRE.get(), 0.8F, 0.9F + this.random.nextFloat() * 0.2F);
|
||||||
Vec3 from = new Vec3(this.getX(), this.getEyeY(), this.getZ());
|
Vec3 from = new Vec3(this.getX(), this.getEyeY(), this.getZ());
|
||||||
Vec3 to = new Vec3(target.getX(), target.getEyeY(), target.getZ());
|
Vec3 to = new Vec3(target.getX(), target.getEyeY(), target.getZ());
|
||||||
Vec3 baseVel = calcLaunchVelocity(from, to, 1.5);
|
Vec3 baseVel = calcLaunchVelocity(from, to, 1.5);
|
||||||
@@ -917,6 +928,7 @@ public class ToreterrorEntity extends Monster implements GeoEntity {
|
|||||||
ToreterrorEntity.this.spinDirection = target == null
|
ToreterrorEntity.this.spinDirection = target == null
|
||||||
? Vec3.ZERO
|
? Vec3.ZERO
|
||||||
: ToreterrorEntity.this.horizontalDirectionTo(target.position());
|
: ToreterrorEntity.this.horizontalDirectionTo(target.position());
|
||||||
|
ToreterrorEntity.this.playSound(AntarchySoundEvents.TORETERROR_SPIN.get(), 1.1F, 0.95F + ToreterrorEntity.this.random.nextFloat() * 0.1F);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public class WaterCannonItem extends ProjectileWeaponItem implements GeoItem {
|
|||||||
if (usedTicks % FIRE_INTERVAL_TICKS != 0) return;
|
if (usedTicks % FIRE_INTERVAL_TICKS != 0) return;
|
||||||
|
|
||||||
level.playSound(null, player.getX(), player.getY(), player.getZ(),
|
level.playSound(null, player.getX(), player.getY(), player.getZ(),
|
||||||
AntarchySoundEvents.SQUIDZOOKA_FIRE.get(), SoundSource.PLAYERS,
|
AntarchySoundEvents.WATER_CANNON_FIRE.get(), SoundSource.PLAYERS,
|
||||||
0.8F, 0.9F + level.getRandom().nextFloat() * 0.2F);
|
0.8F, 0.9F + level.getRandom().nextFloat() * 0.2F);
|
||||||
|
|
||||||
if (!level.isClientSide()) {
|
if (!level.isClientSide()) {
|
||||||
|
|||||||
@@ -661,6 +661,9 @@
|
|||||||
"subtitles.antarchy.toreterror_hurt": "Toreterror hurts",
|
"subtitles.antarchy.toreterror_hurt": "Toreterror hurts",
|
||||||
"subtitles.antarchy.toreterror_death": "Toreterror dies",
|
"subtitles.antarchy.toreterror_death": "Toreterror dies",
|
||||||
"subtitles.antarchy.toreterror_bomber_fire": "Toreterror launches bombers",
|
"subtitles.antarchy.toreterror_bomber_fire": "Toreterror launches bombers",
|
||||||
|
"subtitles.antarchy.toreterror_spin": "Toreterror spins",
|
||||||
|
"subtitles.antarchy.toreterror_ricochet": "Toreterror ricochets",
|
||||||
|
"subtitles.antarchy.water_cannon_fire": "Water Cannon fires",
|
||||||
"subtitles.antarchy.toreterror_jump_up": "Toreterror jumps",
|
"subtitles.antarchy.toreterror_jump_up": "Toreterror jumps",
|
||||||
"subtitles.antarchy.toreterror_jump_land": "Toreterror lands",
|
"subtitles.antarchy.toreterror_jump_land": "Toreterror lands",
|
||||||
"subtitles.antarchy.creeping_horror_growl": "Creeping Horror growls",
|
"subtitles.antarchy.creeping_horror_growl": "Creeping Horror growls",
|
||||||
|
|||||||
@@ -513,6 +513,45 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"toreterror_spin": {
|
||||||
|
"subtitle": "subtitles.antarchy.toreterror_spin",
|
||||||
|
"sounds": [
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/spin"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"toreterror_ricochet": {
|
||||||
|
"subtitle": "subtitles.antarchy.toreterror_ricochet",
|
||||||
|
"sounds": [
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/richochet1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/richochet2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/richochet3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"water_cannon_fire": {
|
||||||
|
"subtitle": "subtitles.antarchy.water_cannon_fire",
|
||||||
|
"sounds": [
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/water_cannon1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/water_cannon2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/water_cannon3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "antarchy:mob/toreterror/water_cannon4"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"toreterror_jump_up": {
|
"toreterror_jump_up": {
|
||||||
"subtitle": "subtitles.antarchy.toreterror_jump_up",
|
"subtitle": "subtitles.antarchy.toreterror_jump_up",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -402,6 +402,9 @@ public final class AntarchyFabricContent {
|
|||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_HURT = registerSoundEvent("toreterror_hurt");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_HURT = registerSoundEvent("toreterror_hurt");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_DEATH = registerSoundEvent("toreterror_death");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_DEATH = registerSoundEvent("toreterror_death");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_BOMBER_FIRE = registerSoundEvent("toreterror_bomber_fire");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_BOMBER_FIRE = registerSoundEvent("toreterror_bomber_fire");
|
||||||
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_SPIN = registerSoundEvent("toreterror_spin");
|
||||||
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_RICOCHET = registerSoundEvent("toreterror_ricochet");
|
||||||
|
public static final DeferredHolder<SoundEvent, SoundEvent> WATER_CANNON_FIRE = registerSoundEvent("water_cannon_fire");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_UP = registerSoundEvent("toreterror_jump_up");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_UP = registerSoundEvent("toreterror_jump_up");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_LAND = registerSoundEvent("toreterror_jump_land");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_LAND = registerSoundEvent("toreterror_jump_land");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> STINKY_FLY_SOUND = registerSoundEvent("stinky_fly");
|
public static final DeferredHolder<SoundEvent, SoundEvent> STINKY_FLY_SOUND = registerSoundEvent("stinky_fly");
|
||||||
@@ -2510,6 +2513,9 @@ public final class AntarchyFabricContent {
|
|||||||
TORETERROR_HURT,
|
TORETERROR_HURT,
|
||||||
TORETERROR_DEATH,
|
TORETERROR_DEATH,
|
||||||
TORETERROR_BOMBER_FIRE,
|
TORETERROR_BOMBER_FIRE,
|
||||||
|
TORETERROR_SPIN,
|
||||||
|
TORETERROR_RICOCHET,
|
||||||
|
WATER_CANNON_FIRE,
|
||||||
TORETERROR_JUMP_UP,
|
TORETERROR_JUMP_UP,
|
||||||
TORETERROR_JUMP_LAND,
|
TORETERROR_JUMP_LAND,
|
||||||
STINKY_FLY_SOUND,
|
STINKY_FLY_SOUND,
|
||||||
|
|||||||
@@ -141,6 +141,9 @@ public class AntarchyNeoforge {
|
|||||||
AntarchyNeoforgeSounds.TORETERROR_HURT,
|
AntarchyNeoforgeSounds.TORETERROR_HURT,
|
||||||
AntarchyNeoforgeSounds.TORETERROR_DEATH,
|
AntarchyNeoforgeSounds.TORETERROR_DEATH,
|
||||||
AntarchyNeoforgeSounds.TORETERROR_BOMBER_FIRE,
|
AntarchyNeoforgeSounds.TORETERROR_BOMBER_FIRE,
|
||||||
|
AntarchyNeoforgeSounds.TORETERROR_SPIN,
|
||||||
|
AntarchyNeoforgeSounds.TORETERROR_RICOCHET,
|
||||||
|
AntarchyNeoforgeSounds.WATER_CANNON_FIRE,
|
||||||
AntarchyNeoforgeSounds.TORETERROR_JUMP_UP,
|
AntarchyNeoforgeSounds.TORETERROR_JUMP_UP,
|
||||||
AntarchyNeoforgeSounds.TORETERROR_JUMP_LAND,
|
AntarchyNeoforgeSounds.TORETERROR_JUMP_LAND,
|
||||||
AntarchyNeoforgeSounds.STINKY_FLY,
|
AntarchyNeoforgeSounds.STINKY_FLY,
|
||||||
|
|||||||
+3
@@ -128,6 +128,9 @@ public final class AntarchyNeoforgeSounds {
|
|||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_HURT = registerSoundEvent("toreterror_hurt");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_HURT = registerSoundEvent("toreterror_hurt");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_DEATH = registerSoundEvent("toreterror_death");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_DEATH = registerSoundEvent("toreterror_death");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_BOMBER_FIRE = registerSoundEvent("toreterror_bomber_fire");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_BOMBER_FIRE = registerSoundEvent("toreterror_bomber_fire");
|
||||||
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_SPIN = registerSoundEvent("toreterror_spin");
|
||||||
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_RICOCHET = registerSoundEvent("toreterror_ricochet");
|
||||||
|
public static final DeferredHolder<SoundEvent, SoundEvent> WATER_CANNON_FIRE = registerSoundEvent("water_cannon_fire");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_UP = registerSoundEvent("toreterror_jump_up");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_UP = registerSoundEvent("toreterror_jump_up");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_LAND = registerSoundEvent("toreterror_jump_land");
|
public static final DeferredHolder<SoundEvent, SoundEvent> TORETERROR_JUMP_LAND = registerSoundEvent("toreterror_jump_land");
|
||||||
public static final DeferredHolder<SoundEvent, SoundEvent> STINKY_FLY = registerSoundEvent("stinky_fly");
|
public static final DeferredHolder<SoundEvent, SoundEvent> STINKY_FLY = registerSoundEvent("stinky_fly");
|
||||||
|
|||||||
Reference in new issue
Block a user