Skip to content

Commit

Permalink
Fix AimModulo360?
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Oct 13, 2024
1 parent 3cb1bb3 commit d4508fa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ public AimModulo360(GrimPlayer playerData) {

@Override
public void process(final RotationUpdate rotationUpdate) {
lastDeltaYaw = rotationUpdate.getDeltaXRot();
if (player.packetStateData.lastPacketWasTeleport) return;

if (player.xRot < 360 && player.xRot > -360 && Math.abs(rotationUpdate.getDeltaXRot()) > 320 && Math.abs(lastDeltaYaw) < 30) {
flagAndAlert();
} else {
reward();
}

lastDeltaYaw = rotationUpdate.getDeltaXRot();
}
}

0 comments on commit d4508fa

Please sign in to comment.