Skip to content

Commit

Permalink
add back sneak fall feature (for merge)
Browse files Browse the repository at this point in the history
This reverts commit fe8dadc.
  • Loading branch information
Lamby777 committed Jan 3, 2024
1 parent a952344 commit 1815374
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/net/wurstclient/hacks/GlideHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@
import net.wurstclient.events.AirStrafingSpeedListener;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.SliderSetting;
import net.wurstclient.settings.SliderSetting.ValueDisplay;
import net.wurstclient.util.BlockUtils;

public final class GlideHack extends Hack
implements UpdateListener, AirStrafingSpeedListener
{
private final CheckboxSetting doSneakFall =
new CheckboxSetting("Temporary Disable",
"Temporarily disable this hack using your crouch button.\n"
+ "Turn off if you want to glide while crouching.",
true);

private final SliderSetting fallSpeed = new SliderSetting("Fall speed",
0.125, 0.005, 0.25, 0.005, ValueDisplay.DECIMAL);

Expand All @@ -42,6 +49,7 @@ public GlideHack()
super("Glide");

setCategory(Category.MOVEMENT);
addSetting(doSneakFall);
addSetting(fallSpeed);
addSetting(moveSpeed);
addSetting(minHeight);
Expand All @@ -64,6 +72,9 @@ public void onDisable()
@Override
public void onUpdate()
{
if(doSneakFall.isChecked() && MC.player.isSneaking())
return;

ClientPlayerEntity player = MC.player;
Vec3d v = player.getVelocity();

Expand Down

0 comments on commit 1815374

Please sign in to comment.