AceOfThumbs wrote:I've been away from Nexuiz for several months, so I haven't tried this with the current SVN. It works with 2.4.2 and it sounds like things haven't changed since that release. Anyway, check out the latest version of my weapon switching script at the link below:
http://www.nexuizninjaz.com/forum/showt ... 76#pid4776
Nice! thanks a bunch!

The script in the link above works with current SVN and the 2.4.2 release.
I post the (although bit cut) script here so people can find it in here as well:
- Code: Select all
// Nexuiz impulse numbers: 9=rocket, 8=hagar, 7=nex, 6=crylink, 5=electro, 4=mortar, 3=machinegun, 2=shotgun, 1=laser
set cl_weaponpriority0 "6 8 2 3 7 1 4 5 9"
set cl_weaponpriority1 "9 5 4 8 6 3 7 2 1"
set cl_weaponpriority2 "4 9 5 8 6 3 7 2 1"
set cl_weaponpriority3 "5 4 9 8 6 3 7 2 1"
set cl_weaponpriority4 "7 3 6 1 8 4 5 2 9"
// close - sorted by small blast radius then damage per sec
// for crylink use alt fire for more shots at once
alias aot_w1 "impulse 210; bestweapon $cl_weaponpriority0"
// medium - sorted by blast radius then damage per sec
set aot_wx "1"
alias aot_w2_1 "impulse 211; bestweapon $cl_weaponpriority1"
alias aot_w2_2 "impulse 212; bestweapon $cl_weaponpriority2"
alias aot_w2_3 "impulse 213; bestweapon $cl_weaponpriority3"
alias aot_w2 "aot_w2_1"
alias aot_w2_next "toggle aot_wx 1 2 3; aot_w2_next2"
alias aot_w2_next2 "alias aot_w2 "aot_w2_${aot_wx}"; aot_w2_next3"
alias aot_w2_next3 "aot_w2"
// far - sorted by speed then minimum spread then damage per sec
// for mg use alt fire for less spread, for crylink use primary
alias aot_w3 "impulse 214; bestweapon $cl_weaponpriority4"
// uncomment to make weapon menu the default wheel behavior
//bind mwheelup "weapnext"
//bind mwheeldown "weapprev"
// make bestweapon groups the default wheel behavior
in_bind 0 mwheelup "aot_weap_in"
in_bind 0 mwheeldown "aot_weap_out"
alias aot_weap_echo "echo $1"
alias aot_weap1 "aot_w1; aot_weap_echo close; alias aot_weap_in aot_weap2; alias aot_weap_out aot_weap1"
alias aot_weap2 "aot_w2; aot_weap_echo medium; alias aot_weap_in aot_weap3; alias aot_weap_out aot_weap1"
alias aot_weap3 "aot_w3; aot_weap_echo far; alias aot_weap_in aot_weap3; alias aot_weap_out aot_weap2"
aot_weap2