Best Weapon switching script

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

Postby Oat » Tue Jun 24, 2008 8:31 pm

it's already there in my autoexec.cfg
Oat
Advanced member
 
Posts: 74
Joined: Mon May 12, 2008 3:40 pm

Postby mand1nga » Wed Jun 25, 2008 1:26 am

Well I have no time for adapting and testing the script today, so this is post is for Oat

It seems to me like a weird server config problem .. so:

- Do you saw the other players using the laser while you cant use it?
- Do you have the same problem using any server?
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby Oat » Wed Jun 25, 2008 11:10 am

While playing on galts and other servers, the laser works just fine.

When i play on my own to test things out (binds etc)

The laser is simply not available.. I don't know how this happened but it happened after i tried out this script...

:S
Oat
Advanced member
 
Posts: 74
Joined: Mon May 12, 2008 3:40 pm

Postby AceOfThumbs » Thu Jun 26, 2008 8:48 am

If you are using this script you will want to bind a key or mouse button just for the laser. This is a good idea anyway, since you will want to use the laser often for laser jumps. Add this line to the end of the script:
Code: Select all
bind MOUSE5 "impulse 1"


I use mouse button 5 for the laser, but you can change this to whichever mouse button or keyboard key you prefer.
So much to do, so little time to do it
AceOfThumbs
Alien
 
Posts: 158
Joined: Tue Sep 04, 2007 11:12 pm

Postby AceOfThumbs » Thu Jun 26, 2008 9:05 am

Deaf-OAT wrote:While playing on galts and other servers, the laser works just fine. When i play on my own to test things out (binds etc) The laser is simply not available.. I don't know how this happened but it happened after i tried out this script... :S

Sorry, I posted above before reading through the other replies. If the laser is working for you on Galt's Gulch, it should be working in matches you create on your own computer (your own computer is the server in that case). Make sure you are using Nexuiz 2.4 or higher. The script uses commands that weren't available in Nexuiz 2.3.

Are you pressing the 1 key (number one) to switch to the laser? Or are you trying the get the laser using the mouse wheel? If you are using the mouse wheel, be aware that the long range setting is the only one that is likely to give you the laser and then only if you don't have the nex, machine gun or crylink since they are earlier in the list than the laser.

I hope this helps.
So much to do, so little time to do it
AceOfThumbs
Alien
 
Posts: 158
Joined: Tue Sep 04, 2007 11:12 pm

Postby Oat » Mon Jun 30, 2008 7:09 pm

Sorry for the long reply.

I figured it out by wiping the config.cfg clean and and it worked :)

Thanks anyway.
Oat
Advanced member
 
Posts: 74
Joined: Mon May 12, 2008 3:40 pm

Postby paperclips » Tue Feb 17, 2009 4:21 pm

Oh hai.

How do i get this script to work in the svn? (works on 2.4x servers)

kthx

Code: Select all
// Nexuiz impulse numbers: 9=rocket, 8=hagar, 7=nex, 6=crylink, 5=electro, 4=mortar, 3=machinegun, 2=shotgun, 1=laser

// fix for bestweapon command on 2.3 or earlier clients
alias aot_bw "register_bestweapon clear; register_bestweapon 1 1 4096 1 9 0; register_bestweapon 2 2 1 2 6 1; register_bestweapon 3 3 2 3 7 1; register_bestweapon 4 4 4 4 8 2; register_bestweapon 5 5 8 5 9 2; register_bestweapon 6 6 16 6 9 1; register_bestweapon 7 7 32 7 9 5; register_bestweapon 8 8 64 8 8 1; register_bestweapon 9 9 128 9 8 3"

// remove fix since most servers are 2.4+ now
// if you are playing on a 2.3 server, delete the line below
alias aot_bw ""

// close - sorted by small blast radius then damage per sec
// for crylink use alt fire for more shots at once
alias aot_w1  "aot_bw; bestweapon 6 8 2 3 7 1 4 5 9; echo close range"

// medium - sorted by blast radius then damage per sec
alias aot_w2 "aot_bw; bestweapon 9 5 4 8 6 3 7 2 1; echo medium range"

// 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  "aot_bw; bestweapon 7 3 6 1 8 4 5 2 9; echo long range"

// make bestweapon groups the default wheel behavior
in_bind 0 mwheelup "aot_weap_in"
in_bind 0 mwheeldown "aot_weap_out"

// uncomment the lines below to
// restore Nexuiz's normal weapon menu
//in_bind 0 mwheelup "weapnext"
//in_bind 0 mwheeldown "weapprev"

alias aot_weap1 "aot_w1; alias aot_weap_in aot_weap2; alias aot_weap_out aot_weap1"
alias aot_weap2 "aot_w2; alias aot_weap_in aot_weap3; alias aot_weap_out aot_weap1"
alias aot_weap3 "aot_w3; alias aot_weap_in aot_weap3; alias aot_weap_out aot_weap2"

// start with medium range weapon
aot_weap2
paperclips
Alien trapper
 
Posts: 346
Joined: Mon Jan 12, 2009 10:27 am
Location: internets

Postby [-z-] » Tue Feb 17, 2009 4:30 pm

bestweapon and cycleweapon have be deprecated and have been replaced with cl_weaponpriority. and explanation can be found here.

I'm not sure if AoT updated this script for svn
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby esteel » Tue Feb 17, 2009 4:41 pm

take one from those:

// impulse 200 for prev gun according to next list, 210 for best gun from next list, 220 for next gun from next list
seta cl_weaponpriority0 "14 9 8 4" // "explosives (RL Hagar Mortar)"
// impulse 201 for prev gun according to next list, 211 for best gun from next list, 221 for next gun from next list
seta cl_weaponpriority1 "13 7 6 5 1" // "energy (Nex Crylink Electro Laser)"
// impulse 202 for prev gun according to next list, 212 for best gun from next list, 222 for next gun from next list
seta cl_weaponpriority2 "15 11 7 3" // "hitscan exact (Nex MG)"
// impulse 203 for prev gun according to next list, 213 for best gun from next list, 223 for next gun from next list
seta cl_weaponpriority3 "15 11 7 3 2" // "hitscan all (Nex MG Shotgun)"
// impulse 204 for prev gun according to next list, 214 for best gun from next list, 224 for next gun from next list
seta cl_weaponpriority4 "13 8 6 5 2" // "spam (Hagar Crylink Electro Shotgun)"
// impulse 205 for prev gun according to next list, 215 for best gun from next list, 225 for next gun from next list
seta cl_weaponpriority5 "1 12 10" // "for moving (Laser Hook Port-O-Launch)"
// impulse 206 for prev gun according to next list, 216 for best gun from next list, 226 for next gun from next list
seta cl_weaponpriority6 ""
// impulse 207 for prev gun according to next list, 217 for best gun from next list, 227 for next gun from next list
seta cl_weaponpriority7 ""
// impulse 208 for prev gun according to next list, 218 for best gun from next list, 228 for next gun from next list
seta cl_weaponpriority8 ""
// impulse 209 for prev gun according to next list, 219 for best gun from next list, 229 for next gun from next list
seta cl_weaponpriority9 ""
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby AceOfThumbs » Thu Feb 19, 2009 7:55 pm

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
So much to do, so little time to do it
AceOfThumbs
Alien
 
Posts: 158
Joined: Tue Sep 04, 2007 11:12 pm

PreviousNext

Return to Nexuiz - Gameplay

Who is online

Users browsing this forum: No registered users and 1 guest