Since bestweapon isn't reliable, I wrote a script that allows a similar function. This is not as good as the bestweapon feature but it works. You can group weapons and select from that group with a single key. I have a bunch of instructions, then the script is at the bottom.
WHY
There are 9 weapons, so it is difficult to quickly select the right weapon with the mouse wheel. Some people bind weapons to keys, but to access all of the weapons would require....anyone? Yes, it would require 9 keys. That just seems too hard to handle in the midst of battle. Hats off to those that can pull that off.
HOW IT WORKS
Press the middle mouse button to select the machine gun. Press it again to select the nex. Press f to select the hagar. Again for the electro and again for the mortor. This binds 5 weapons to just 2 keys. Then I have some regular binds for the shotgun, rocket launcher and laser.
CUSTOMIZE IT
Please change the key binds to whatever works best for you. My mouse outputs key presses, so 4 means middle button. Most of you would use MOUSE3, MOUSE4 and MOUSE5 for your extra mouse buttons. Make your own groupings or add or delete from the groups I set up. If you look at the alias commands carefully you can see how they cycle.
USAGE NOTES
I use this with the auto-select weapon feature from the options screen. I think it does a pretty good job of picking the right weapon. If I don't want the weapon Nexuiz selects I can quickly switch to the one I do want.
When you start a game, the explosive weapon selection cycles through the group from 1 to 2 to 3 . But be aware that if you have the hagar, then switch to the shotgun and switch to explosive weapons again, it is cycling to the next explosive weapon, the electro. If you want the hagar press 2 more times.
You need to be somewhat aware of what weapons you have, so you aren't wasting time trying to select a weapon you don't have. If you don't have a weapon or you don't have ammo for a weapon, it won't select it. That means you'll still have the same weapon as before the key press (a message at the top of the screen tells you that the weapon couldn't be selected). Press again to get the next weapon in the group. With a little practice this becomes automatic.
I didn't put the crylink in at all. I can get it via auto-select if I have only the machine gun and shotgun and that works for me. I used to have it grouped with the shotgun, but decided to keep the shotgun by itself for maximum speed. I use the shotgun for when someone is right beside me, which means there is no time for an extra button press. Feel free to add the crylink in somewhere if you want it.
THE SCRIPT
- Code: Select all
// AceOfThumbs weapon grouping script
// switch weapons based on groupings by type
// my mouse outputs key presses: 3=left side btn, 4=middle btn, 5=right side btn
// Nexuiz impulse numbers: 9=rocket, 8=hagar, 7=nex, 6=crylink, 5=electro, 4=mortar, 3=machinegun, 2=shotgun, 1=laser
// this sets up a toggle for sniper weapons
// mg and nex will alternate each time this is called
alias "aot_ws1" "alias aot_nextws aot_ws2 ; impulse 3"
alias "aot_ws2" "alias aot_nextws aot_ws1 ; impulse 7"
alias "aot_nextws" "aot_ws1"
// this sets up a toggle for explosive weapons
// hagar, electro, mortor will alternate each time this is called
alias "aot_wp1" "alias aot_nextwp aot_wp2 ; impulse 8"
alias "aot_wp2" "alias aot_nextwp aot_wp3 ; impulse 5"
alias "aot_wp3" "alias aot_nextwp aot_wp1 ; impulse 4"
alias "aot_nextwp" "aot_wp1"
// key bindings
// enemy close-shotgun and wide angle mode
bind "3" "impulse 2 "
// rocket
bind "r" "impulse 9"
//best sniper weapon
bind "4" "aot_nextws"
// best explosive weapon
bind "f" "aot_nextwp"
// laser
bind "5" "impulse 1"