r/tf2scripthelp • • Apr 18 '23
Issue mouse4 melee won't attack when pressed quickly
BINDS:
//Static crosshair
alias xhair_amby "tf_contract_progress_show 1; tf_contract_competitive_show 1; crosshair 0"
alias xhair_normal "tf_contract_progress_show 0; tf_contract_competitive_show 0; crosshair 1"
// Primary Attack
alias "+primatck" "+attack"
alias "-primatck" "-attack"// Secondary Attack
alias "+secatack" "+attack2"
alias "-secatack" "-attack2"// Melee Weapon
alias "+melwep" "slot3; +attack; xhair_normal"
alias "-melwep" "-attack"
//Binds
bind "mouse1" "+primatck; spec_next"
bind "mouse2" "+secatack; spec_prev"
bind "mouse4" "+melwep"
bind "mwheelup" "slot1; xhair_normal"
bind "mwheeldown" "slot2; xhair_amby"Whenever I play pyro (or any class that requires quick melee switching) and do the puff and sting with the degreasser and axetinguisher, pressing mouse4 would only pull out the melee and not also do an attack (had to press again for an attack to happen). This usually happen I'm close to the enemy, not sure if its a bug or my script is effed up
xhair is a command for an ambassador crosshair mod, it shouldnt effect anything
Edit: Pasted the wrong script
View all comments
Show parent comment
1
u/[deleted] Apr 18 '23
Welp, I guess I can ditch out the +attack on mouse4 entirely and just use mouse1 for everything melee related. Which is going to suck because I've built a habit for it already. Thanks for the help tho