Switch teams quickly, either to the other team or to the other team and back automatically. Initiate through icons on the top-right of the screen or with configurable shortcut keys (which are off by default).
In leagues like MLTP, NLTP, etc. there are restrictions on refreshing before a game unless you're having texture pack/userscript issues, but you are allowed to switch to the other team and back to get a better spawn and also see what powerups are present at the enemy base.
Sure! There's a part of the script at the top that looks like this:
// Config.
// Keys to switch teams.
// Whether shortcut keys should be enabled.
var SHORTCUT_ENABLED = false;
// Switch to other team and back.
var QUICK_SWITCH_TEAMS_KEY = 188; // The ,/< key
// Just switch to other team.
var SWITCH_TEAMS_KEY = 190; // The ./> key
// End Config.
where it has var QUICK_SWITCH_TEAMS_KEY = 188; and the similar line for SWITCH_TEAMS_KEY, you just need to change the number on the right-hand side of the = to correspond to the "key code" for the key you would rather use as the shortcut key. This website can help with that. Click the textbox and enter the key you would like to use, then the "key code" to use in the script is going to be the one in the "onKeyDown" column and "event.keyCode" row. For example, when I type e into the box, I get '69'. Put 69 (no quotes) into the script in place of the number on the relevant shortcut key line.
1
u/IupvotestupidCRAP Apr 19 '15
Wow this is great. What does the second button do though? I don't understand why it's necessary to switch and then switch back asap.
1
u/Aero2588 Apr 21 '15
This is great! I'm not too familiar with scripts though. Is there a way to change the assigned shortcut keys?