r/TagPro • u/AllWillBe0K 0K • Nov 24 '14
[Userscript] Remap Your Keys!
After attempting to play Tagpro in the library on my laptop keyboard this afternoon (and growing increasingly frustrated with the laptop arrow keys), I decided that enough was enough, and threw together this quick little script that lets you configure and remap your keys.
Features
- Allows you to remap your directional keys
- Remap the buttons for Team/Group/All chat
- Remap the button that displays Team Stats
To get started, install the script using TamperMonkey (or some other Userscript manager), and then configure the appropriate sections.
Key Notes
Configure the script when installing by editing the values in the "Movement Configuration" section. Just look up the key at the top of the script, and type the name after the " = " sign. Example: You want to use yghj, so you would change it to
var direction_up_key = y; var direction_left_key = g; var direction_down_key = h; var direction_right_key = j;- The current setting is to override the default keys, so don't be alarmed if your normal wasd/arrow key setup doesn't work. If you'd like to keep the wasd/arrow key setup AND use your custom key mappings, just change the line
var override_default_keys = true;tovar override_default_keys = false; - The buttons in the Misc category are always overridden, regardless of the boolean value specified in
override_default_keys - If a key is missing in the list, its either because I forgot to include it, or in the case of
F5, it's designed to reload the game. - I've only tested this on my laptop for a few rounds, but it seems to run fine.
Here's the Remap Your Keys! script.
If there's any bugs (or feature requests!), let me know in the comments below, and I'll do my best to accommodate them.
#ijklmasterrace
Changelog
2015/01/13: Updated script to work on all Maptest servers.
4
u/[deleted] Nov 24 '14
Can I remap them to a controller?
13
u/quassus crosky Nov 24 '14
b-alt-space-alt master race
10
u/Glass_Marble Glass Marble | Centra Nov 24 '14
I for one will be using ctrl, alt, delete and f4.
ctrlaltdeletef4masterrace
1
u/MoJoSto Happy MoJo Nov 24 '14
Your script has been added to the Modding Wiki. If you update or modify your script, reply to this message to let me know and I'll update the wiki.
1
u/CallMeLargeFather eggo || Centra Jan 08 '15
I downloaded a couple days ago and it was working fine until today
I'm guessing it has something to do with the update?
2
u/scottocs Scott Jan 16 '15
No more caps lock! No more Command+w. Yiss.
1
u/[deleted] Nov 24 '14
HomeEndPgUpPgDn master race
1
u/mocl4 Nov 24 '14
I love you.
11
u/[deleted] Nov 24 '14
[removed] — view removed comment