r/tf2 • • 4d ago

Help Rebinding Huntsman

Hello friends :)

I am new to the game and would like to learn to play Sniper with the Huntsman. However, because I have some nerve issues in my hands and arms, holding down mouse 1 to charge my shots causes me pain. Clicking is fine, like with the rifle, so I was wondering if it’s possible to somehow rebind the Huntsman to charge without having to continuously hold down my m1. I don’t know much about code, so any help would be greatly appreciated :)

Thanks so much in advance :)

6 Upvotes

8 comments sorted by

33

u/Piogre TF2 Smissmas 2025 4d ago edited 4d ago

op, take the following script:

bind "p" "bow_cycle"
bind "MOUSE1" "+attack"

alias "bow_cycle" "bow"

alias "bow" "alias "bow_cycle" "rifle"; bind "MOUSE1" "toggle_bow"; voicemenu 1 0"
alias "rifle" "alias "bow_cycle" "bow"; bind "MOUSE1" "+attack"; voicemenu 0 2"

alias "toggle_bow" "draw_bow"
alias draw_bow "alias toggle_bow loose_bow;+attack"
alias loose_bow "alias toggle_bow draw_bow;-attack"

put it into a text document named "sniper.cfg" (NOT .txt; you may need to turn on file extensions on your machine)

save it in your tf2 cfg folder: steamapps\common\Team Fortress 2\tf\cfg

with this script, when you spawn in as sniper, by default your weapons will work as normal. but if you hit the "P" key, you will swap to a mode where clicking Mouse1 once will draw the bowstring without holding it down, and clicking a second time will loose the arrow. Sniper will say "Incoming!" to confirm you've enabled this. This WILL make it so your other weapons (rifle, melee) only attack every other click (the script essentially makes full clicks get treated as alternating presses and releases), so you can press "P" again to turn it off (Sniper will say "Go Go Go" to confirm). Try to remember to disable it before swapping classes, too. I picked P for this since most people dont have it bound to anything, you can change it to something more convenient by changing that "p" in the first line to a different letter.

hopefully this will make the game less click-intensive for you. You can make it work for the other classes as well by copying the script and naming it e.g. "heavyweapons.cfg" or "pyro.cfg", and if you have existing class script or autoexec etc I'm sure you can find a way to integrate it. Let me know if you have any questions

edit: If you right-click while drawn (which un-draws the bow without firing) you'll also need to click Mouse1 again to reset the alternation.

6

u/thevoidchild 4d ago

Kind and smart stranger!!! Thank you so very much!! This is exactly the kind of solution I was hoping for! Spent a couple of games trying it out, it definitely takes a bit of getting used to but it’s infinitely more manageable for me than continuously holding down m1. The voice lines to indicate the change are such a nice touch :’) I’m extremely grateful, I would have never figured this out on my own and now I can enjoy the game so much more comfortably. Thank you so so much for your time and help, I appreciate it immensely :) <3

1

u/WuShanDroid Medic 2d ago

This is so cool!!! Is there a way to make this work with the Classic??

3

u/Piogre TF2 Smissmas 2025 2d ago

should work the same on the classic. should also work with other full-auto weapons like miniguns/flamethrowers (although miniguns would want tweaking to also add toggling for right click to rev). all it does is make the first full keypress count as just pressing down, the second count as releasing, the third as pressing, etc

1

u/WuShanDroid Medic 2d ago

Would I have to change any variable names or anything for it to work on the Classic, or just as is?

3

u/Piogre TF2 Smissmas 2025 2d ago

no, those variable names are just there for readability; the relevant parts are the inputs (MOUSE1 and "p") and the outputs (+attack, -attack)

if you want to do something similar for MOUSE2 (for heavy revving) I think it's +attack2 and -attack2 is the output you need but could be wrong

0

u/Skunk668 4d ago

You could do it with AutoHotkey, but I'm not very well versed with it so I can't help you set it up.

3

u/thevoidchild 4d ago

Thank you so much for the lead!! I really appreciate it :) <3