DISCLAIMER: Only interesting for people using the "mouse 1 = primary weapon attack; mouse 2 = secondary weapon attack" setup on either of their classes.
The script features a straight upgrade for the commonly used setup mentioned above. What it does and how to implement it is featured in this post: reddit/r/tf2.
I hope this can help.
Thanks!