Skip to content

Commit f4e4aa4

Browse files
DortyTheGreatWide-Cat
authored andcommitted
Pitch40 update
Added more options for Pitch40. Changed default settings for Pitch40, increasing the average speed (25.5768 → 28.8312). Even higher average speeds could be achieved with the same pitch lock settings(~30), but using a greater(~100) height difference. Values were generated using simulated annealing (python). Tested in both singleplayer and on a server (with Grim AntiCheat).
1 parent 2d22601 commit f4e4aa4

2 files changed

Lines changed: 22 additions & 12 deletions

File tree

src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/ElytraFly.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,25 @@ public class ElytraFly extends Module {
181181
.build()
182182
);
183183

184-
public final Setting<Double> pitch40rotationSpeed = sgGeneral.add(new DoubleSetting.Builder()
185-
.name("pitch40-rotate-speed")
186-
.description("The speed for pitch rotation (degrees per tick)")
187-
.defaultValue(15)
184+
public final Setting<Double> pitch40rotationSpeedUp = sgGeneral.add(new DoubleSetting.Builder()
185+
.name("pitch40-rotate-speed-up")
186+
.description("The speed for pitch rotation upwards (degrees per tick)")
187+
.defaultValue(5.45)
188188
.min(1)
189189
.sliderMax(20)
190190
.visible(() -> flightMode.get() == ElytraFlightModes.Pitch40)
191191
.build()
192192
);
193+
194+
public final Setting<Double> pitch40rotationSpeedDown = sgGeneral.add(new DoubleSetting.Builder()
195+
.name("pitch40-rotate-speed-down")
196+
.description("The speed for pitch rotation downwards (degrees per tick)")
197+
.defaultValue(0.90)
198+
.min(0.5)
199+
.sliderMax(2)
200+
.visible(() -> flightMode.get() == ElytraFlightModes.Pitch40)
201+
.build()
202+
);
193203

194204
public final Setting<Boolean> autoJump = sgGeneral.add(new BoolSetting.Builder()
195205
.name("auto-jump")

src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/modes/Pitch40.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void onActivate() {
2727
elytraFly.toggle();
2828
}
2929

30-
pitch = 32.0F;
30+
pitch = 37.72F;
3131
}
3232

3333
/**
@@ -45,8 +45,8 @@ public void onTick() {
4545
super.onTick();
4646

4747
/*
48-
When descending, look at 32-33 deg
49-
When ascending, look up at -49 at 10*pitch speed, then lower at 0.5 deg/tick until at 32-33
48+
When descending, look at 37.72 deg
49+
When ascending, look up at -54.77 at 5.45 degree/tick, then lower at 0.90 deg/tick until at 37.72
5050
*/
5151

5252
if (pitchingDown && mc.player.getY() <= elytraFly.pitch40lowerBounds.get()) {
@@ -58,15 +58,15 @@ else if (!pitchingDown && mc.player.getY() >= elytraFly.pitch40upperBounds.get()
5858

5959
// Pitch upwards
6060
if (!pitchingDown) {
61-
pitch -= randPitch(elytraFly.pitch40rotationSpeed.get().floatValue(), 3.0F);
61+
pitch -= randPitch(elytraFly.pitch40rotationSpeedUp.get().floatValue(), 1.0F);
6262

63-
if (pitch < -49.0) {
64-
pitch = -49.0F;
63+
if (pitch < -54.77F) {
64+
pitch = -54.77F;
6565
pitchingDown = true;
6666
}
6767
// Pitch downwards
68-
} else if (pitch < 32.0) {
69-
pitch += randPitch(0.5F, 0.125F);
68+
} else if (pitch < 37.72F) {
69+
pitch += randPitch(elytraFly.pitch40rotationSpeedDown.get().floatValue(), 0.50F);
7070
}
7171

7272
mc.player.setPitch(pitch);

0 commit comments

Comments
 (0)