🦵 gmcl_rekinect
This is a reimplementation of Kinect support for Garry's Mod, allowing you to do stuff like this on more platforms.
Features
- Support for the Xbox 360 Kinect
- Support for the Xbox One Kinect (thank you @figardo for letting me borrow one!)
- Support for the x86-64 branch of Garry's Mod
Caveats
- gmcl_rekinect does not modify the menu state, so the Kinect icon in the bottom right of the Gmod menu will not be visible.
motionsensor.GetColourMaterial()
is not implemented.
Requirements
- Windows
- For Xbox 360 Kinect users, Kinect for Windows Runtime 1.8
- For Xbox One Kinect users, Windows 10 or Windows 11
Installation
- Open your Garry's Mod installation directory. You can find this by right clicking Garry's Mod on Steam, clicking "Properties", clicking the "Installed Files" tab, and then clicking "Browse".
- Navigate into the
garrysmod/lua/
folder. - Create a new folder called
bin
. If it already exists, skip this step. - Download the latest release of
gmcl_rekinect.zip
from the Releases page. - Drop all of the files inside the .zip file into the
garrysmod/lua/bin/
folder you just created.
Your bin folder should now look something like this:
Usage
rekinector
(recommended)
Using gmcl_rekinect comes with a custom DLL injection program called rekinector
for your convenience.
Just open it and it'll watch for Garry's Mod to open. Once it does, it'll inject gmcl_rekinect into the process.
You'll still need to follow the Installation Instructions above before you can use rekinect
.
As a binary module
gmcl_rekinect can be used as a clientside binary module, provided you have followed the Installation Instructions above.
Some servers will allow you to simply run this console command:
lua_run_cl require("rekinect")
in order to load gmcl_rekinect. If nothing is printed in your console after running this command, you'll need to use rekinector
(recommended) or DLL injection instead.
DLL injection
gmcl_rekinect can also be directly injected into the Garry's Mod process, allowing you to use it on whatever servers you please.
If you don't know how to do this already, follow these instructions:
- Make sure you have followed the Installation Instructions above
- Install Cheat Engine
- If you're connected to a server - disconnect. DLL injection of gm_rekinect must take place before joining a server.
- Open Cheat Engine
- Click "Select a process to open" in the top left
- Select the "Applications" tab and click "Garry's Mod"
- Click "Open"
- Click "Memory View" in the middle left of the Cheat Engine window
- Click "Tools" at the top of the Memory View window
- Click "Inject DLL"
- If you're on the main branch of Garry's Mod (the default branch), inject
gmcl_rekinect_win32.dll
which you installed togarrysmod/lua/bin/
earlier. Otherwise, x86-64 branch users should injectgmcl_rekinect_win64.dll
. - Cheat Engine will ask if you want to execute a function of the DLL. Click "No".
- Join a server.