Template:KV TeamNum: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(My first time, no idea for now if it'll work or no.)
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<onlyinclude><includeonly>{{ScrollBox|title=TeamNum|
<onlyinclude><includeonly>{{ScrollBox|title=TeamNum|
<!-- IF: BASE -->{{#if:{{{base|}}}|
<!-- IF: BASE -->{{#if:{{{base|}}}|
{{KV|Initial Team|choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
{{KV|Initial Team|integer choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator
:*1: Spectator
}}
}}
|<!-- ELSE IF: CSGO -->{{#if:{{{csgo|}}}|
|<!-- ELSE IF: CSGO -->{{#if:{{{csgo|}}}|
{{KV|Initial Team|choices|intn=[[teamnumber]] {{csgo}} |Which Team the entity belongs / is assigned to on spawn
{{KV|Initial Team|integer choices|intn=[[teamnumber]] {{csgo}} |Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator
:*1: Spectator
Line 14: Line 14:
}}
}}
|<!-- ELSE IF: TF2 -->{{#if:{{{tf2|}}}|
|<!-- ELSE IF: TF2 -->{{#if:{{{tf2|}}}|
{{KV|Initial Team|choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
{{KV|Initial Team|integer choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator/Halloween Souls {{tf2}}
:*1: Spectator/Halloween Souls {{tf2}}
Line 22: Line 22:
}}
}}
|<!-- ELSE IF: L4D -->{{#if:{{{l4d|}}}|
|<!-- ELSE IF: L4D -->{{#if:{{{l4d|}}}|
{{KV|Initial Team|choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
{{KV|Initial Team|integer choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator
:*1: Spectator
Line 29: Line 29:
}}
}}
|<!-- ELSE IF: L4D2 -->{{#if:{{{l4d2|}}}|
|<!-- ELSE IF: L4D2 -->{{#if:{{{l4d2|}}}|
{{KV|Initial Team|choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
{{KV|Initial Team|integer choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator
:*1: Spectator
Line 36: Line 36:
}}
}}
|<!-- ELSE IF: CSS -->{{#if:{{{css|}}}|
|<!-- ELSE IF: CSS -->{{#if:{{{css|}}}|
{{KV|Initial Team|choices|intn=TeamNum|Team.
{{KV|Initial Team|integer choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
:*0: None
:*2: Marines (Team-based game modes only) {{bms}}
:*3: Scientists (Team-based game modes only) {{bms}}
}}
|<!-- ELSE IF: BMS -->{{#if:{{{bms|}}}|
{{KV|Initial Team|choices|intn=TeamNum|Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator
:*1: Spectator
Line 49: Line 43:
}}
}}
|<!-- ELSE: -->
|<!-- ELSE: -->
{{KV|Initial Team|choices|intn=TeamNum, or teamnumber {{csgo}} |Which Team the entity belongs / is assigned to on spawn
{{KV|Initial Team|integer choices|intn=TeamNum, or teamnumber {{csgo}} |Which Team the entity belongs / is assigned to on spawn
:*0: None
:*0: None
:*1: Spectator
:*1: Spectator, Spectator/Halloween Souls {{tf2}}
:*2: Red {{tf2}}, Survivors {{l4ds}}, Terrorists {{css}} {{csgo}}
:*2: RED {{tf2}}, Survivors {{l4ds}}, Terrorists {{css}} {{csgo}}, Marines (Team-based game modes only) {{bms}}
:*3: Blue {{tf2}}, Infected {{l4ds}}, Counter-Terrorists {{css}} {{csgo}}
:*3: BLU/Robots {{tf2}}, Infected {{l4ds}}, Counter-Terrorists {{css}} {{csgo}}, Scientists (Team-based game modes only) {{bms}}
:*5: Halloween Bosses {{tf2|only}} {{!fgd}}
}}
}}
| }}}}}}}}}}}}
| }}}}}}}}}}}}
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>
{{documentation}}
{{doc}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->

Latest revision as of 12:01, 8 October 2025


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
Page history
Main article: teamnumber

Display information for the TeamNum or teamnumber key in a a consistent and easy to use manner. This key exists for all entities inheriting the CBaseEntity class, 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

These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:tf2=1. Only one game parameter can be used at once.

{{KV TeamNum|tf2=1}}
Note.pngNote:Entities with this template should generally have the following input added below: {{I|SetTeam|Sets which team to be aligned with|param=int}}.

Parameters

If you leave the parameter field empty (using no arguments), the template will automatically fallback to displaying information from ALL games.

All parameters for this template:

  • base- No game specific information are displayed, and base engine features only. (The Source 2013 / Source 2013 Multiplayer iteration engine)
  • tf2 - Set template KVs specific to Team Fortress 2
  • l4d - Set template KVs specific to Left 4 Dead
  • l4d2 - Set template KVs specific to Left 4 Dead 2
  • css - Set template KVs specific to Counter-Strike: Source
  • csgo - Set template KVs specific to Counter-Strike: Global Offensive


Refer to the Examples section for samples.

Examples

Show info specific to a game Left 4 Dead

This makes information specific to Left 4 Dead be displayed.

{{KV TeamNum|l4d=1}}
TeamNum:
Initial Team (TeamNum) <integer 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 info for its base

Information relevant only to base engine are displayed. (Source 2013 / Source 2013 Multiplayer)

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

Show information for all games

Shows every game information for this key that this template can display.

{{KV TeamNum}}
will:
TeamNum:
Initial Team (TeamNum, or teamnumber Counter-Strike: Global Offensive) <integer 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}}