smooth display motion via teleport_duration=1 (no desync)
This commit is contained in:
@@ -40,6 +40,7 @@ public class LungeAttack {
|
||||
d.setViewRange(64);
|
||||
});
|
||||
EntityTracker.mark(catalyst);
|
||||
EntityTracker.smooth(catalyst);
|
||||
p.getWorld().playSound(start, Sound.BLOCK_SCULK_CATALYST_BLOOM, 1f, 0.7f);
|
||||
double catSpeed = 3.0;
|
||||
|
||||
@@ -154,6 +155,7 @@ public class LungeAttack {
|
||||
new org.joml.AxisAngle4f()));
|
||||
});
|
||||
EntityTracker.mark(sword);
|
||||
EntityTracker.smooth(sword);
|
||||
new BukkitRunnable() {
|
||||
long hold = 5;
|
||||
boolean launched = false;
|
||||
@@ -222,6 +224,7 @@ public class LungeAttack {
|
||||
new org.joml.AxisAngle4f()));
|
||||
});
|
||||
EntityTracker.mark(sword);
|
||||
EntityTracker.smooth(sword);
|
||||
p.getWorld().playSound(gazePoint, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 1f, 0.5f);
|
||||
p.getWorld().playSound(gazePoint, Sound.BLOCK_ANVIL_LAND, 0.6f, 1.4f);
|
||||
Vector vel = new Vector(0, -1.2, 0);
|
||||
@@ -370,6 +373,7 @@ public class LungeAttack {
|
||||
new org.joml.AxisAngle4f()));
|
||||
});
|
||||
EntityTracker.mark(sword);
|
||||
EntityTracker.smooth(sword);
|
||||
Vector vel = new Vector(0, -fallSpeed, 0);
|
||||
p.getWorld().playSound(spawn, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 0.6f, 0.7f);
|
||||
new BukkitRunnable() {
|
||||
@@ -463,6 +467,7 @@ public class LungeAttack {
|
||||
new org.joml.AxisAngle4f()));
|
||||
});
|
||||
EntityTracker.mark(sword);
|
||||
EntityTracker.smooth(sword);
|
||||
spawn.getWorld().playSound(spawn, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 0.8f, 0.5f);
|
||||
|
||||
new BukkitRunnable() {
|
||||
|
||||
Reference in New Issue
Block a user