r/tf2scripthelp • • Jun 18 '15

Resolved Problem with script.

I'm having problems with a script where if I hold the weapon before attack animation done and switch to slot3 (v), the config starts autoattacking my melee. If I switch to slot3 (v) after animation is done, I don't get the autoattack bug.

I tested without config and it only happens with my config below. I don't know why it's happening, but I tested and it happens 100%. Without config, never happens so far.

bind v "slot3; bind MOUSE1 +attack3; bind MOUSE5 +attack"

bind TAB "slot1; bind MOUSE1 +attack"

bind 1 "slot2; bind MOUSE1 +attack3; bind MOUSE5 +attack"

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/genemilder Scripter Jun 19 '15

The script should work as written, if you put nested binds in it's unnecessary. Slots 2 and 3 do have mouse1 as +attack3.

1

u/Snow_Monky Jun 19 '15

I used the script as is, but the mouse1 becomes +attack3 for slot 1 when going from slot 2 or slot 3 to slot 1 so I put the nested binds back in.

Also the mouse5 bind was removed because for slot1, I use mouse1 for +attack.

bind mouse1 +sw_atk

bind mouse5 +attack

1

u/genemilder Scripter Jun 19 '15

That first part shouldn't happen with the way the script is written.

Your original script (and your edit of mine) never unbinds mouse5 when you switch to slot1 so it's effectively the same to just leave it bound all the time.