GrumpyGordon
Allows players to easily control the newly implemented CCTV system

Supported Games
works with

This plugin gives your players a fast utility tool to quickly add all their CCTV Cameras into a computer station. Additionally it allows them to monitor if their cameras are online, which could indicate that there is an issue with the power source.

It quickly allows all players to add all of the server cameras, i.e. Dome/Oil Rig cameras to their computer station, along with their own.

Chat Commands

  • /cctv help - Show help information in console
  • /cctv status <me | server | all> - Show a list of all cameras (in selected category) in console
  • /cctv add <me | server | all > - Add cameras in selected category to the computer station you're currently looking at
  • /cctv clear - Clears cameras from the computer station you're currently looking at
  • /cctv rename <Camera ID> <New Name> - Rename a camera identifier remotely
  • /cctv autoname <on | off | toggle> - Automatically names cameras as they are placed
  • /cctv autoadd <on | off | me | server | custom | all | toggle> - Automatically adds cameras to the computer station when placed
  • /cctv autopowered <on | off | toggle> - Automatically powers cameras when placed / server restarts
  • /cctv about - Show information about plugin

Permissions

  • cctvutilities.help - Allows player to use /cctv help
  • cctvutilities.status.me - Allows player to use /cctv status me
  • cctvutilities.status.server - Allows player to use /cctv status server
  • cctvutilities.status.custom - Allows player to use /cctv status custom
  • cctvutilities.status.all - Allows player to use /cctv status all
  • cctvutilities.clear - Allows player to use /cctv clear
  • cctvutilities.rename - Allows player to use /cctv rename <Camera ID> <New Name>
  • cctvutilities.add.me - Allows player to use /cctv add me
  • cctvutilities.add.server - Allows player to use /cctv add server
  • cctvutilities.add.custom - Allows player to use /cctv add custom
  • cctvutilities.add.all - Allows player to use /cctv add all
  • cctvutilities.add.clear - Allows player to use /cctv add clear
  • cctvutilities.autoname - Allows player to use /cctv autoname <on | off | toggle>
  • cctvutilities.autoadd - Allows player to use /cctv autoadd
  • cctvutilities.autoadd.on - Allows player to use /cctv autoadd on
  • cctvutilities.autoadd.off - Allows player to use /cctv autoadd off
  • cctvutilities.autoadd.toggle - Allows player to use /cctv autoadd toggle
  • cctvutilities.autoadd.me - Allows player to use /cctv autoadd me
  • cctvutilities.autoadd.server - Allows player to use /cctv autoadd server
  • cctvutilities.autoadd.custom - Allows player to use /cctv autoadd custom
  • cctvutilities.autoadd.all - Allows player to use /cctv autoadd allPermissions for this command are extensive and are likely to get changed in the future
  • cctvutilities.autopowered - Allows player to use /cctv autopowered <on | off | toggle>

Localization

Customisation

Included in the plugin is a CustomCameras file, this file allows you to customise a list of cameras players can easily access using /cctv add custom or /cctv autoadd custom. This means admins can create a mixed list of cameras provided by Facepunch and ones they have installed themselves for players to use.

To add/remove cameras from the list you need open the CustomCameras.json file. This file can be found under Oxide/Data/CCTVUtilities/CustomCameras.json Once you have the file open, you can add new cameras by simply typing their unique identifiers.

When editing the file be aware of the formatting of the default cameras and try and replicate it. Being careful of the [ ] " " and , characters as these are crucial to the file's integrity. If the file stops working once it has been edited, use a JSON Parser to check the file is still correctly formatted. (The parser linked is able to tell you at which line there is a formatting error)

To ensure your players can use the commands you need to make sure they have the correct permissions. For help with adding permissions to groups, please refer to the UMod Documentation

  • cctvutilities.add.custom needs to be granted in order to use /cctv add custom which will add the custom cameras to the computer station the player is currently looking at.

  • cctvutilities.autoadd AND cctvutilities.autoadd.custom needs to be granted in order to use /cctv autoadd custom which will automatically add the custom cameras to newly placed Computer Stations.

If you break your configuration file and are unsure how to fix it, you can remove the file and reload the plugin in order to generate a new one.

Feature Requests

This plugin is always open to new feature requests! Please post them in Plugin Support

  • Automatically adding cameras to computer stations upon placement & Custom configurable camera list @Bumfuzzler

Credits

Logo icons made by FreePik & Smashicons

MIT License

Copyright (c) 2021 GrumpyGordon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.