PDA

View Full Version : How to bind several weapon to the same key?



legacy-sfx
03-24-2004, 11:35 PM
It seems by default rocket launcher and AVRiL are sharing the same key, is there any way to bind other weapons to one key? Can't do it inside game settings....

legacy-vashavoc
03-24-2004, 11:38 PM
probably via some aliasing, however im curious about how this would be done as well.

Logy
03-24-2004, 11:40 PM
You can edit your User.ini file directly like so:

L=pipedswitchweapon 7 | pipedswitchweapon 8

This will make L switch between Flak and Rockets.
Just find the key you want and change it.

This behaves strangely with the built-in switching (like the Rockets/AVRIL thing) though, i.e. the example above will not switch to Flak if you've got an AVRIL and a RL, IIRC.

legacy-Mejwell
03-24-2004, 11:45 PM
Generally, more than two weapons to a key is a bad idea. Other than that, you can pretty much combine them however you wish. Useful for keeping vehicle destroying weapons (grenade launcher and AVRiL) and infantry killer (rocket launcher and flak cannon) together.

legacy-Farting Bob
03-24-2004, 11:46 PM
True, that's why I made sure I also made an extra button for weapon 8 only, the one besides 7/8. Fortunately the Lightning Gun and Sniperrifle are never together on one map, so I don't have a prob with that. Mine Layer is just on button 3 for me.

Logy
03-24-2004, 11:53 PM
I would like to see a better system for handling multiple weapons per key, one that is handled through the GUI, and that doesn't stick you with the default combinations against your will.

I have an idea about how this could be implemented. Maybe I'll get around to writing it out.

Nirvelli
03-24-2004, 11:55 PM
Originally posted by Logy
L=pipedswitchweapon 7 | pipedswitchweapon 8
What's the difference between 'switchweapon' and 'pipedswitchweapon' ?:weird: :confused:

legacy-Mejwell
03-24-2004, 11:57 PM
A "piped" switch allows the key to toggle between two different weapons. I'm not up to date on my UT2k4 key bind, but I think that if you used a normal weapons switch, it would switch first to weapon 7 then to weapon 8, every time.

legacy-счќ.black.jesus
03-25-2004, 12:03 AM
pipedswitchweapon only works with 2 weapons. if you want more than 2 weapons on a key, you can use macros.

say you wanted 3 weapons on to the R key.

make 3 text files. NAME them in sequence... like 1.txt, 2.txt, 3.txt.

make the first text file say something like this:

switchweapon 1 (whatever number of the weapon you want)
set input r exec 2.txt

then the next text file would have:

switchweapon 2
set input r exec 3.txt

and the final text file in the sequence has to go back to the first... so it would look like this:

switchweapon 3
set input r exec 1.txt


put those text files in your system folder and start up the game.

in the game open the console and type:

set input r exec 1.txt

and there you go.


you can also make an alias... but i don't know how to do that... i'm sure somebody on here does.

but as has been said... generally more than 2 weapons on a key is not a great idea. pipedswitchweapon is what i use and it works great. for instance, scrolling my mouse wheel down cycles between shock and lightning... scrolling it up cycles between flak and mini.

legacy-mwalt2
03-25-2004, 12:30 AM
Originally posted by Farting Bob
Fortunately the Lightning Gun and Sniperrifle are never together on one map, so I don't have a prob with that.
They are in CTF-January and I think a few others. I had to bind a couple more keys to get everything to work.

legacy-sfx
03-25-2004, 12:41 AM
Originally posted by Logy
You can edit your User.ini file directly like so:

L=pipedswitchweapon 7 | pipedswitchweapon 8

This will make L switch between Flak and Rockets.
Just find the key you want and change it.

This behaves strangely with the built-in switching (like the Rockets/AVRIL thing) though, i.e. the example above will not switch to Flak if you've got an AVRIL and a RL, IIRC.

How to avoid that? I can't understand why the hell Flak Cannon is built in switching to grenade launcher, which I hate to use....

legacy-RumAndCoke
03-25-2004, 12:42 AM
I would like to see a better system for handling multiple weapons per key, one that is handled through the GUI, and that doesn't stick you with the default combinations against your will.

this allows you to bind diffrent combos of weapons through the gui. it was made for the demo but works with full version and has many handy binds.

to get around te way they stick you with certain combos you have to do it in the user.ini file though

ie. r=getweapon xweapons.flakcannon

I also wish it was handled better because I dont like having grenade launcher bound with the flak, you shouldnt have to edit the .ini file to fix this.

here is the link to the gamespot bind thing

http://dlx.gamespot.com/pc/ut2004/moreinfo_6090729.html

legacy-RumAndCoke
03-25-2004, 12:47 AM
This behaves strangely with the built-in switching (like the Rockets/AVRIL thing) though, i.e. the example above will not switch to Flak if you've got an AVRIL and a RL, IIRC.

you can get around that, this is what I did.

Q=getweapon XWeapons.FlakCannon | PipedSwitchWeapon 8

you can also do


Q=getweapon XWeapons.rocketlauncher | PipedSwitchWeapon 7

I like the flak first so I did that but it works either way.

the avril and grenade are

1=getweapon Onslaught.ONSGrenadeLauncher
2=getweapon Onslaught.ONSAVRiL

legacy-sfx
03-25-2004, 01:32 AM
Originally posted by RumAndCoke
you can get around that, this is what I did.

Q=getweapon XWeapons.FlakCannon | PipedSwitchWeapon 8

you can also do


Q=getweapon XWeapons.rocketlauncher | PipedSwitchWeapon 7

I like the flak first so I did that but it works either way.

the avril and grenade are

1=getweapon Onslaught.ONSGrenadeLauncher
2=getweapon Onslaught.ONSAVRiL

Ok this works great, except when you get a Flak but don't have a rocket launcher, then press Q will again switch to the default grenade launcher, how to make the annoying grenade launcher disappear.... maybe it's just I am asking for too much :D

legacy-NeoBorn
03-25-2004, 02:56 AM
I stand corrected it does work but not the way you want it just switches to the third weapon once one of them runs out of ammo.

Wrong sorry. I have three weapons on one key using the "pipedswitchweapon 1 | pipedswitchweapon 2 | pipedswitchweapon 3" technique. IT does work I do it.

Originally posted by счќ.black.jesus
pipedswitchweapon only works with 2 weapons. if you want more than 2 weapons on a key, you can use macros.