Add toggle to head movement while walking (#1805)

* Add toggle to head movement while walking

* correct typo

* Correcting the correcting

* Improve description.

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
This commit is contained in:
Daenges 2021-10-29 06:45:30 +02:00 committed by GitHub
parent 8de7618027
commit 6928cd40fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -348,7 +348,11 @@ namespace MinecraftClient
{ {
Location next = path.Dequeue(); Location next = path.Dequeue();
steps = Movement.Move2Steps(location, next, ref motionY); steps = Movement.Move2Steps(location, next, ref motionY);
UpdateLocation(location, next + new Location(0, 1, 0)); // Update yaw and pitch to look at next step
if (Settings.MoveHeadWhileWalking) // Disable head movements to avoid anti-cheat triggers
{
UpdateLocation(location, next + new Location(0, 1, 0)); // Update yaw and pitch to look at next step
}
} }
else else
{ {

View file

@ -45,6 +45,7 @@ scriptcache=true # Cache compiled scripts for faster load on l
timestamps=false # Prepend timestamps to chat messages timestamps=false # Prepend timestamps to chat messages
autorespawn=false # Toggle auto respawn if client player was dead (make sure your spawn point is safe) autorespawn=false # Toggle auto respawn if client player was dead (make sure your spawn point is safe)
minecraftrealms=true # Enable support for joining Minecraft Realms worlds minecraftrealms=true # Enable support for joining Minecraft Realms worlds
moveheadwhilewalking=true # Enable head movement while walking to avoid anti-cheat triggers
[Logging] [Logging]
# Only affect the messages on console. # Only affect the messages on console.

View file

@ -101,6 +101,7 @@ namespace MinecraftClient
public static bool EntityHandling = false; public static bool EntityHandling = false;
public static bool AutoRespawn = false; public static bool AutoRespawn = false;
public static bool MinecraftRealmsEnabled = true; public static bool MinecraftRealmsEnabled = true;
public static bool MoveHeadWhileWalking = true;
// Logging // Logging
public enum FilterModeEnum { Blacklist, Whitelist } public enum FilterModeEnum { Blacklist, Whitelist }
@ -368,6 +369,7 @@ namespace MinecraftClient
// Backward compatible so people can still enable debug with old config format // Backward compatible so people can still enable debug with old config format
case "debugmessages": DebugMessages = str2bool(argValue); return true; case "debugmessages": DebugMessages = str2bool(argValue); return true;
case "minecraftrealms": MinecraftRealmsEnabled = str2bool(argValue); return true; case "minecraftrealms": MinecraftRealmsEnabled = str2bool(argValue); return true;
case "moveheadwhilewalking": MoveHeadWhileWalking = str2bool(argValue); return true;
case "botowners": case "botowners":
Bots_Owners.Clear(); Bots_Owners.Clear();