Skip to content

PrinceOfCookies/CommandRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandRelay

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.

Features

  • 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 -hijack launch option to send commands directly to the game.

How It Works

  1. The tool monitors a designated file for new chat messages.
  2. When a new message is detected, it determines the chat type and extracts the sender's name and message content.
  3. Based on predefined rules, the tool decides whether to execute a command and what that command should be.
  4. Commands are sent to Garry's Mod using the -hijack launch setting.

Requirements

  • Garry's Mod installed.
  • The chat output file located in garrysmod/data/fudgy_chat.txt.
  • -hijack launch option enabled for Garry's Mod.

Installation

  1. Clone or download the repository.
  2. Ensure all required dependencies are installed.
  3. Configure the file path to match your setup if necessary.

Usage

  1. Start the application.
  2. Ensure Garry's Mod is running with the -hijack launch option.
  3. The application will automatically read the chat log file and execute commands based on incoming messages.

Disclaimer

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.

About

Reads a data file which is the output of chat and based on that executes commands via the -hijack launch setting for gmod

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages