Binds & Console

KF2 Toggle Sprint With Console Binds (GamepadSprint Trick)

This guide shows how to stop holding Left Shift all game. It uses console binds that borrow the gamepad sprint action, which behaves as a toggle. Note that Tripwire later added an official toggle option, and the author explains when his method is still useful.

Important note: the official option

On 28 February 2019 Tripwire released a beta update with a built-in toggle: go to Options, then Gameplay, and tick "Toggle to sprint". The author kept the guide public because in his testing the official option was far from perfect at first, and his method had one main downside: you cannot shoot while crouching (unless you use the optional cancel binds below). Check the current state of the official option before relying on the workaround.

Toggle sprint binds

Open the console and paste the lines you want.

Toggle sprint:

setBind "LeftShift" "GamepadSprint"

Aim down sights cancels sprint (optional):

setBind "RightMouseButton" "GBA_IronsightsToggle | SpectateNextPlayer | GamepadSprintRelease | GamepadCrouchRelease"

Firing cancels sprint (optional):

setBind "LeftMouseButton" "GBA_Fire | SpectatePrevPlayer | GamepadSprintRelease | GamepadCrouchRelease"

Crouch fix (optional) - pick either the toggle or the hold version:

setBind "LeftControl" "GBA_CrouchToggle | GamepadSprintRelease"
setBind "LeftControl" "GBA_CrouchHold | GamepadSprintRelease"

Alt fire / parry cancels sprint (optional):

setBind "MiddleMouseButton" "GBA_SwitchFireMode | SpectateChangeCamMode | GamepadSprintRelease | GamepadCrouchRelease"

Known side effects

  • For some reason GamepadSprintRelease cycles the crouch position of a standing player. That is why GamepadCrouchRelease is added to the cancel binds.
  • Because of this you cannot shoot while crouched (the game forces you to stand), so a crouched Sharpshooter style does not work with this setup.
  • You also cannot start a crouch while standing perfectly still, but you can crouch while moving and then stop.
  • If you leave out the "fire cancels sprint" bind you keep sprinting automatically after firing. The author added that bind because other players asked for it.
  • You can change the key in each bind to whatever you prefer.

Returning to normal sprint

Rebind the keys in the options menu, or enter these in the console:

setBind "LeftShift" "GBA_Sprint"
setBind "LeftControl" "GBA_CrouchToggle"
setBind "LeftMouseButton" "GBA_Fire | SpectatePrevPlayer"
setBind "RightMouseButton" "GBA_IronsightsToggle | SpectateNextPlayer"
setBind "MiddleMouseButton" "GBA_SwitchFireMode | SpectateChangeCamMode"

See also toggle sprint and KFInput.ini bindings for a different method.

FAQ

How do I toggle sprint with a console command?
Enter setBind "LeftShift" "GamepadSprint" in the console.
Is there an official toggle sprint option now?
Yes. Since the beta update of 28 Feb 2019 you can tick Toggle to Sprint under Options > Gameplay.
How do I go back to normal sprint?
Rebind the keys in the options menu or enter setBind "LeftShift" "GBA_Sprint" in the console.