From d0ac8cefe30627dcc6a5134d334e358287780f71 Mon Sep 17 00:00:00 2001 From: SubaruYashiro Date: Mon, 2 Feb 2026 12:13:45 +0800 Subject: [PATCH] [Tweaks] Walking Mode Toggle Command --- Tweaks/WalkingModeCommand.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Tweaks/WalkingModeCommand.cs diff --git a/Tweaks/WalkingModeCommand.cs b/Tweaks/WalkingModeCommand.cs new file mode 100644 index 00000000..2e40e6ed --- /dev/null +++ b/Tweaks/WalkingModeCommand.cs @@ -0,0 +1,20 @@ +using FFXIVClientStructs.FFXIV.Client.Game.Control; +using SimpleTweaksPlugin.Tweaks.AbstractTweaks; +using SimpleTweaksPlugin.TweakSystem; + +namespace SimpleTweaksPlugin.Tweaks; + +[TweakName("Walking Mode Command")] +[TweakDescription("Adds a command to toggle walking mode")] +[TweakAuthor("SubaruYashiro")] +public unsafe class WalkingModeCommand: CommandTweak +{ + protected override string Command => "/walk"; + protected override string HelpMessage => "Toggle Walking Mode"; + + protected override void OnCommand(string args) + { + Control* ctrl = Control.Instance(); + ctrl->IsWalking = !ctrl->IsWalking; + } +}