ChatCommands
Adds a lot of usable (admin) commands in the chat! Set deadline, spawn enemies on friends and a lot more! Usable as Host and NonHost
Date uploaded | a month ago |
Version | 2.0.0 |
Download link | CTMods-ChatCommands-2.0.0.zip |
Downloads | 9238 |
Dependency string | CTMods-ChatCommands-2.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100taffyko-NiceChat
Better text chat. Chat for dead players / spectators, infinite scrolling message history, greatly increased character limit, bigger chat area, fade/hide chat when not in use, and more.
Preferred version: 1.2.7README
ChatCommands
This mod adds some chat commands used with a / by default.
Donate
If you want to donate, to support making mods like this one:
Disclaimers
with "/" as the default prefix this mod may be incompatible with other mods that use this prefix like for example the GameMaster mod.
you can change the prefix to anything you want, so if your keyboard is maybe incompatible or anything, try changing the prefix to something like for example cmd: in the config file of the mod. just make sure you dont leave a space between your set prefix and the command itself.
If you encounter any issues, or you have suggestions, please open an Issue in the linked GitHub page.
Install
To install either use a mod Manager or just drag the ChatCommands.dll into your BepInEx/plugins folder.
Recommendation
Install NiceChat Plugin alongside this, provides nicer Navigation etc to the chat and a better layout.
Commands
-
Spawn Enemy: Format: /spawnenemy [enemyname] ([p=position]) ([a=amount]) ([s=state]) - Alt: /spweny [enemyname] ([a=amount]) ([s=state]) ([p=position])
Description: Spawns an enemy at the specified location. Either use the player's position or specify a position. Position, state and amount are optional. Use them with the following format: position=@(playername/me) amount=(number) state=(alive/dead), For Host only -
Set Custom Deadline: Format: /deadline [days] - Alt: /dl [days]
Description: Sets a custom deadline for the game. If no argument is provided, the custom deadline will be toggled. For Host only -
Spawn Scrap: Format: /spawnscrap [scrapname] ([p=position]) ([a=amount]) ([v=value]) - Alt: /spwscr [scrapname] ([a=amount]) ([v=value]) ([p=position])
Description: Spawns Scrap at the specified location. Either use the player's position or specify a position. Position, value and amount are optional. Use them with the following format: position=@(playername/me) amount=(number) value=(number), For Host only -
Teleport: Format: /teleport ([position=(random/@<playername>/@me/Vector3)]) - Alt: /tp ([position=(random/@<playername>/@me/Vector3)])
Description: Teleport to where you want. Use the following format: position=@(playername/me) or position=(random) or without arguments to teleport to the terminal. Host and Client -
View Help: Format: /help ([command]) - Alt: /h ([command])
Description: Displays a list of available commands with their format. Use <color=#00FFFF>/help [command]</color> to get more information about a specific command. Host and Client -
Toggle Lights: Format: /togglelights - Alt: /toglig
Description: Toggles the lights on and off. For Host only -
Get Spawnable Enemies: Format: /getenemies - Alt: /enemies
Description: Gets the spawnable enemies for the current level. For Host only -
Buy Stuff: Format: /buy [itemname] - Alt: /buyitem [itemname]
Description: Buy stuff from the shop. Gets delivered via DropShip. (old function, you better use /term buy [itemname] instead) For Host only -
Change Weather: Format: /changeweather [weathername] - Alt: /chwe [weathername]
Description: Change Weather to a specific type. For Host only -
Spawn Item: Format: /spawnitem [itemname] ([p=position]) ([a=amount]) ([v=value]) - Alt: /spwitm [itemname] ([a=amount]) ([p=position]) ([v=value])
Description: Spawns Items at a specified position or at a random position. Args are optional, use them like this: p=@me a=5 v=1234. Note: Value doesnt work for everything. For Host only -
Get Spawnable Enemies: Format: /getenemies - Alt: /enemies
Description: Gets the spawnable enemies for the current level. For Host only -
Get Spawnable Scrap Items: Format: /getscrap - Alt: /scrap
Description: Gets the spawnable scrap items for the current level. For Host only -
Give Co-Host to a player: Format: /cohost [playername] - Alt: /hostcmd [playername]
Description: Gives co-host to a player, which allows them to use host commands, when you turned them off for everyone else. For Host only -
Toggle God Mode: Format: /godmode - Alt: /god
Description: Toggles if invincibility is enabled. Host and Client -
Get Alive Players: Format: /getalive - Alt: /getap
Description: Returns a list of all players and if they are alive or dead. For Host only -
Revive all players: Format: /revive - Alt: /rev
Description: Revives everyone. For Host only -
Speed Hack: Format: /speed ([speed]) ([jumpforce]) - Alt: /speedhack ([speed]) ([jumpforce])
Description: Toggles Speed Hack, if speed is provided it will set the speed to that value. If jump force is provided it will set the jump force to that value. Host and Client -
Spawn Truck: Format: /spawntruck ([p=position]) - Alt: /spwtrk ([p=position])
Description: Spawns the Truck, either at the default position or at a specified position. For Host only -
Get ALL Spawnable Items: Format: /getitems - Alt: /items
Description: Gets the spawnable items you can spawn with /spawnitem or /spwitm. Host and Client -
Infinite Ammo: Format: /infammo - Alt: /ammo
Description: Toggle Infinite Ammo. Host and Client -
Get your current Position: Format: /getposition - Alt: /getpos
Description: Returns your current position. Host and Client -
Set Money: Format: /setmoney ([value]) - Alt: /money ([value])
Description: Set Terminal Money to defined value, or without value to toggle infinite money. For Host only -
Spawn Map Object: Format: /spawnobject [objectname] ([p=position]) ([a=amount]) - Alt: /spwobj [objectname] ([a=amount]) ([p=position])
Description: Spawns Map Object at the specified location. Either use the player's position or specify a position. Position and amount are optional. Use them with the following format: position=@(playername/me) amount=(number), For Host only -
Send Terminal Command: Format: /term [terminalcommand] - Alt: /terminal [terminalcommand]
Description: Send a terminal commmand to the terminal and receive a response. Host and Client -
Toggle Host Commands: Format: /togglehostcmd - Alt: /thcmd
Description: Toggle if connecting clients can use host commands. For Host only -
Toggle Overrride Spawns: Format: /override - Alt: /ovr
Description: Toggles if Monster Spawns are overriden or not. This affects how many monsters spawn with the spawn command and natural spawns. For Host only -
View Credits: Format: /getcredits - Alt: /credits
Description: Shows the credits for the ChatCommands mod. Host and Client
Config
- Customize Prefix -> default: /
- Display Messages as Popup -> Determines if chat messages are displayed as popup messages. default: false
- Has to be Host -> (for server host only): determines if clients can also use the host commands. default: true
- Send Host Commands -> (for server host only): determines if commands get sent to the clients, so for example god mode is enabled for them too. default: true
- Override Spawns -> (for server host only): determines if the spawn command overrides the default spawns. If enabled there can be spawned more than one girl etc. Can be toggled ingame by using /override command. default: false
- Enable Debug Mode -> Enables Unity Debug mode and with it the Debug modmenu ingame. default: true
- Log To Chat -> Enables logging to (local) chat. default: false
Legend:
[arg] -> argument for command you have to enter (without the [])
([arg]) -> optional argument for a command you can enter (without ([]) around it)
arg -> placeholder for stuff like position, amount, value, playername etc. in this example
Disclaimer for Spawn commands and Position arguments:
- Use for example like this: /spwitem cog v=1232 p=@me a=3 -> Spawns 3 "Cog" Items with the value 1232 at your location.
Additional Credits:
Toemmsen96 - Making most of the mod
Chrigi - old Spawn Scrap and gun functionality with position parameters and stuff
GameMaster Team - some parts of the code that were used as a base
CHANGELOG
v2.0.0 Complete Rework
- Completely reworked the entire mod so it now works better and more stable.
- Added SpawnItem Command that can be used anywhere and also can spawn unreleased Items.
- Added IsEditor Patch to enable DebugMenu (can be turned off in the Config)
- Added /revive command to revive all players (will try to add specific players later on)
- Added /getitems to list all items
- Added /setmoney to set the money instead of just infinite money
- Added /spwobj to spawn Map Objects such as Landmines, Turrets and the Spike Trap, you need to load into any moon that has those first tho (for example Titan)
- Added /spawntruck to spawn in the Truck (more truck commands planned)
- Made /speed or /speedhack to be able to set speed and jump force
- Added /term to send single commands to the terminal instead of the weird Terminal mode that was in there
- Added Dependency to taffyko's NiceChat, because this mod works a lot better with that (not required)
- Improved /help command to also include detailed info with /help [commandname]
- idk probably forgot stuff, i changed a lot
- Please report Issues in the linked GitHub Page. Im very unsure about CoHost and Networking stuff, that probably doesn't work as i can't test those rn.
v1.1.92 Fixed Godmode
- MouthDog and ForestGiant now don't break interactability when godmode is enabled
v1.1.91 Update for newer version
- just some simple stuff updated
v1.1.9 Hotfix for /pos
- fixed some /pos stuff not working
v1.1.8 Added toggle for Spawn override
- added a config setting to turn on or off overriding spawns
- added command /override or /ovr to toggle overriding enemy spawns
- added ability to spawn mines or turrets using /spawnmine (not fully tested yet)
- added ability to use coordinates when using p=. FE: /spweny p=3,2,1
- added ability to check own position using /pos or /position
- fixed some playernames not being recognized right by p=@
v1.1.7 Fix NonHost not loading
- fixed Hostcheck when loading level
v1.1.6 Fix @me argument for p=@me
- remember using p=@me and not just @me for position
v1.1.5 Hotfix because i broke something in 1.1.4
- hotfix for nonhost commands
v1.1.4 Trying to fix some Host - NonHost issues
- trying to fix some prefix issues
- trying to fix some communication and chat visibility issues
- added ability to give host commands to specific users using /hostcmd "playername" or /cohost "playername"
- added config entry disable sending the commands to clients (for host only)
v1.1.3 Fixed needing lowercase for spwscr
- fixed lowercase issue
v1.1.2 Important fixes to Spawn functions
- fixed Inside enemies not being the right ones
- fixed scrap spawning issues with error being displayed even if everything worked
v1.1.1 Improved Host - NonHost communication
- also fixed some prefix stuff
v1.1.0 Stability and working improvements
- improved stuff to work better
v1.0.1 Hotfixes and Improvements
- fixed lots of stuff
- added better NonHost to Host communication
- fixed jumpforce when disabling speedhack
- fixed p=@playername command not spawning in the right position
v1.0.0 Release
- Release