Auto Pickup

If you liked this item, please rate it up on Steam Workshop page.

Author: Sam

Last revision: 28 Nov, 2022 at 18:00 UTC

File size: 24.31 KB

On Steam Workshop

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