Half-Life: Alyx

Half-Life: Alyx

37 个评价
Tweaking the gravity gloves for sideways motion
由 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
   
奖励
收藏
已收藏
取消收藏
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 条留言
andersenman 2021 年 3 月 7 日 上午 7:33 
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 2021 年 1 月 23 日 上午 1:11 
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  [作者] 2021 年 1 月 22 日 下午 5:20 
@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 2021 年 1 月 21 日 下午 2:52 
why do you want to keep quotes? Do you mean file should be called "free_pull.cfg"? With quotes?
FireKeep 2020 年 7 月 26 日 下午 1:44 
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 2020 年 4 月 1 日 上午 2:32 
not sure thats how gravity works
Sparkette  [作者] 2020 年 3 月 31 日 下午 9:08 
@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 2020 年 3 月 31 日 下午 7:12 
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 2020 年 3 月 30 日 下午 6:09 
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 2020 年 3 月 30 日 上午 11:20 
When someone throws a grenade and you need to get it away. That would be very useful.