Team: Difference between revisions
Jump to navigation
Jump to search
Note:All these Inputs/Keyvalues use integers
Tip:You can change it using
Co-op Strike and play for the Terrorist team
Warning:Setting this keyvalue to below 0 or above 3 will crash the game.
SirYodaJedi (talk | contribs) (→Changing team: kinda duh, but still worth noting) |
No edit summary |
||
| Line 17: | Line 17: | ||
== Team values == | == Team values == | ||
=== Counter-Strike titles === | === Counter-Strike titles === | ||
{| class="standard-table" | {| class="standard-table" | ||
| Line 43: | Line 42: | ||
=== Half-Life 2: Deathmatch === | === Half-Life 2: Deathmatch === | ||
{| class="standard-table" | {| class="standard-table" | ||
! Decimal !! Description | ! Decimal !! Description | ||
|- | |- | ||
| Line 60: | Line 59: | ||
=== Day of Defeat: Source === | === Day of Defeat: Source === | ||
{| class="standard-table" | {| class="standard-table" | ||
!Decimal | !Decimal | ||
!Description | !Description | ||
|- | |- | ||
|<code>0</code> | |<code>0</code> | ||
| <span style="color:#ddd">{{dods team|Neutral|1}}</span>, or Unassigned | | <span style="color:#ddd">{{dods team|Neutral|1}}</span>, or Unassigned | ||
|- | |- | ||
|<code>1</code> | |<code>1</code> | ||
| Line 79: | Line 78: | ||
=== Team Fortress 2 === | === Team Fortress 2 === | ||
{{warning|Setting this keyvalue to below 0 or above 3 will crash the game.}} | {{warning|Setting this keyvalue to below 0 or above 3 will crash the game.}} | ||
{| class="standard-table" | {| class="standard-table" | ||
!Decimal | !Decimal | ||
!Description | !Description | ||
!Player [[3D | !Player [[3D model|Model]] and [[Texture]] | ||
|- | |- | ||
|<code>0</code> | |<code>0</code> | ||
|'''Unassigned''' | |'''Unassigned''' | ||
|Invisible or <span style="color:#B0494A">RED</span> style if a class was selected then teamnumber changed through | |Invisible or <span style="color:#B0494A">RED</span> style if a class was selected then teamnumber changed through AddOutput | ||
|- | |- | ||
|<code>1</code> | |<code>1</code> | ||
|'''Spectators''' | |'''Spectators''' | ||
|Invisible or <span style="color:#B0494A">RED</span> style without cosmetics if a class was selected then teamnumber changed through | |Invisible or <span style="color:#B0494A">RED</span> style without cosmetics if a class was selected then teamnumber changed through AddOutput | ||
|- | |- | ||
|<code>2</code> | |<code>2</code> | ||
| Line 102: | Line 101: | ||
=== {{l4ds|4}} === | === {{l4ds|4}} === | ||
{| class="standard-table" | {| class="standard-table" | ||
!Decimal | !Decimal | ||
!Description | !Description | ||
!Player [[3D | !Player [[3D model|Model]] and [[Texture]] | ||
|- | |- | ||
|<code>0</code> | |<code>0</code> | ||
| Line 127: | Line 126: | ||
| Survivors spawned using {{ent|info_l4d1_survivor_spawn}} | | Survivors spawned using {{ent|info_l4d1_survivor_spawn}} | ||
|} | |} | ||
Latest revision as of 15:48, 29 November 2025
Every entity has a team property but it's mostly relevant for players and NPCs. It can affect appearances or other behaviors of players. Material proxies can be used to render a texture only for some teams. (List of material proxies)
Below are examples of other entities where team alignment affects their behaviour:
- func_simpleladder in

determines which team can climb it - other examples[Todo]
The contents flags CONTENTS_TEAM1 and CONTENTS_TEAM2 can be used by game code to filter whether brushes should be solid to different teams. This is usually done via entity code, but can also be applied using %CompileTeam (in all games since
) (which can be applied for older games using a modified VBSP).
Changing team
- SetTeam input - available to all entities
- teamnumber keyvalue (in all games since
Alien Swarm) and (also in
Team Fortress 2 branch) - TeamNum input/keyvalue - sets so called "initial" team, not the team itself, which sets the entity's actual team when the entity is spawned (even when loading from save file)
Note:If an entity doesn't use m_iTeamNumto dictate team, then SetTeam cannot be used to set the team, unless it overrides the input. Examples of where this occurs include filter_activator_team and func_team_wall.
Team values
Counter-Strike titles
| Decimal | Description | Player Model |
|---|---|---|
1
|
Spectator | Invisible |
2
|
Terrorists | Terrorist map default, or chosen agent |
3
|
Counter-Terrorists | Counter-Terrorist map default, or chosen agent |
| Other | Undefined | Terrorist map default |
ent_fire in Half-Life 2: Deathmatch
| Decimal | Description |
|---|---|
0
|
Unassigned |
1
|
Spectators |
2
|
Combine |
3
|
Rebels |
Day of Defeat: Source
| Decimal | Description |
|---|---|
0
|
|
1
|
Spectators |
2
|
|
3
|
Team Fortress 2
| Decimal | Description | Player Model and Texture |
|---|---|---|
0
|
Unassigned | Invisible or RED style if a class was selected then teamnumber changed through AddOutput |
1
|
Spectators | Invisible or RED style without cosmetics if a class was selected then teamnumber changed through AddOutput |
2
|
RED | RED style |
3
|
BLU | BLU style |

Left 4 Dead series
| Decimal | Description | Player Model and Texture |
|---|---|---|
0
|
Unassigned | |
1
|
Spectators | |
2
|
Survivor | |
3
|
Infected | |
4
|
L4D1_Survivor (only in |
Survivors spawned using info_l4d1_survivor_spawn |