Cs team manager: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
{{This is a|logical entity|name=cs_team_manager|game=Counter-Strike series|game1=Left 4 Dead series}} It is automatically created for each team when the map loads. (4 are created in {{l4d}}, and 5 in {{l4d2}}). It stores names and score of each team and list of players that belong to that team
{{This is a|logical entity|name=cs_team_manager|game=Counter-Strike series|game1=Left 4 Dead series}} It is automatically created for each team when the map loads. (4 are created in {{l4d}}, and 5 in {{l4d2}}). It stores names and score of each team and list of players that belong to that team


Team names in Counter-Strike series
Team names in Counter-Strike source (probably same in csgo{{confirm}})
*0: "Unassigned"
*0: "Unassigned"
*1: "Spectator"
*1: "Spectator"
Line 19: Line 19:
*4: "L4D1_Survivor" {{l4d2|only}}
*4: "L4D1_Survivor" {{l4d2|only}}


{{warning|{{l4d2}} vscript <code>NetProps.GetPropString</code> doesn't read m_szTeamname netprop properly and may crash the game}}
{{warning|Killing this entity crashes the game.}}
{{warning|Killing this entity crashes the game.}}



Revision as of 05:10, 9 May 2025

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CCSTeam
CTeam
CBaseEntity
C++ cs_team.cpp
C++ Class hierarchy (client)
C_CSTeam
C_Team
C_BaseEntity
C++ c_cs_team.cpp

cs_team_manager is a logical entity available in Counter-Strike seriesCounter-Strike series Counter-Strike series and Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It is automatically created for each team when the map loads. (4 are created in Left 4 Dead, and 5 in Left 4 Dead 2). It stores names and score of each team and list of players that belong to that team

Team names in Counter-Strike source (probably same in csgo[confirm])

  • 0: "Unassigned"
  • 1: "Spectator"
  • 2: "TERRORIST"
  • 3: "CT"

Team names in Left 4 Dead series

  • 0: "Unassigned"
  • 1: "Spectator"
  • 2: "Survivor"
  • 3: "Infected"
  • 4: "L4D1_Survivor" (only in Left 4 Dead 2)
Warning.pngWarning:Left 4 Dead 2 vscript NetProps.GetPropString doesn't read m_szTeamname netprop properly and may crash the game
Warning.pngWarning:Killing this entity crashes the game.

See also