[Feature suggestion] Weapon switching/sorting

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

[Feature suggestion] Weapon switching/sorting

Postby nifrek » Sat Aug 30, 2008 9:45 pm

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

Postby HarryButt » 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!
HarryButt
Keyboard killer
 
Posts: 560
Joined: Thu Jan 17, 2008 4:51 pm
Location: Hamburg, Germanistan

Postby divVerent » 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.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby nifrek » 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

Postby divVerent » 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.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby nifrek » 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

Postby mand1nga » 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 :)
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby divVerent » 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.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Fisume! » Wed Sep 10, 2008 12:18 pm

awesome!

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

Postby [-z-] » Thu Sep 11, 2008 2:59 am

Very nice.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida


Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron