SCP: Classified Site Plugin API
  • Quick Start
  • DOCS
    • Folder Structure
    • Creating Plugin Project
    • Creating New Player Class
    • Creating New Item Class
    • Creating New Room Event
    • Creating Additional Networked Class
    • Creating New Admin Panel Menu
    • Abilities
    • Replacing Game Logic
    • Plugin Classes/Game Classes Limitations
  • ID's
    • Inventory Image ID
    • Material ID
    • Team ID
    • Hook ID
  • Game C# Classes
    • ACES
    • AdminPanel
    • Button
    • Config
    • CustomLogger
    • DamageHandler
    • DeadBox
    • DoorManager
    • HitBox
    • HookManager
    • IInteractable
    • InputController
    • ItemPickup
    • Lever
    • NetRoom
    • NetworkedButton
    • NetworkedEvent
    • Player
    • PlayerUtilities
    • ResourcesManager
    • ScriptHelper
    • Trigger
    • UIManager
    • Door
    • SupportManager
    • RoundManager
    • Elevator
  • Another C# Classes
    • Rooms
    • Player Classes
    • Items
    • Admin Panel
Powered by GitBook
On this page
  • Player Classes, Room Events
  • Another type of replacement
  1. DOCS

Replacing Game Logic

You cant replace everything

Game dont support full replacement. Instead of this, you can replace Player Classes, Room Events. Or, you can remove in-game components and add your own components.

Player Classes, Room Events

When Game assign player class, it checks if plugins contains same class, if exists, then apply plugin class. Example: When Player force to be Spectator, it checks if Plugin.Classes.Spectator exists, if exists, then it assign Plugin.Classes.Spectator class. Same for Room Events, Example: When Map Generator create HC_HID, it checks if Plugin.Rooms.HC_HID exists, if exists, then it assign Plugin.Rooms.HC_HID class.

Another type of replacement

If you want to remove round management, support teams management and etc., then you need to find this objects and destroy them. Example:

GameObject.Destroy(FindObjectOfType<RoundManager>());
PreviousAbilitiesNextPlugin Classes/Game Classes Limitations

Last updated 2 months ago