- luasocket binary (place in
steamapps/common/GarrysMod/garrysmod/lua/bin/
, createbin
folder if it does not exist) - luasocket lua files (if on a server, only the server needs this)
- This link is a pre-packaged addon containing the required luasocket files, place it in your addons folder after extracting
- opentrack
- Install this addon into your addons folder.
- Install the luasocket binary + lua files as directed above.
- Install opentrack and set it up with your preferred head tracking solution. Many guides can be found online. Personally, I have used both AITrack alongside an old webcam, and the smoothtrack ($10 USD) app.
- In opentrack, set the output to
UDP over network
, press the configuration button, and set the remote IP address to127.0.0.1
and the port to4243
(or any value between 1024-65535). - In Garry's Mod, open the Q menu, navigate to
Options -> GTrack
, configure the port, and enable head tracking. Have fun!
- opentrack is running, yet I can't connect in GMod
- Ensure the port opentrack is using is the same as the one configured in GTrack
- Add an outbound rule in Windows Firewall allowing opentrack.exe through