Replace weapon pose jitter with native swings and timed slash trails

This commit is contained in:
2026-09-13 10:33:20 +03:00
parent 4ff0ed89b5
commit 28ce2a53e0
55 changed files with 1003 additions and 62 deletions
@@ -102,7 +102,7 @@ public final class GauntletCombat {
WeaponPresentation.animate(p,Combo.pose(step),Combo.left(step),config.gauntletCooldownTicks);
sound(p,step == 6 ? "swing_kick" : step == 5 ? "swing_medium" : "swing_short",.7f);
if (batch.hit) sound(p,step == 6 ? "hit_kick" : step == 5 ? "hit_medium" : "hit_light",.8f);
p.swing(Combo.left(step) ? InteractionHand.OFF_HAND : InteractionHand.MAIN_HAND,true);
// WeaponPresentation sends the accepted hand after the local one-tick input swing.
}
public static boolean attackAllowed(Player p,Entity t) { return BATCHES.get(p.getUUID()).accepted.contains(t.getId()); }
public static boolean hurt(Player p,Entity t,DamageSource source,float damage) {