This article's documentation is for anything that uses the Source engine. Click here for more information.

Team: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added Team Fortress 2 values)
Line 1: Line 1:
{{stub}}
{{stub}}
''teamnumber'' is a [[keyvalue]], that avalible in {{csgo|4}}. It defines the team of [[player]].
{{This is a|[[keyvalue]]|name=teamnumber|engine=Source|game=csgo|game1=tf2}}
It defines the team of [[player]].


{{tip|You can test these out in game with console command <code>ent_fire player AddOutput "teamnumber #"</code> where ''#'' is a number from table below.}}
{{tip|You can test these out in game with console command <code>ent_fire player AddOutput "teamnumber #"</code> where ''#'' is a number from table below.}}


== Various teamnumber in Valve Source Engine titles ==
== Various teamnumber values in Counter-Strike titles ==


{| class="standard-table"   
{| class="standard-table"   
Line 28: Line 29:
|}
|}
{{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 ==
{{warning|Setting this keyvalue to below 0 or above 3 will crash the game.}}
{| class="standard-table" 
!Decimal
!Description
!Player [[3D Model|Model]] and [[Texture]]
|-
|<code>0</code>
|'''Unassigned'''
|Invisible or <span style="color:#B0494A">RED</span> style if a class was selected then teamnumber changed through addoutput
|-
|<code>1</code>
|'''Spectators'''
|Invisible or <span style="color:#B0494A">RED</span> style without cosmetics if a class was selected then teamnumber changed through addoutput
|-
|<code>2</code>
|<span style="color:#B0494A">RED</span>
|<span style="color:#B0494A">RED</span> style
|-
|<code>3</code>
|<span style="color:#4F758F">BLU</span>
|<span style="color:#4F758F">BLU</span> style
|}

Revision as of 00:14, 11 November 2024

Stub

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

teamnumber is a keyvalue available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive and Team Fortress 2 Team Fortress 2.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{csgo}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Counter-Strike: Global Offensive.
  • The {{{game1}}} parameter is inconsistent with the name defined by the {{tf2}} template. This can most likely be fixed by setting the value of the {{{game1}}} parameter to Team Fortress 2.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

It defines the team of player.

Tip.pngTip:You can test these out in game with console command ent_fire player AddOutput "teamnumber #" where # is a number from table below.

Various teamnumber values in 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

Various teamnumber values in 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