Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.
Steven Webster edited this page Nov 14, 2020 · 13 revisions

Welcome to the AdvancedSubclassing wiki!

This wiki will teach you all you need to know about making your own subclasses.

Check out making classes!

Default config:

Subclass:
  is_enabled: false
  # Enable debug logs?
  debug: true
  # Makes chance to get classes additive instead of individual.
  additive_chance: false
  # The separator for spawn parameter arguments. Set this to (a) character(s) that are unique in class names, team names, etc.
  spawn_parameter_separator: _
  # The default time the got class broadcast lasts, still can be overridden by specific classes.
  global_broadcast_time: 5
  # The message shown to players when they try to go invisible, but already are.
  already_invisible_message: You're already invisible!
  # The message shown to players when they fail to disguise.
  disguise_failed_message: Disguise failed, your team, or SCPs, are the most within range.
  # The message shown to players when their revive fails because they aren't near a dead body.
  revive_failed_no_body_message: You must be near a dead body.
  # The message shown to players when their revive fails because the body is not revivable.
  cant_revive_message: This player is not revivable.
  # The message shown to players when they use the help command and the class provided is not found.
  help_no_class_found: Class not found!
  # The message shown to players when they use the help command and the class provided has no help string.
  help_no_help_found: Class has no help message!
  # The message shown to players when they use the help command and provided no arguments.
  help_no_arguments_provided: Please provide the class name if you don't have a subclass
  # The message shown to players when they use the an ability that requires spectators and there are none.
  no_available_spectators: There are no available spectators.

Example Class config:

name: Example Class

affects_roles:
- ClassD

affects_users: {}

any_permissions: {}

string_options:
  GotClassMessage: You are an <color=red>ExampleClass</color>, this is an example test.
  AbilityCooldownMessage: Your {ability} ability is on cooldown for {seconds} seconds!
  OutOfAbilityUses: Your {ability} is out of uses!
  HelpMessage: Example help message.
  Nickname: Test {name}

boolean_options:
  Enabled: true
  DisregardHasFF: false
  HasFriendlyFire: false
  DisregardTakesFF: false
  TakesFriendlyFire: false
  GivenOnEscape: false

integer_options:
  MaxHealth: 150
  HealthOnSpawn: 150
  MaxArmor: -1
  ArmorOnSpawn: -1

float_options:
  ChanceToGet: 100
  VentDuration: 25
  PowerSurgeRadius: 30

spawn_locations:
- Unknown

spawn_items:
  0:
    GunCOM15: 100

spawn_ammo:
  Nato556: -1
  Nato762: -1
  Nato9: -1

abilities:
- Vent
- PowerSurge

ability_cooldowns: 
  Vent: 10
  PowerSurge: 10

initial_ability_cooldowns: {}

advanced_ff_rules: []

on_hit_effects: []

roles_that_cant_damage:
- Scp049

cant_damage:
- ClassD

on_spawn_effects: []

spawn_parameters:
  sc_Test1_Alive: 0

Clone this wiki locally