Source Entities:Entity pages/AC

From Source Entities
Jump to navigation Jump to search
Source Entities:Entity pages/A

For a code class not tied to any classnames, follow these instructions. They're mostly the same to the AA instructions.

Title[edit source]

The URL of the class should match the actual name as closely as possible, including capitalization.

Top area[edit source]

Start off with Template:Class. This automatically inserts and formats the name of the class, as it was typed in the page title. Write an adequate description of the class. Do not include Template:Gamelistbox on this page. Instead just list the games in the text, if it's even needed.

Add Template:Classbox. Create the template for this specific class.

Template:Class will create a link to a category that lists inheritors of this class. Add Template:catrelatedto2 in the category description. Categorize that category under whatever class it inherits one level up. (CBaseProp would be categorized under CBaseAnimating, but do not include CBaseEntity! These categories are not flat.)

ConVars/Commands[edit source]

List console variables and console commands with Template:Varcom. The easiest way to find these is to search for the macros (ConVar, ConCommand, rarely CON_COMMAND) in the cpp file. The find console command is also very helpful. Be aware that the default values for convars in a cpp may be overridden in one of the game's many config files, so definitely check the console directly if a default value seems odd.

Keyvalues, inputs, outputs, flags[edit source]

Add keyvalues, inputs, and outputs with Template:KIO. Add flags with Template:Fl. They should all be in this order:

  1. Flags
  2. Keyvalues
  3. Inputs
  4. Outputs