Template:KV TeamNum/doc

From Valve Developer Community
< Template:KV TeamNum
Revision as of 06:41, 19 April 2021 by Orinuse (talk | contribs) (I changed my mind for putting TeamNum in Template:KV_BaseEntity, so ill use this)
(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:KV TeamNum.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Display information for theTeamNumkey in a a consistent and easy to use manner. This key exists for all entities inheriting theCBaseEntityclass, but since quite a considerable amount of entities aren't affected by it at all, or in a meaningful enough manner, the information for this key will be documented with this template.

Usage

Parameters of this must be used for all pages to display information properly. They are as follow:

  • base - Shows only information relevant to when it was initially added for the first time
  • tf2 - Include info specific to Team Fortress 2
  • l4d/l4d2 - Include info specific to Left 4 Dead seriesLeft 4 Dead series
  • css/csgo - Include info specific to Counter-Strike: Source Counter-Strike: Global Offensive

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

Examples

Show info specific to a gameLeft 4 Dead

{{KV TeamNum|l4d=1}}
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator
  • 2: Survivors Left 4 Dead
  • 3: Infected Left 4 Dead

Show information relevant ever since the key's creation

{{KV TeamNum|base=1}}
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator

Show information for all games

{{KV TeamNum}}
TeamNum:
Initial Team (TeamNum, or teamnumber Counter-Strike: Global Offensive) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator, Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2, Survivors Left 4 Dead seriesLeft 4 Dead series, Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Marines (Team-based game modes only) Black Mesa
  • 3: BLU/Robots Team Fortress 2, Infected Left 4 Dead seriesLeft 4 Dead series, Counter-Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Scientists (Team-based game modes only) Black Mesa
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD

See Also

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