CommandRelay is a tool designed to interface with chat messages on Fudgy's DarkRP Garry's Mod server. It monitors a specific file containing chat logs, processes the messages, and executes in-game commands based on the content and context of those messages. This is achieved using the -hijack launch option for Garry's Mod.
- Chat Monitoring: Reads chat messages output to a file.
- Message Filtering: Processes messages based on their origin and type (e.g., local chat).
- Automated Commands: Executes predefined commands in Garry's Mod based on specific messages.
- Integration with Garry's Mod: Uses the
-hijacklaunch option to send commands directly to the game.
- The tool monitors a designated file for new chat messages.
- When a new message is detected, it determines the chat type and extracts the sender's name and message content.
- Based on predefined rules, the tool decides whether to execute a command and what that command should be.
- Commands are sent to Garry's Mod using the
-hijacklaunch setting.
- Garry's Mod installed.
- The chat output file located in
garrysmod/data/fudgy_chat.txt. -hijacklaunch option enabled for Garry's Mod.
- Clone or download the repository.
- Ensure all required dependencies are installed.
- Configure the file path to match your setup if necessary.
- Start the application.
- Ensure Garry's Mod is running with the
-hijacklaunch option. - The application will automatically read the chat log file and execute commands based on incoming messages.
This tool is designed specifically for Fudgy's DarkRP Garry's Mod server and may not function as intended on other servers. Use it responsibly and ensure compliance with server rules.