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

teamnumber

From Valve Developer Community
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. 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