Replace weapon pose jitter with native swings and timed slash trails
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user