[Feature suggestion] Weapon switching/sorting

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators


  • Since it doesn't seem possible to do this using regular scripting, I hear the only way to do this would be with using CSQC. Either that or adding the option directly in nexuiz (or the engine?) to sort weapons in any order you want when using weapprev/weapnext binds.

    Yes I know it's better in many ways to bind each weapon impulses to a different keys but there are many players that still prefer to use weapprev/next binds for many reasons, and it's not always bound to the scrollwheel. I didn't make this post to argue about why/which way is better.

    This problem was addressed when cycleweapon and bestweapon commands were added in nexuiz. However, unlike with using weapnext/weapprev, when pressing quickly a bind 2 times in order to skip the weapon in-between and go directly to the next, it doesn't work.

    Example: You have mortar, nex and RL. You're currently using the RL and want to switch to mortar. If you press the weapprev bind 2 times quickly, it will go directly to mortar and skip nex. If you try to do the same thing using cycleweapon, it will switch to nex before you can switch to mortar.

    It is possible to do a script that works just like cycleweapon (to "sort" weapons in a different order), however there is no way for it to know which weapons you have in your possession. So if you only have MG/RL and you want to switch from MG to RL, you'll have to press the key many many times if don't have any other weapons between them.
    nifrek
    Alien
     
    Posts: 208
    Joined: Fri Sep 22, 2006 6:43 am

Sun Aug 31, 2008 2:29 am

  • That'd be the weapon priority menu I was requesting a while ago.
    Butt wants.
    I'M BATMAN!
    User avatar
    HarryButt
    Keyboard killer
     
    Posts: 560
    Joined: Thu Jan 17, 2008 4:51 pm
    Location: Hamburg, Germanistan

Sun Aug 31, 2008 2:58 pm

  • You can currently use the cycleweapon command for that - but it will once get replaced by something that works better when used repeatedly.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Mon Sep 01, 2008 9:51 am

  • divVerent wrote:but it will once get replaced by something that works better when used repeatedly.


    I love you.

    Can we expect this in next release or is it planned for later?
    nifrek
    Alien
     
    Posts: 208
    Joined: Fri Sep 22, 2006 6:43 am

Mon Sep 01, 2008 11:48 am

  • No idea. Also depends on when the next release is, which is not known yet.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Sep 09, 2008 4:53 pm

  • I just saw that a new feature was added to svn addressing this issue, thanks so much =)

    I just tested it and it seems to work perfectly. It's a shame I can't use it during the tournament hehe but this is very good news for me.
    nifrek
    Alien
     
    Posts: 208
    Joined: Fri Sep 22, 2006 6:43 am

Tue Sep 09, 2008 5:14 pm

  • nifrek wrote:I just saw that a new feature was added to svn addressing this issue, thanks so much =)

    I just tested it and it seems to work perfectly. It's a shame I can't use it during the tournament hehe but this is very good news for me.


    Wow ... although I feel pretty comfortable with my weapon switching script, cant wait for testing it :)
    User avatar
    mand1nga
    Alien trapper
     
    Posts: 321
    Joined: Mon May 12, 2008 12:19 am

Wed Sep 10, 2008 7:54 am

  • Obligatory image link:

    Image
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Sep 10, 2008 12:18 pm

  • awesome!

    ty divVerent
    User avatar
    Fisume!
    Alien trapper
     
    Posts: 467
    Joined: Sun Jan 27, 2008 8:55 am
    Location: Saarbruecken, Germany

Thu Sep 11, 2008 2:59 am



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest