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