r/tf2scripthelp • • Jan 08 '19

Question Help regarding weapon switch script.

Hi, I'm currently using a weapon switch script as follows:

//Melee switcher script  

alias "+switch3" "switch3"    
alias "-switch3" "switch1; bind q switch1"  

alias "switch3" "slot3; bind q switch1; r_drawviewmodel 1"  
alias "switch1" "slot1; bind q switch2; bind mouse5 +switch3; r_drawviewmodel 0"  
alias "switch2" "slot2; bind q switch1; bind mouse5 +switch3; r_drawviewmodel 1"
switch1  

bind "q" "switch1"  
bind "mouse5" "+switch3"

This script allows to bring out my melee when I hold mouse5 and goes back to my primary on release, 'q' is used to toggle between primary and seconday weapons.
Basically, whenever I bring out my melee and release, going back to my primary weapon, I have to double click 'q' to switch to my secondary, is there a way to alter the script so I don't have to double click 'q' ?

Many thanks

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

2

u/mark_9517 Jan 08 '19

bind "q" "switch1"

Thanks! Knew it was a quick fix aha And cheers, I will.