Search
Username:
Password:
Register or Reset Password
Remove the ads!
Melee Auto-Attack V3
Added by...
Author(s): The404Error
Category: TF2 > Weapon Scripts
Notes/Usage Instructions:

This script makes it so when you hold down your scrollwheel, your melee weapon will automatically attack, and even if you slide it up and down (when held), it will not switch weapons. When the third mouse button is released, your mousewheel will be able to switch weapons, and you will switch to your primary weapon.
Script Code:
alias +meleesmash "slot3; unbind "MWHEELDOWN"; unbind "MWHEELUP"; +attack"
alias -meleesmash "lastinv; bind "MWHEELDOWN" "invnext"; bind "MWHEELUP" "invprev"; -attack"
bind "mouse3" +meleesmash

NO FASTSWITCH ENABLE ADDITION
For those who don't have fastswitch (in preferences) enabled.
alias +meleesmash "slot3; +attack"
alias -meleesmash "lastinv; -attack"
bind "mouse3" +meleesmash

NO-MENU SCRIPT VERSION
If you already have my No-Menu Script, just add this to the bottom of it.

alias +meleesmash "weapon3; unbind "MWHEELDOWN"; unbind "MWHEELUP"; +attack"
alias -meleesmash "weapon1; -attack"
bind "mouse3" +meleesmash

---
UPDATE TO V2:
- Learned that this short version of the script works exactly the same way as my other one, and preserves everything. Oops!
---
UPDATE TO V3:
- Added the "No Fastswitch version, which doesn't include the scrollwheel binds.
- Fixed bugs in the script.
---
Added: 11 months ago
Feedback (2)
The_X .
BananiteY2M
Posted 3 months ago
You sure the "No Fast-switch" works...i have something similar in my engi.cfg (named the alias different) and it won't work without fast switch on
- Bananite
kfceater .
i needs a 6 digitY2M
Posted 11 months ago
Looks nice, cant wait to try it
Add Feedback
Provide constructive feedback. What is "constructive"?
You must login or register to access this!
Assessment
The community's verdict.
No assessments made... please vote!
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This script in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Added by...
.
The Best User and Second Sexiest Male™
Ranked 161st with 14,709 points. 26 points behind .

[+] Donate
Vote for Submitter
Like this script? Vote . for one or more monthly awards.
You must login or register to access this!
Related Scripts
Want more? Find related scripts.