Skip to content

rorincloud/Half-Life-VR

 
 

Repository files navigation

______________________
CVARS! (Game settings)
______________________
vr_control_alwaysforward	0,1 	1 = Position of the touchpad/joystic is ignored and is always interpreted as forwards
vr_control_deadzone		0->1	Percentage as a decimal of deadzone on the touchpad/joystick (0 = no deadzone)
vr_control_hand			0,1,2	0 = Head/ 1 = Left/ 2 = Right hand that locomotion is relative to (Think Onward)
vr_control_teleport		0,1	1 = Use teleport instead of smooth locomotion. (to do: make into an arc using valve sample code)
vr_roomcrouch			0,1	1 = Use +-duck, 0 = physical roomscale crouching? (+duck/-duck is currently boud to menu button on right controller)
vr_weapontilt			angle	Angle of offset for the weapon (-30 has been set to default, optimized for oculus)

Configure Cvars in \Half-Life\vr\config.cfg or enter them in the console while the game is running.


_________
Controls!
_________
Left Controller:						Right Controller:
Top Menu							Top Menu
	-quicksave							-Jump
Touchpad							TouchPad
	-MOVEMENT							-PREVIOUS/NEXT WEAPON(left and right)
	-Teleport(only active when smooth locomotion CVAR is disabled)	-Teleport(Down) only active with smooth locomotion
										-RELOAD(up)
Trigger								Trigger
	-Use								-FIRE
Grip								Grip
	-Flashlight							-ALT-FIRE


_______________
How to install:
_______________
1. Extract the archived files (except source folder unless you are compiling) into the root directory of Half-life.

2. You will need to set opengl32.dll to read-only to disallow file deletion.
(The latest version of half-life prevents a modified opengl32.dll and will actively remove opengl32.dll if it is not changed to read-only.)

3. Use the Half-Life VR shortcut and accept the steam dialog prompt to launch the vr mod.
	3a. You can also launch by copying "-game vr -dev -env -console -insecure -nomouse -nojoy +sv_lan 1" to the launch parameters in the steam half-life properties panel.
		
If you try to play Half-life multiplayer with opengl32.dll in the root directory you CAN be VAC banned.

The following changes have been made to the source:
-commented out the vac warning.
-teleport has been added to the smooth locomotion option.
-removed right debug controller lasers.
-commented out dynamic scaling code on npcs because it was causing weird alignment issues and other such wackiness.
-tweaked scale of world.
-jumping added to top right menu button
-restored ladder climbing.
-restored super jumping.
-sprint added by pressing left touchpad
-flashlight command added to left grip.
-configurable onward style movement cvar added. (thanks to Mr.SoAndSo)
-roomcrouch or bindable +-duck cvar added. (thanks to Mr.SoAndSo)
-configurable weapon tilt cvar added. (thanks to Mr.SoAndSo)
-controller always forward option cvar added.(thanks to Mr.SoAndSo)
-touchpad deadzone cvar added. (thanks to Mr.SoAndSo)
-disabled the 9mm pistol alternate fire because it crashes the game.
-quicksave added

HLVR was created by Max Vollmer and can be found at: https://github.com/maxvollmer/Half-Life-VR/

Have fun! (Feel free to do whatever with the code as long as you attribute Max Vollmer as the original creator!)

About

VR mod for Half-Life

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 75.4%
  • C 18.9%
  • C# 3.8%
  • HTML 1.7%
  • Other 0.2%