Team: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
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]].
Every entity has a team property but it's mostly relevant for [[player]]s and NPCs. It can affect appearances or other behaviors of players. Material proxies can be used to render a texture only for some teams. ([[List of material proxies]])


Example of other entities where team affects their behaviour:
Below are examples of other entities where team alignment affects their behaviour:
* {{ent|func_simpleladder}} in {{l4ds}} team determines who can climb it
* {{ent|func_simpleladder}} in {{l4ds}} determines which team can climb it
* other examples{{todo}}
* other examples{{todo}}
{{toc-right}}
{{toc-right}}
Line 11: Line 11:
* '''SetTeam''' input - available to all entities
* '''SetTeam''' input - available to all entities
* '''teamnumber''' keyvalue {{since|{{asw|4}}}} and {{also|{{tf2branch|4}}}}
* '''teamnumber''' keyvalue {{since|{{asw|4}}}} and {{also|{{tf2branch|4}}}}
* '''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)
* '''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)
{{note|All these Inputs/Keyvalues use integers}}
{{note|All these Inputs/Keyvalues use integers}}


== Team values ==
== Team values ==
=== Counter-Strike titles ===
=== Counter-Strike titles ===
{| class="standard-table"
{| class="standard-table"
!Decimal
!Decimal
!Description
!Description
Line 26: Line 26:
|-
|-
|<code>2</code>
|<code>2</code>
|<span style="color:gold">Terrorist</span>
|<span style="color:gold">Terrorists</span>
|<span style="color:gold">Terrorist</span> map default, or choosen agent
|<span style="color:gold">Terrorist</span> map default, or chosen agent
|-
|-
|<code>3</code>
|<code>3</code>
|<span style="color:#057aff">Counter-Terrorist</span>
|<span style="color:#057aff">Counter-Terrorists</span>
|<span style="color:#057aff">Counter-Terrorist</span> map default, or choosen agent
|<span style="color:#057aff">Counter-Terrorist</span> map default, or chosen agent
|-
|-
|Other
|Other

Revision as of 04:40, 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 and NPCs. It can affect appearances or other behaviors of players. Material proxies can be used to render a texture only for some teams. (List of material proxies)

Below are examples of other entities where team alignment affects their behaviour:


Changing team

  • SetTeam input - available to all entities
  • teamnumber keyvalue (in all games since Alien Swarm Alien Swarm) and (also in Team Fortress 2 branch 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)
Note.pngNote:All these Inputs/Keyvalues use integers

Team values

Counter-Strike titles

Decimal Description Player Model
1 Spectator Invisible
2 Terrorists Terrorist map default, or chosen agent
3 Counter-Terrorists Counter-Terrorist map default, or chosen 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