Half-Life: Opposing Force

Half-Life: Opposing Force

Zeddy Apr 3, 2022 @ 7:01pm
Trying to get joystick movement to work [Solved]
I'm using gyro to aim, it's basically a mouse. You don't have to tell me to use a mouse, it's okay. I know it and I've heard.

Anyway, I'm trying to move around with left stick. When I activate joystick in the game, Shepard starts strafing the left and moving forward, so I assume the game is seeing a range 0.0-2.0 instead of -1.0-1.0. Joystick look is acting about the same. My joystick.cfg currently looks like this:

joyname "Flydigi Apex 2"
joyyawsensitivity 0
joypitchsensitivity 0
joyforwardsensitivity -0.5
joysidesensitivity -0.5
joyforwardthreshold 1.0
joysidethreshold 1.0
joystick 1
joyadvanced 1
joyadvaxisr 0
joyadvaxisu 0
joyadvaxisv 0
joyadvaxisx 3 // Strafe
joyadvaxisy 1 // Move forward / backwards
joyadvaxisz 0
-jlook
joyadvancedupdate

I wasn't able to find any commands relating to joystick offset. Is there anything else I could do? I'd hate to have to resort to WASD-binding in a game that should already support stick movement and also is going to have the amount of platforming Half-Life typically offers. I already tried enabling joywwhack1 and joywwhack2 to no avail.

Update: Figured it out, it's a bit stupid but it works. Here's the new config:
alias +joyoffset "+moveright;+back"
joyname "Flydigi Apex 2"
joyyawsensitivity 0
joypitchsensitivity 0
joyforwardsensitivity -1.0
joysidesensitivity 1.0
joyforwardthreshold 0.0
joysidethreshold 0.0
joystick 1
joyadvanced 1
joyadvaxisr 0
joyadvaxisu 0
joyadvaxisv 0
joyadvaxisx 3 // Strafe
joyadvaxisy 1 // Move forward / backwards
joyadvaxisz 0
-jlook
joyadvancedupdate
+joyoffset // Counteract oversensitivity (see alias at top)

Sensitivity is back up to 1.0 and treshold is back down to 0 for everything. The juicy bit is the +moveright and +back which enables a permanent +1 movement in both of those directions, counteracting the neutral -1 from the stick in the other direction. Thanks to this I can move around in an analogue fashion and stop when I let the stick go as expected.
Last edited by Zeddy; Apr 3, 2022 @ 8:05pm
Date Posted: Apr 3, 2022 @ 7:01pm
Posts: 0