From 3659f2ce818c0ca951ad5cf472d5e57d1a08bcc8 Mon Sep 17 00:00:00 2001 From: aesthetic <15858616+aesthetic0001@users.noreply.github.com> Date: Wed, 13 Mar 2024 12:35:16 -0400 Subject: [PATCH] random sens --- lib/plugins/physics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/physics.js b/lib/plugins/physics.js index 1b6d72acb..4d02bc785 100644 --- a/lib/plugins/physics.js +++ b/lib/plugins/physics.js @@ -13,6 +13,7 @@ const PI = Math.PI const PI_2 = Math.PI * 2 const PHYSICS_INTERVAL_MS = 50 const PHYSICS_TIMESTEP = PHYSICS_INTERVAL_MS / 1000 // 0.05 +const randomSens = (Math.random() * 0.1) + 0.05 function inject(bot, {physicsEnabled, maxCatchupTicks}) { const PHYSICS_CATCHUP_TICKS = maxCatchupTicks ?? 4 @@ -335,7 +336,7 @@ function inject(bot, {physicsEnabled, maxCatchupTicks}) { // this is done to bypass certain anticheat checks that detect the player's sensitivity // by calculating the gcd of how much they move the mouse each tick - const sensitivity = conv.fromNotchianPitch(0.15) // this is equal to 100% sensitivity in vanilla + const sensitivity = conv.fromNotchianPitch(randomSens) const yawChange = Math.round((yaw - bot.entity.yaw) / sensitivity) * sensitivity const pitchChange = Math.round((pitch - bot.entity.pitch) / sensitivity) * sensitivity