Nexuiz Ninjaz - Practicing the Ninja Art of Nexuiz

Full Version: [Q] How to toggle between laser and current weapon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I'm new around here.

How to bind the key E to toggle between laser and the current weapon?

Thanks
Do not use "E" since that is default for grappling hook.

Use "R" to bind a weapon, but I am not sure you can bind 2 weapons to the same key though... Most likely not
Actually, it's possible and quite simple.
You need to have these two lines in your config file:

Code:
set cl_weaponpriority6 "1 <IMPULSE#>"
bind <KEY> "impulse 226"

<IMPULSE#> needs to be replaced with the impulse number of the weapon you want to toggle between (laser is 1, shotgun is 2, etc [they correspond with the numbers on your keyboard]).
<KEY> needs to be replaced with the key you want to bind the toggle onto (try not to overwrite binds that already exist).

--Moo
What do you mean by "<IMPULSE#>"? I want to toggle between laser and whichever weapon was previously active, not a predefined, constant one.
I am not sure if that's possible........ If you figure out, however, do tell!

Sorry I couldn't figure this out....
I'm sorry about the late reply, I didn't want to leave this without a semi-resolution, at minimum.

Isn't a switch to the previous weapon the Laser's "secondary fire"?

You should be able to bind the laser to "E" (I recommend "R", however.), and just right-click to return to the previous weapon. That is, unless something has changed since my computer bricked a bit over 2 months ago.
Reference URL's