Skip to content

A plugin that allows players to connect to the facility's security camera system via special workstations.

License

Notifications You must be signed in to change notification settings

FrikandelbroodjeCommunity/CameraSystem-LabAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release LabAPI Version Original License

About CameraSystem

A plugin that allows players to connect to the facility's security camera system via special workstations.

  • Customizable camera workstations placed throughout the facility
  • Players maintain their original appearance via NPC clones while viewing cameras
  • Full integration with SCP-079's camera system
  • Blocks inappropriate actions while viewing cameras
  • Flexible configuration with both room-based and absolute positioning

Installation

Place the latest release in the LabAPI plugin folder.

Usage

  1. Approach a configured workstation
  2. Activate it by interacting (default: E key)
  3. You'll enter camera view while your physical body remains at the workstation
  4. Press the interact button (E) again to exit camera view

Commands

The parent command camerasystem (aliases: cs, camera) contains the following sub-commands.

Sub-command Aliases Usage Required permission Description
disconnect d, dc cs dc <player> camsys.disconnect Forces the given player to disconnect from the camera.
toggle t cs toggle camsys.toggle Toggles the CameraSystem on/off.
toggleworkstationusage twu cs twu camsys.toggleworkstationusage When looking at a workstation, this will add/remove that workstation from the CamerySystem. Adding will cause the workstation to behave as a camera workstation.

Config

Config Default Meaning
is_camera_system_enabled_by_default true When set to false, the CameraSystem is not enabled when the plugin starts. Instead the system is only enabled once the toggle command is run.
preset_configs ... Presets to spawn workstations based on an offset within a room (see room presets).
workstations ... Presets to spawn workstations based on absolute positions in the map (see absolute presets).
prohibited_roles nothing Roles that are not allowed to use the CameraSystem. SCPs are prohibited by default, so they do not need to be included in this list.
translations ... The different messages that can be displayed by the CameraSystem.

Room-based Presets

Each room preset needs to follow the following structure:

preset_configs:
  - room_type: RoomType       # The room where workstation will spawn (e.g. HczArmory)
    local_position: Vector3   # Position relative to room
    local_rotation: Vector3   # Rotation relative to room
    scale: Vector3            # Workstation scale

Benefits:

  • Automatically adapts to room position changes
  • Easier to configure (positions are relative to room)
  • More intuitive placement

Previous presets are now available as room-based configurations:

Old Preset New RoomType Local Position Local Rotation Scale
HczArmory HczArmory (1.1, 0, 2.1) (0, 180, 0) (1, 1, 1)
Intercom EzIntercom (-5.4, 0, -1.8) (0, 0, 0) (1, 1, 1)
Intercom2 EzIntercom (-6.9, -5.8, 1.2) (0, 90, 0) (1, 1, 0.7)
Nuke HczNuke (2, -72.4, 8.5) (0, 0, 0) (1, 1, 1)
Scp914 Lcz914 (-1.9, 0, 5.5) (0, 90, 0) (1, 1, 1)
Scp9142 Lcz914 (-6.2, 0, 3.1) (0, 180, 0) (1, 1, 1)

Absolute Position Presets

Each absolute position preset needs to follow the following structure:

workstations:
  - position: Vector3         # Absolute world position
    rotation: Vector3         # Absolute rotation
    scale: Vector3            # Workstation scale

Preset Locations

Here are the default preset locations with screenshots:

HczArmory Workstation
HczArmory preset
Nuke Workstation
Nuke preset
Intercom Workstation
Intercom preset
Intercom2 Workstation
Intercom2 preset
Scp914 Workstation
Scp914 preset
Scp9142 Workstation
Scp9142 preset

About

A plugin that allows players to connect to the facility's security camera system via special workstations.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • C# 100.0%