Inputs

From Valve Developer Community
< Generic Keyvalues, Inputs and Outputs
Revision as of 04:21, 11 April 2021 by Orinuse (talk | contribs) (SetTeam input; properly uses ParserFunctions, customizable with 'setteam_dont_put_nofgd', documentation edited, and some other stuff I probably missed)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

This template is our holder for all inputs assigned through CBaseEntity. The template has a very specific syntax that you must follow to apply properly, because new games have added new features throughout the years. See Help:Templates for more info on named parameters. No parameters: display inputs for ALL games.

{{I BaseEntity}}

Base: display inputs that have only existed since whatever game added the class (most have existed since HL2, the first Source game).

{{I BaseEntity|base=1}}

Game as a parameter: display the inputs that base displays, AND inputs that were added to the class, by the specified game. You can specify as many games as needed. You must specify ALL the games you want to include (e.g. l4d2 will not automatically include l4d inputs as well).

{{I BaseEntity|l4d2=1}}

All parameters for this template:

  • base - (Use if the entity was available before L4D2.)
  • l4d2
  • portal2
  • prel4d - (DEPRECATED 9/28/18: This parameter existed to hide DispatchEffect for games (ones before l4d) that did not have it. There's many cases of similar inputs and keyvalues that aren't in absolutely everything, and making similar parameters for all of those simply isn't worth the trouble, especially considering having to comb through every existing use of those templates. Parameter is totally removed from code and affects nothing.)
  • tf2 - AlterSetTeaminput to show TF2 specific information. Usetf2=setteam_dont_put_nofgdto remove the !FGD tag.
Note.pngNote:If you want to edit something on this template, please make sure you edit it in both places. Per-game inputs are duplicated, for complex technical reasons.

For full documentation on this family of templates, see FGD Template Prototype. Still confused on something? Ask for help before editing this template.

Note.pngNote:Some CBaseEntity inputs are not covered here. See the talk page.