Using the set command to create "piped" binds ?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Zur

surrealistic mad cow
Jul 8, 2002
11,708
8
38
49
I need the help with the following which is for UT but will probably work in part for UT2004. What it's supposed to do is help set up UT's settings and binds in the blink of the eye.

// Clan [smiley] Player configuration file - http://www.clansmiley.com/
//
// Edit this file to suit your own settings and apply them using the following command :
// exec player.cfg

name [smiley]Fearless

// Mouse settings
// Note : You will have to increase your usual MouseSensitivity if Axis multipliers are decreased

set Engine.Input MouseX Axis aMouseX Speed 1.0
set Engine.Input MouseY Axis aMouseY Speed 1.0
set Engine.PlayerPawn MouseSensitivity 6.00

// Movement binds

set input Ctrl Fire
set input LeftMouse AltFire
set input RightMouse Jump
set input NumPad0 Duck

// Weapon binds

set Engine.Pawn bNeverSwitchOnPickup True
set input NumPad2 switchweapon 5 | switchweapon 7
set input NumPad3 switchweapon 8 | switchweapon 9
set input MouseWheelDown PrevWeapon
set input MouseWheelUp NextWeapon


// HUD binds

set bUseTeamColor True
set input F12 ShowScores | onRelease ShowScores
set Engine.HUD Crosshair 7

// TDM Teamsays

set input PageDown teamsay -Weapon Needed- | speech 4 13 0 | Taunt wave
set input NumPad4 teamsay *Belt is taken* !
set input NumPad5 teamsay Here have weapon %W | throwweapon
set input NumPad6 teamsay *Amp is taken* !

The problem is that the "piped" binds don't seem to work for some reason. Execing this file in the console will cause a command such as "set input PageDown teamsay -Weapon Needed- | speech 4 13 0 | Taunt" to execute each part separately which is quite annoying.

If you know of a way around this problem, please say so as I wish this use this trick when I start playing UT2004 shortly (different binds for CTF/TDM/ONS).
 

SmuvMoney

New Member
Mar 24, 2004
46
0
0
51
Chicago, IL
In UT2003/UT2004, the piped weapon switch command is actually named "pipedswitchweapon". :D If you want to do a piped switch weapon via the set console command, it would look like this:

set input a pipedswitchweapon 10 | pipedswitchweapon 1
set input b pipedswitchweapon 6 | pipedswitchweapon 2

The first one would allow the 'a' key to switch between translocator and shield gun. The second one toggles between minigun and assault rifle. If you want them to be permanent, you can put them in your user.ini with or without an alias. I actually use both of these in my configuration so I can verify that they work.

Unfortunately, you can not use this for switchweapon switch toggles that are already bound by default, i.e., sniper/lightning, rocket/AVRL, flak cannon/grenade, and bio/mine layer (I forget the weapon #'s - sorry). They will actually break the command and you won't be able to toggle between weapons. I think you have to use a summon or other command if you want to bind flak cannon to a different key from grenade launcher for example or include them in a multiweapon piped weapon switch.

In the case of the translocator using the bind above, you have to bind SwitchWeapon 10 to a different key if you want to use the translocator cam. You won't be able to use the cam using the pipedweaponswitch above. Once you use the piped weapon switch, you can press your SwitchWeapon 10 key to use the cam correctly.

As for the non weapon switch binds, I will have to try some of the binds at home and see what happens. I hope this helps.

EDIT: As the poster below me pointed out, it pipedswitchweapon not pipedweaponswitch. (DOH!) I have modified the post to reflect that - SORRY! :eek:
 
Last edited:

m&ms

Melts in your mouth, not in your hand.
Jul 13, 2003
1,179
0
0
in a bag....duh
Visit site
well i'm not sure about "pipedweaponswitch", but i sure know "pipedswitchweapon" works. the thing is, fixing that wont solve your problem. i've tried something similar myself. it seems that its impossible to do set commands using the | in an exec or a keybind. the only way is to insert it manually into console. you might try making it an alias though, i never did try that.
 

Zur

surrealistic mad cow
Jul 8, 2002
11,708
8
38
49
Whoops, I deleted the message by mistake :p .

Could you test those set input commands ? I'd be curious to find out if they get clipped or not on UT2004 :) .

Yeah the reason why I can't test it myself is that I don't have much room left on the hard drive at the moment. I'm just getting round to backing stuff up on DVD.

So, as I understand it, there's a problem with the exec command when it comes to setting commands that contain the "|" character. That's a shame because the aim of this file was to avoid having to edit the ini file in the first place. I do something similar to configure servers.

P.S: Wonder if you can change aliases this way :p .
 

m&ms

Melts in your mouth, not in your hand.
Jul 13, 2003
1,179
0
0
in a bag....duh
Visit site
like i said, you might try making an alias like Aliases[36]=(Command="set input numpad2 PipedSwitchWeapon 5|PipedSwitchWeapon 7",Alias="pipeset1") and then call that from your exec file. might work, i've never tried it.

and i've never tried setting aliases with the set either, but it seems likely since they're located in the input section of the user.ini

EDIT: ok, after testing, i can now say that NO, you cannot set aliases from console. i can also say that NO, my idea of using an alias also does not work, so you're stuck without your piped binds i'm afraid
 
Last edited: