For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

Toggle weapon hand from right to left and vice versa

Unreal Unreal and more Unreal
Post Reply
m.rup
Posts: 4
Joined: Wed Mar 06, 2024 9:34 pm

Toggle weapon hand from right to left and vice versa

Post by m.rup »

Dear community,
I'm trying to to create a key bind (e.g. P) which allows to toggle from right weapon hand to left weapon hand and vice versa.
I have the following entries in system\user.ini:

Aliases[25]=(Alias="LeftHand",Command="SetHand Left | set input P RightHand")
Aliases[26]=(Alias="RightHand",Command="SetHand Right | set input P LeftHand")
.
.
P=LeftHand

Unfortunately, this doesn't work, when I press the "P" key, nothing is happening.
When I do this:

Aliases[25]=(Alias="LeftHand",Command="SetHand Left")
.
.
P=LeftHand

then it works, so it seems that the problem is in the piping part of the key binding.
I know that I managed this in the days back then, but I can't remember how it was done.
Maybe some of the experts here have an idea?
User avatar
Leo T_C_K
OldUnreal Member
Posts: 3745
Joined: Sat Aug 27, 2005 6:24 pm

Re: Toggle weapon hand from right to left and vice versa

Post by Leo T_C_K »

It might be easier to create a text file and use the "exec filename.txt" function instead.
m.rup
Posts: 4
Joined: Wed Mar 06, 2024 9:34 pm

Re: Toggle weapon hand from right to left and vice versa

Post by m.rup »

Hey, thanks for the reply.
I have to admit that i'm not familiar with this topic.
What has to be in the text file?
Is there some special format to be considered?
Where has the file to be situated?
User avatar
Leo T_C_K
OldUnreal Member
Posts: 3745
Joined: Sat Aug 27, 2005 6:24 pm

Re: Toggle weapon hand from right to left and vice versa

Post by Leo T_C_K »

m.rup wrote: Sat Apr 13, 2024 7:21 pm Hey, thanks for the reply.
I have to admit that i'm not familiar with this topic.
What has to be in the text file?
Is there some special format to be considered?
Where has the file to be situated?
Just the plain commands and just plain text preferably. In the system dir.
That way you can execute multiple commands at once or even do tricks like cycling through multiple files. Useful for mass item spawning etc. this will work too
m.rup
Posts: 4
Joined: Wed Mar 06, 2024 9:34 pm

Re: Toggle weapon hand from right to left and vice versa

Post by m.rup »

Great, that drove me in the right direction!
I made two txt files

a. Z_LeftHand.txt:

SetHand Left
set input P Exec Z_RightHand.txt

b. Z_RightHand.txt:

SetHand Right
set input P Exec Z_LeftHand.txt

and initialized P in the user.ini

P=Exec Z_LeftHand.txt

and it worked!

Many, many thanks for your kind help!

Just out of interest, maybe somebody knows the reason of the failure of my first try?
And another question: Does somwhere in the forum exist some kind of "Sugestions/Requests" thread?
User avatar
Kajgue
Global Moderator
Posts: 757
Joined: Mon Oct 17, 2005 2:36 pm

Re: Toggle weapon hand from right to left and vice versa

Post by Kajgue »

There's also a co-op mod which capitalizes on that kind of gameplay if you're trying to shoot around corners by switching weapon hands -





:)
AKA - ( T : S : B ) Ice-Lizard
Image
m.rup
Posts: 4
Joined: Wed Mar 06, 2024 9:34 pm

Re: Toggle weapon hand from right to left and vice versa

Post by m.rup »

Hi Kajgue,
wow, very impressive. I have to admit that the speed of my gaming is maybe 1/10 of what was shown in the videos ::) .
Nevertheless, sometimes there are situations when it's more advantageous to peek around a corner leftward and in this cases it's more practical for me to have the weapon in the left hand.
Post Reply

Return to “Unreal General Forum”