Skip to content

Instantly share code, notes, and snippets.

@x4fx77x4f
Created June 6, 2024 07:12
Show Gist options
  • Save x4fx77x4f/033da61cc982d4d6fb5f0928b16cb417 to your computer and use it in GitHub Desktop.
Save x4fx77x4f/033da61cc982d4d6fb5f0928b16cb417 to your computer and use it in GitHub Desktop.
WIP onehanded TF2 config
// Usage:
// 1. Save this file to "tf/cfg/x_mwm.cfg".
// 2. Add line "exec x_mwm" to "tf/cfg/autoexec.cfg".
// Scroll up to shift up a gear.
// Scroll down to shift down a gear.
// Gear range is 1 to 3. Default gear is 2.
// Gear 1 moves forward.
// Gear 2 stands still.
// Gear 3 moves backward.
// Assumes WASD. W and S behave as normal and additionally set gear to 2.
echo start x/mwm.cfg
alias x_mwm_nop
alias x_mwm_set_1 "+forward; bind mwheelup x_mwm_set_1; bind mwheeldown x_mwm_set_2"
alias x_mwm_set_2 "-forward; -back; bind mwheelup x_mwm_set_1; bind mwheeldown x_mwm_set_3"
alias x_mwm_set_3 "+back; bind mwheelup x_mwm_set_2; bind mwheeldown x_mwm_set_3"
x_mwm_set_2
alias +x_mwm_forward "x_mwm_set_2; +forward"
alias -x_mwm_forward x_mwm_set_2
alias +x_mwm_back "x_mwm_set_2; +back"
alias -x_mwm_back x_mwm_set_2
bind w +x_mwm_forward
bind s +x_mwm_back
echo stop x/mwm.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment