Key Reset Script

If you use different key binds across classes, you will need a script like this to unbind shared keys.

exec undo360controller
unbind MOUSE1
unbind MOUSE2
unbind MOUSE3
unbind MOUSE4
unbind MOUSE5
unbind [
unbind ]
unbind \
unbind "ENTER"
bind "MWHEELUP" "invprev"
bind "MWHEELDOWN" "invnext"
bind MOUSE1 +attack
//bind MOUSE1 spec_next
bind MOUSE2 +attack2
//bind MOUSE2 spec_prev
echo "Mouse buttons reset!"
hud_fastswitch 1
bind "w" "+forward"
bind "a" "+moveleft"
bind "s" "+back"
bind "d" "+moveright"
cl_drawhud 1
r_drawviewmodel 1

Save this script as reset.cfg in the folder with the rest of your class scripts.

To use it, type exec reset.cfg at the top of every class script, e.g. scout.cfg or engineer.cfg

Basically, this script unbinds keys that are common between classes. This prevents you from rocket jumping as a scout and sentry jumping as a spy.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • clovervidia
    Availability
    Offline
    Points Level
    Drudge
    1,372 points
    Account Age Level
    Graduate
    3 years old
    Clearance Level
    Member
    1 year ago:

    Posted by Pacifist42 just woundering, is there a command that resets all keys to default? that would make the script much simpler

    Indeed there is.

    exec config_default
    

    That will reset every key to their initial binds.

    The purpose of this script is to reset common keys between classes, for example, I change around the mouse keys depending on the class, and this script resets them to what they were originally before switching to the class.

    But I digress. If you just want to reset all your keys to the TF2 defaults,

    exec config_default
    

    is the way to go.

    User Title
    λ³
  • Pacifist42
    Availability
    Offline
    Points Level
    Beggar
    286 points
    Account Age Level
    Apprentice
    1 year old
    Clearance Level
    Member
    1 year ago:

    just woundering, is there a command that resets all keys to default? that would make the script much simpler

    Bananite

Credits

Key Authors
clovervidia
Author

Submitter

clovervidia
Availability
Offline
Points Level
Drudge
1,372 points
Account Age Level
Graduate
3 years old
Clearance Level
Member

clovervidia
(Creator/Co-creator)

Rating

10.00/10
Based off 1 rating(s)

Stats

Post Count
2
ViewCount
6,507
Date Added
3 years ago
Date Modified
3 years ago

License

N/A

Share

Code to use:

More embeddable images

Bookmark and Share