TCGui
Provides a GUI to manage your tool cupboard and area autoturret authorization. Also adds a button which appears above the TC loot table for accessing the GUI.
Provides a GUI to manage your tool cupboard and area autoturret authorization. Also adds a button which appears above the TC loot table for accessing the GUI.
Uses Friends, Clans, and Rust Teams.
Click on Manage at the top of the TC Loot table for the GUI:
Once opened by clicking the button, you can remove players by clicking the Remove button next to their name. Select additional players to add to the TC or turret by clicking the associated Select button:
The user must be within range of the cupboard to access the GUI. They must also be authorized to the cupboard.
Configuration
{ "Settings": { "cupboardRange": 3.0, "turretRange": 30.0, "limitToFriends": false, "useFriends": false, "useClans": false, "useTeams": false }, "Version": { "Major": 1, "Minor": 0, "Patch": 7 } }
- cupboardRange -- Sets the minimum distance for interacting with a cupboard. 3f was the original default. 5f might work better for you. Don't set it too high or you may see overlap and odd behavior.
- turretRange -- Sets the maximum distance from a cupboard to locate turrets. 30f is the default, which should be close to actual cupboard protection range. You can adjust higher as needed if the plugin fails to find your local turrets.
- limitToFriends -- (false) If true, use Friends/Clans/Teams to limit the user selection list (configs below)
- useFriends -- (false) Use the Friends plugin if available.
- useClans -- (false) Use an available Clans plugin
- useTeams -- (false) Use Rust teams
Permissions
- tcgui.use -- Allows player to see the Manage button and use the GUI
Chat Commands
- /tc - Parent function which will display the authorized players for the TC in front of you.
- /tc gui - Alternate way to open the GUI for the TC in front of you.
Most of this is only useful to and used by the GUI but could be used for scripting from other plugins or via RCON, perhaps...
- /tc add {player.userID} {player.displayName} - Add player to TC authorized list
- /tc remove {player.userID} - Remove player from TC authorized list
- /tc tadd {player.userID} {player.displayName} {turret.net.ID.ToString()} - Add player to turret authorized list
- /tc tremove {theplayer.userID} {turret.net.ID.ToString()} - Remove player from turret authorized list
Notes
- debug mode now lists 300 fake players in addition to any active/sleeping players (for page testing, etc.)