Half-Life: Alyx

Half-Life: Alyx

265 ratings
Auto Pickup
2
6
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
24.307 KB
Jul 30, 2020 @ 1:00am
Nov 28, 2022 @ 10:00am
19 Change Notes ( view )

Subscribe to download
Auto Pickup

In 1 collection by Sam
Quality of Life Mods
3 items
Description
Tired of putting items to your backpack over your shoulder? With Auto Pickup, you can release these items anywhere to automatically pick them up.

Enable the lock-on mode to pick up items from distance by locking on to them with the gravity gloves.

Compatible with custom weapons. Works on any map.

Commands:

Command
Value
Description
auto_pickup_mode
0
Set auto pickup lock on mode 0/1
auto_pickup_enable
1
Enable auto pickup
auto_pickup_ammo_insertion_range
7.5
(debug)
auto_pickup_ammo_insertion_debug
0
(debug)

Creating persistent settings:

Create a config file named "auto_pickup.cfg" in your game config directory, and put your commands in it.

/steamapps/common/Half-Life Alyx/game/hlvr/cfg/auto_pickup.cfg

You may also include other game commands in this file, such as "vr_hold_ragdoll_large_biped_counter_spring_freq 2" to remove ragdoll constraints.


Notes:

- Picking up an item while the same type of item is inside or under the hand may fail to pick up the item. Simply move your hand a bit further before releasing.

- Lock-on mode does not work on custom-functionality-weapon ammo (hlvr_weapon_generic_pistol), NOT reskins. This is only because it is not possible to get the ammo amount of these clips.



- (debug) auto_pickup_ammo_insertion_range is 7.5 by default; setting this value too large will cause the pickup to fail depending on the distance between hands while picking up an ammo while holding its weapon on the other hand - range determined by the value.

- (debug) auto_pickup_ammo_insertion_debug draws the ammo insertion point (magenta), and ammo position once on release (green), and once one frame before it is picked up (red). Auto pickup is cancelled when either of these intersect with the insertion point.


github.com/samisalreadytaken/vscripts




Guide on how to create your own addons that work on any map:

https://steamcommunity.com/sharedfiles/filedetails/?id=2187633818
41 Comments
kλleid Dec 4, 2023 @ 12:34pm 
Bloody brilliant mod, just started playing Levitation on my Quest 2 and gone are the times the controller loses tracking when I move my hand over my shoulder. Thank you! ❤️
Bob Sep 10, 2022 @ 4:40pm 
goes good with novr
Sam  [author] May 9, 2022 @ 7:41am 
Make sure you have the Auto Pickup addon enabled even while loading a save.
Mixz0r May 7, 2022 @ 10:13pm 
I just loaded up a game with only 2 addons enabled in the save file; auto pickup and resin detector. But auto pickup isn't working. Any thoughts? It was fine last time I played. I have validated all files in Steam.
revers Jan 31, 2022 @ 3:43pm 
Sorry, got it working, I didn't realize that I need to restart a new game (can't use my save) and that's why never heard about the 'Start game with addons' button. Now I see it and it works. Thank you! Now need to resolve using of ammo from backpack... :)
Sam  [author] Jan 31, 2022 @ 12:12pm 
What does the console say when the game is loaded and you release the ammo?

And just to be sure, did you choose 'Start game with addons'?
revers Jan 31, 2022 @ 11:58am 
Hi everyone,
It's not working for some reason. The game says it's loaded, however releasing the ammo doesn't add it to the backpack. The ammo is not used, I have Reverb G2, so I'm stuck at the beginning of the game where I have to add ammo to my backpack for the first time. Workshop is installed, and I've created the config file (/steamapps/common/Half-Life Alyx/game/hlvr/cfg/auto_pickup.cfg) with the following contents:

auto_pickup_enable 1
auto_pickup_mode 1
auto_pickup_ammo_insertion_debug 1

Tried to restart Steam / PC - doesn't help at all. Any ideas what do I do wrong please?

Thanks in advance.
Kaundere Sep 6, 2021 @ 11:26am 
Thank you Sam, I indeed did that and it worked. Restarting Steam is what fixed it in the end.
Sam  [author] Sep 6, 2021 @ 12:29am 
Try re-downloading, validating game files, restarting the game and Steam.
Kaundere Sep 5, 2021 @ 4:54am 
For some reason the addon is not showing up in the game at all