Half-Life: Alyx

Half-Life: Alyx

37 ratings
Tweaking the gravity gloves for sideways motion
By Sparkette
The gravity gloves are awesome, but one thing that always bugged me is that a clear movement to the side still brought the object right to my hand. It would be cool to be able to toss things to the side as well as bringing them to my hand. Luckily, a bunch of the parameters for the gloves are exposed as console variables, which can be tweaked to your liking. Here's how you can enable sideways movement.
3
   
Award
Favorite
Favorited
Unfavorite
Disclaimer
I have not finished the game yet, so it's always possible this may break something in a part I have yet to play, or a part that I already completed prior to doing this. I'll update this guide with more information when I know for sure.

EDIT: I have beaten the game, and ran into no issues. In addition, my brother has been playing on my computer with this same tweak enabled, and he hasn't run into any issues either. I don't remember where exactly I was in the game when I started playing with this tweak, but I feel like it was somewhere in chapter 4, which he's already past.
Basic Instructions
First, open the HL:A installation directory. To do this, right-click the game in your Steam library, go to "Manage" and click "Browse local files". A folder window will open.

Open the "game" folder, then "hlvr", then "cfg". Do not open any other folders unless you're okay with knowing in advance (or you already know) the names of all the maps in the game.

Open Notepad, and paste in the following text:

vr_hand_pull_acceleration_max 100 vr_hand_pull_angle_far 45 vr_hand_pull_angle_near 90 vr_hand_pull_angle_far_distance 300 vr_hand_pull_angle_near_distance 100

Save the document in that "cfg" folder, and call it "free_pull.cfg". Make sure you DO include the quotes when typing in the name.

Right-click the game in Steam once more, and click Properties. Click "Set Launch Options...", and type:
+exec free_pull.cfg -novid
(The "-novid" part is optional and has nothing to do with the gravity gloves; it will make the game skip the Valve logo. Leave it off if you don't want this.)

Click OK, launch the game, and try it out. If you jerk your hand to the side instead of toward you, it should pull things sideways instead. This will have less of an effect with objects that are farther away. I think this is a pretty nice quality-of-life change. If you don't like it and want to go back to the default settings, just remove the "+exec free_pull.cfg" from the launch options.
Tweaking the parameters
Here's what the values in the file mean, in case you want to adjust it more to your liking:

  • vr_hand_pull_acceleration_max: When you grab an object, it applies a force to it to make it move to your hand. The higher this value, the stronger this force is. The default is 500; I've found setting it to 100 works well.
  • vr_hand_pull_angle_far: 0-90, in degrees. You may have noticed it already applied a bit of force in the direction you moved your hand. This sets the maximum angle at which this can happen for distant objects. 0 means it will ignore the direction and always act as if you pulled it toward you; 90 means it can go up to 90 degrees to the side. I have it set to 45, as for farther objects it's more likely I want to move it toward me.
  • vr_hand_pull_angle_near: Same as above, except this is for nearby objects. I have this set to 90, of course.
  • vr_hand_pull_angle_far_distance: The distance at which objects should be considered far away for purposes of the above variables.
  • vr_hand_pull_angle_near_distance: Similar to above, the distance for nearby objects. I'm pretty sure that objects between this and the far distance have the angle set to a value proportionally in between.

If you want to experiment, add the following to the launch options:
-console -vconsole
Then press ~ on your keyboard while in-game. You can type in the names of these parameters and their values, exactly the same as in the lines in the config file, and see the results without having to restart the game. You can also type:
vr_hand_pull_acceleration_debug 1
in the console, and it will show you visually how it calculates the trajectory.

Enjoy!
13 Comments
andersenman 7 Mar, 2021 @ 7:33am 
All file extensions shown should be among the first things to enable when coming into posession of a Windows installation. There is exactly zero sane reason not to do so.
Dzięcioł Infernum 23 Jan, 2021 @ 1:11am 
flarn2006, oh, maybe it makes sense now. I always configure Windows to show all file extensions, so my filenames are full and it never needs quotes to work. But thanks for explaining.
Sparkette  [author] 22 Jan, 2021 @ 5:20pm 
@Lesnoy: Windows will automatically remove the quotes from the actual filename. But yes, type it as if you did want it to be called that. You need to type the quotes because if you don't, it'll add a ".txt" extension to the end, unless you have Windows configured to show file extensions. (If you do, you don't need to type the quotes, but you can.)
Dzięcioł Infernum 21 Jan, 2021 @ 2:52pm 
why do you want to keep quotes? Do you mean file should be called "free_pull.cfg"? With quotes?
FireKeep 26 Jul, 2020 @ 1:44pm 
Thanks! I've always wanted to do this. I think it'll also help in making puzzles for custom maps. Have an award!
HBL.izzi 1 Apr, 2020 @ 2:32am 
not sure thats how gravity works
Sparkette  [author] 31 Mar, 2020 @ 9:08pm 
@Wick: I wasn't sure. Having beaten the game, I now know they aren't spoilers. I'll update the post; thanks for reminding me.
Trish_VR 31 Mar, 2020 @ 7:12pm 
What spoilers are there in the autocomplete popup? Make sure to put [spoiler] before your message and [/spoiler] after it, so that it appears like this .
sev 30 Mar, 2020 @ 6:09pm 
why is it weird? I've wanted the same thing. there are some people out there that do the things they want to do, you know.
rival 30 Mar, 2020 @ 11:20am 
When someone throws a grenade and you need to get it away. That would be very useful.