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

teamnumber

From Valve Developer Community
Revision as of 01:37, 11 November 2024 by Breakin' Benny (talk | contribs) (This keyvalue is not just in CS nor TF2.)
Jump to navigation Jump to search

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 a player.

Tip.pngTip:You can test these out in game with the console command ent_fire player AddOutput "teamnumber #" where # is a number from the 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