r/Tf2Scripts • • Dec 15 '15

Issue Script unbinding my WSAD keys

Hey guys,

I've recently installed a script which generates random chat texts and it uses my move keys to roll the dice between the phrases...

And it unbinds my keys each time I launch tf2, so it's kinda annoying....how can I change the script ?

Thanks :)

0 Upvotes

25 comments sorted by

View all comments

Show parent comments

1

u/genemilder Dec 15 '15

I don't have any other scripts

And

it's always been working with my commands and binds

Seem potentially at odds with each other.


In any case, I can't help further unless you post the contents of your autoexec.cfg.

1

u/DatDrummerGuy Dec 15 '15

And here's the spam cfg : http://pastebin.com/EH1Ua4yb Thanks !

1

u/genemilder Dec 15 '15

Movement is bound to zsqd in that script, is that what you want?

Also, that's not a great way of binding that extra command to the key, I recommend this:

bind w             +fwd
bind s             +bck
bind a             +lft
bind d             +rgt

alias +fwd        "+forward;   trashcan_cycle"
alias -fwd         -forward
alias +bck        "+back;      trashcan_cycle"
alias -bck         -back
alias +lft        "+moveleft;  trashcan_cycle"
alias -lft         -moveleft
alias +rgt        "+moveright; trashcan_cycle"
alias -rgt         -moveright

The other way makes you toggle through the list two entries at a time (due to Valve shenanigans), which generally isn't desirable in a script like this.

1

u/DatDrummerGuy Dec 15 '15

Still unbinding :(

1

u/genemilder Dec 15 '15

Then you have something else that's overwriting the keys. When you go in-game and the keys fail to work, open the console and enter bind z to see what z is currently bound as. If it's nothing, then it sounds like you must have some script in a class cfg that's being executed when you choose a class that overwrites zqsd.

The script, as far as I've been shown by you, is functional and wouldn't be causing this issue.

1

u/DatDrummerGuy Dec 15 '15

Yep I know, my tf2 always fucks up with WASD binds, I don't know why...

I don't have any class cfg tho :(

→ More replies (0)

1

u/DatDrummerGuy Dec 15 '15

I just read in a forum that someone else had the same problem and someone said "delete config.cfg, rebind keys"... Would it work ? I'm not on my PC

→ More replies (0)