Skip to content

How To Use

dnnkeeper edited this page Apr 14, 2020 · 2 revisions

RUS | ENGLISH

Overview

This ALVR project fork contains controllers velocity fix that allows you to throw and pull objects preserving inertial states (HL:A gravity gloves working).

It also allows you to play VR games without connecting GearVR or other HMD.

Play with mouse and keyboard using FreePIE sample script for keys mapping.

Here is some footage of my progress: https://www.youtube.com/watch?v=eZQM9S3rq9g&list=PLpYyMxy6h5E1sOGcIpHvQNxupvEKmqSsk

How To Setup

Download ALVR_NoVR_mod: https://github.com/dnnkeeper/ALVR/releases

Download FreePIE and follow integration guide (copy FreePIE.dll from ALVR folder to Plugins folder of FreePIE): https://github.com/polygraphene/ALVR/wiki/FreePIE-Integration

How To Play with mouse and keyboard

Run ALVR.exe and enable Fake VR Headset, then press Start Server.

SteamVR should start after that with fake HMD and controllers enabled. Now you can run HL:A or any other game that requires SteamVR hmd, but make sure you run FreePIE controller script prior to that.

Also make sure you set up your room in SteamVR. Set up the default height to ~170cm.

Mouse and Keyboard script

Run FreePIE. File - Open script from ALVR/freepie-samples/HalfLifeAlyx_Mouse_Keyboard.py to emulate VR controllers with keyboard and mouse. Script - Run Script (F5)

Two VR controllers should appear in SteamVR if ALVR server was started.

  • WASD is mapped to the left controller trackpad position so you can enable Continious movement in HL:A to move habitually
  • Mouse wheel extends your arm
  • Mouse buttons 3 and 4 clicks right controller trackpad at 0:1 and 0:-1 positions (weapon change and teleport)
  • Right mouse button rotates arms to reach the backpack inventory
  • E is the left hand 'trigger' button so you can grab your ammo from backpack when right mouse button is held or other items if not
  • Left mouse button is the right hand 'trigger'
  • Middle mouse button is the 'Menu' button used to pull the slider of your weapon after reloading
  • R is the 'Grip' button to drop the clip from your pistol
  • Left Ctrl is the crouch button lowering your height
  • C is the left hand toggle alowing you to move left hand closer to the right
  • F and G to move left hand forward and backward to reach the pockets
  • V is the left hand toggle alowing you to move left hand up or down to be able to reach shotgun barrel
  • Hold Left Alt to freeze your left hand position. Useful in shotgun puzzle episode
  • P is for the Menu

How To Play with GearVR

You can also use Samsung GearVR headset with controller using extended controller script GearVRExtendedController.py

Run ALVR.exe and disable Fake VR Headset if it was enabled, then press Start Server.

ALVR should work as original version, waiting for your GearVR client application to be discovered.

Make sure you set up your room in SteamVR. Set up the default height to ~170cm.

GearVR controller script

To be able to play HL:A using 3DOF GearVR controller you need to enable one-handed mode in SteamVR controllers settings. Also disable application menu on trackpad center action - it is redundant.

Run GearVRExtendedController.py script using FreePIE This script allows you to extend your virtual arm and aim from your right eye to be able to shoot precisely

  • Rotate GearVR controller to move and rotate your arm
  • Swipe GearVR controller trackpad to extend and move your arm
  • Double-click trackpad 'Down' button to crouch
  • 'Back' button is mapped to controller 'Grip' for reloading weapon in HL:Alyx. Do not hold it too long - it will trigger system back action!
  • Center trackpad button is 'Application Menu' that you can use after reloading your weapon