From Valve Developer Community
Jump to navigation
Jump to search
|
|
Line 6: |
Line 6: |
| :*1: Spectator | | :*1: Spectator |
| }} | | }} |
| |<!-- ELSE IF: BMS -->{{#if:{{{bms|}}}| | | |<!-- ELSE IF: BMS -->{{#if:{{{BMS|}}}| |
| {{KV|Initial Team|choices|intn=team|Team | | {{KV|Initial Team|choices|intn=team|Team |
| :*0: None | | :*0: None |
Revision as of 09:18, 11 January 2024

Available doc translations
…
English
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: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
/
iteration engine)
tf2
- Set template KVs specific to 
l4d
- Set template KVs specific to 
l4d2
- Set template KVs specific to 
css
- Set template KVs specific to 
csgo
- Set template KVs specific to 
Refer to the Examples section for samples.
Examples
Show info specific to a game 
This makes information specific to
be displayed.
{{KV TeamNum|l4d=1}}
{{ScrollBox|title=TeamNum|
- Initial Team (TeamNum) <choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator
- 2: Survivors

- 3: Infected

Show info for its base
Information relevant only to base engine are displayed. (
/
)
{{KV TeamNum|base=1}}
{{ScrollBox|title=TeamNum|
- Initial Team (TeamNum) <choices>
- Which Team the entity belongs / is assigned to on spawn
Show information for all games
Shows every game information for this key that this template can display.
{{KV TeamNum}}
will:
{{ScrollBox|title=TeamNum|
- Initial Team (TeamNum, or teamnumber
) <choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator
- 2: Red
, Survivors 
, Terrorists
, Marines (Team-based game modes only) 
- 3: Blue
, Infected 
, Counter-Terrorists
, Scientists (Team-based game modes only) 
See also
{{KV BaseEntity}}
{{I BaseEntity}}