Reset bunny if low jumping is legit (experiment for 2-high places).

This commit is contained in:
asofold 2015-04-12 01:41:19 +02:00
parent 393787e2e3
commit 7ae63211c2

View File

@ -825,6 +825,10 @@ public class SurvivalFly extends Check {
if ((aboveFlags & (BlockProperties.F_GROUND | BlockProperties.F_SOLID)) == 0) { if ((aboveFlags & (BlockProperties.F_GROUND | BlockProperties.F_SOLID)) == 0) {
tags.add("lowjump"); tags.add("lowjump");
data.sfLowJump = true; data.sfLowJump = true;
} else if (setBackYDistance < 0.36) {
// TODO: "Exact" parameters.
data.bunnyhopDelay = 0;
tags.add("resetbunny_lowjump");
} }
} }
} }
@ -960,7 +964,7 @@ public class SurvivalFly extends Check {
} }
// Check hop: // Check hop:
if (allowHop && hDistance >= walkSpeed) { // if (sprinting) { if (allowHop && hDistance >= walkSpeed) { // if (sprinting) {
// Check activation of bunny hop, // Check activation of bunlowny hop,
// Roughly twice the sprinting speed is reached. // Roughly twice the sprinting speed is reached.
// TODO: Allow slightly higher speed on lost ground. // TODO: Allow slightly higher speed on lost ground.
if (hDistanceAboveLimit > (sprinting ? 0.005 : 0.0016) && hDistanceAboveLimit <= hAllowedDistance + someThreshold if (hDistanceAboveLimit > (sprinting ? 0.005 : 0.0016) && hDistanceAboveLimit <= hAllowedDistance + someThreshold