Team: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(This keyvalue is not just in CS nor TF2.)
(teamnumber not really needed when SetTeam exists)
Line 1: Line 1:
{{stub}}
{{stub}}
{{This is a|[[keyvalue]]|name=teamnumber|engine=Source|game=csgo|game1=tf2}}
Every entity has a team property but it's mostly relevant for [[player]]s or npcs. It can affect appearance or other behavior of player. Material proxies can be used to render a texture only for some team [[list of material proxies]].
It defines the team of a [[player]].


{{tip|You can test these out in game with the console command <code>ent_fire player AddOutput "teamnumber #"</code> where ''#'' is a number from the table below.}}
Example of other entities where team affects their behaviour:
* {{ent|func_simpleladder}} in {{l4ds}} team determines who can climb it
* other examples{{todo}}
{{toc-right}}


== Various teamnumber values in Counter-Strike titles ==
 
== Changing team ==
* '''SetTeam''' input - available to all entities that takes integer number as parameter
* '''teamnumber''' keyvalue {{since|{{asw|4}}}} and {{also|{{tf2branch}}}}
* '''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 ===
{| class="standard-table"   
{| class="standard-table"   
!Decimal
!Decimal
Line 29: Line 38:
{{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}}


== Various teamnumber values in 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"   
Line 52: Line 61:
|<span style="color:#4F758F">BLU</span> style
|<span style="color:#4F758F">BLU</span> style
|}
|}
=== {{l4ds|4}} ===
{| class="standard-table" 
!Decimal
!Description
!Player [[3D Model|Model]] and [[Texture]]
|-
|<code>0</code>
|'''Unassigned'''
|
|-
|<code>1</code>
|'''Spectators'''
|
|-
|<code>2</code>
|'''Survivor'''
|
|-
|<code>3</code>
|'''Infected'''
|
|-
|<code>4</code>
|'''L4D1_Survivor {{l4d2|only}}'''
| Survivors spawned using {{ent|info_l4d1_survivor_spawn}}
|}
== See also ==

Revision as of 04:26, 26 March 2025

Stub

This article or section is a stub. You can help by expanding it.

Every entity has a team property but it's mostly relevant for players or npcs. It can affect appearance or other behavior of player. Material proxies can be used to render a texture only for some team list of material proxies.

Example of other entities where team affects their behaviour:


Changing team

  • SetTeam input - available to all entities that takes integer number as parameter
  • teamnumber keyvalue (in all games since Alien Swarm 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 Terrorist Terrorist map default, or choosen agent
3 Counter-Terrorist Counter-Terrorist map default, or choosen agent
Other Undefined Terrorist map default
Tip.pngTip:You can change it using ent_fire in CS:GO Co-op Strike Co-op Strike and play for the Terrorist team

Team Fortress 2

Warning.pngWarning:Setting this keyvalue to below 0 or above 3 will crash the game.
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 seriesLeft 4 Dead series Left 4 Dead series

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

See also