API
Last updated
Last updated
Most of the documentation of functions in guthscpbase
are only present in the source code for two reasons:
As there is no documentation generator for the code documentation convention I use, it is less work to only maintain one side.
It allows you ─ as a (probably) future module developper, to fully understand the limitations and usage of the code behind these functions since you can directly read the source code at the same time that reading its documentation.
TLDR: usual developper laziness
Despite these reasons, I will try to write documentation in this wiki for important classes and systems as well as for tutorials. Unfortunately, this take time so if you find yourself having questions that this wiki can't answer, I encourage you to read the code or to contact me via a or .
Here you can find a short summary of each file purpose:
: addon's loader, contain functions for console logging & requiring folder and files
: client-side part of the base entity, contain the dynamic hand symbol's code
: server-side part of the base entity
: usual shared entity file
: client-side part of the configuration system, mostly vgui related code
: configuration helpers functions to create custom elements
: shared part of the configuration system
: server-side part of the configuration system
: client-side part of the custom sound system
: custom spawnmenu
: custom player speed modifiers system
: server-side part of the custom sound system
: base class to filter list of entities with specific constraints
: subclass to filter list of map entities
: subclass to filter list of players, useful to manage a list of SCPs
: utility functions for data files management
: class to handle custom events listeners
: managing a list of active NPCs
: utility function to draw a message at the bottom of the screen of a player
: function to play a client sound
: utility functions for getting active SCPs players & managing the TEAM_
names
: utility functions for using 3D space
: module loader system, handle everything
: define the MODULE
class: its properties and its methods
: utility functions for semantic versioning
: utility functions for table manipulation
: workaround for fixing CPTBase's ShouldCollide
hook conflict
: workaround for fixing Playable Piano's PlayerUse
conflict
: entry point of the base
module, useful to get a real module example
: custom entity breaking system
: development unit testing file, actually used for guthscp.helpers.compare_versions
& guthscp.event_handler
: clickable vgui containing a left-anchored icon and a label