Template:I BaseEntity/doc

From Valve Developer Community
< Template:I BaseEntity
Revision as of 12:13, 27 April 2021 by Orinuse (talk | contribs) (doc page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Edit-copy.png
This is a documentation subpage for Template:I BaseEntity.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Info holder for all inputs assigned through the CBaseEntity class. Parameters are vital to display the appropiate info, because new games have added new features throughout the years. See Help:Templates for more info on named parameters.

Note.pngNote:If you want to edit something on this template, please make sure you edit it in both places. Per-game keyvalues are duplicated, for technical reasons. Also see FGD Template Prototype.
Note.pngNote:Some CBaseEntity keyvalues are not covered here. See the talk page.

Usage

All parameters for this template:

  • base- Shows only information relevant to when it was initially added for the first time
  • l4d2- Include info specific to Left 4 Dead 2 (VScripts)
  • as- Include info specific to Alien Swarm (SetLocalOrigin and SetLocalAngles)
Show Deprecated:  
  • 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.)
  • portal2- Was used to show Alien Swarm keyalues for some reason. Using this will redirect to Alien Swarm keyvalues.
  • tf2 - (DEPRECATED 28/4/2021: Was only used to showSetTeamkeyvalue's TF2 specific information. Use {{I TeamNum}} instead

, when it starts to exist...)

These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:as=1for Alien Swarm specific info. Refer to the Examples section.

Examples

Show info specific to a game Alien Swarm

This makes information relevant only to Alien Swarm be displayed.

{{I BaseEntity|as=1}}
will: 

Show info for its base

Information relevant only to this key at / before Half-Life 2: Episode Two is displayed.

{{I BaseEntity|base=1}}
will: 

Show information for all games

Shows every game information for this key that this template can display. (Except for brush related)

{{I BaseEntity}}
will: 

See Also

  • {{KV BaseEntity}}
  • {{KV BaseAnimating}}
  • {{I BaseAnimating}}