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) |
SirYodaJedi (talk | contribs) |
||
Line 15: | Line 15: | ||
== Team values == | == Team values == | ||
{{confirm|Team num for players in free-for-all mode in {{hl2dm}}.}} | |||
=== Counter-Strike titles === | === Counter-Strike titles === | ||
{| class="standard-table" | {| class="standard-table" | ||
Line 38: | Line 39: | ||
|} | |} | ||
{{Tip|You can change it using <code>ent_fire</code> in {{Csgo mode|Coop}} and play for the Terrorist team}} | {{Tip|You can change it using <code>ent_fire</code> in {{Csgo mode|Coop}} and play for the Terrorist team}} | ||
{| class="standard-table" | |||
!Decimal | |||
!Description | |||
!Player [[3D Model|Model]] and [[Texture]] | |||
|- | |||
|<code>0</code> | |||
|'''Unassigned''' | |||
| | |||
|- | |||
|<code>1</code> | |||
|'''Spectators''' | |||
| | |||
|- | |||
|<code>2</code> | |||
|<span style="color:#f00">Axis</span> | |||
| | |||
|- | |||
|<code>3</code> | |||
|<span style="color:#0f0">Allies</span> | |||
| | |||
|} | |||
{{todo|Better colors}} | |||
=== Team Fortress 2 === | === Team Fortress 2 === |
Revision as of 10:07, 14 April 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]
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)

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 
Decimal | Description | Player Model and Texture |
---|---|---|
0
|
Unassigned | |
1
|
Spectators | |
2
|
Axis | |
3
|
Allies |
Todo: Better colors
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 |