Custom Commands:
heal_player- Gives the player the specified amount of health.heal_player 100to give 100 health.give_ammo- Gives the player the specified amount of ammo.give_ammo 100to give 100 ammo.kill_zombies- Kills all the spawned zombies.rapid_fire- Toggles rapid fire mode.rapid_fire trueto enable,rapid_fire falseto disable.start_lobby- Starts a lobby. Still need to figure out method patching to make co-op work
SandFox is a modding and debugging tool for S&box that uses DLL injection to load a .NET assembly in to a running instance of S&box.
- Adds console commands to support debugging such as
scene_listandgameobject_dump - Adds console commands to support modifying game behavior such as
map_changeandfreecam_start
- Run SandFoxGUI.exe
- Run S&box and run a game
- Press the Inject button
- If "Successful SandFoxSystem init." was logged, then all the ConCmds and ConVars in ManagedPayload should be available to use.
- After closing S&box, SandFox commands will not be useable again until after restarting S&box and pressing Inject again.
To add new behavior to SandFox, add a ConCmd or ConVar to the ManagedPayload C# project, build it, and copy the output DLL to same directory that ManagedClient.exe is in.
Loading .NET DLL plugins is planned to be supported in the future, so you wouldn't have to modify ManagedPayload itself.
- Allow SandFox to work for multiple different games without needing to restart S&box and reinject the payload each time.
- Add a plugin system to that allows different DLLs to be loaded depending on game.
- Issue: Windows Defender thinks that Injector.exe is a virus
- Resolution: This is a false positive. Injector.exe is just a tool that forces a process to load a DLL. Because Injector.exe is fairly basic, it is probably semantically equivalent to similar tools used for malicious purposes. In the future, I might modify ManagedClient so that it no longer requires Injector.exe to function.