half-life-alyx-scripts
half-life-alyx-scripts copied to clipboard
Scripts for the game Half-Life:Alyx. This repo only provides some simple scripts at this point. As of the v1.4 update, valve ships vscripts with the game, so installing this is not required anymore :)
Half-Life: Alyx Scripts
NOTE: THIS REPO IS LARGELY OBSOLETE SINCE VALVE SHIPS SCRIPTS WITH THE GAME. IF YOU WANT A JUMP FIX OR FLASHLIGHT SCRIPT FOR NON-VR GAMEPLAY, YOU CAN STILL INSTALL THIS
Installation
-
Create the directory game/hlvr/scripts
-
Copy the folder vscripts into this new folder. (It should look like this: game/hlvr/scripts/vscripts)
-
Add a
script_reload_code init-scripts.lua
to hlvr/cfg/skill.cfg or some or CFG that is automatically loaded. -
Load up the game, and you're done!
Installing user scripts
All scripts in the user/ directory are custom scripts by me. If you wish to install more user scripts do the following:
-
Copy the script to scripts/vscripts/user
-
Add
include_script(user/myscript.lua)
to the end ofinit.lua
in thevscripts
directory -
That's all!
Running
Some of these script won't work unless you run the game under developer mode.
To do this, follow these instructions:
- Right click on Half-Life Alyx in the steam library
- Click Properties
- Click "Set Launch Options"
- Add
-dev
in that box - Click OK.