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

Game player team: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Availability: class&file)
(-added class hierarchy, logical ent)
 
(11 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{wrongtitle|title=game_player_team}}
{{CD|CGamePlayerTeam|file1=1}}
{{this is a|logical entity|name=game_player_team}} It changes the team of the player who activates it.


==Entity Description==
== Keyvalues ==
An entity that changes the team of the player who activates it.  
{{KV Targetname}}
{{KV|game_team_master to use|intn=target|string}}
{{KV|Master (Obsolete)|intn=master|string|Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.}}


==Availability==
== Flags ==
{{in game|point}} {{game-base}}
{{fl|1|Remove On fire}}
{{in code|class=class_c_game_player_team.html CGamePlayerTeam|file=maprules_8cpp-source.html maprules.cpp}}
{{fl|2|Kill Player}}
 
{{fl|4|Gib Player}}
==Keyvalues==
*{{kv targetname}}
*'''target'''
:<string> Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.
 
==Flags==
*1 : Remove On fire
*2 : Kill Player
*4 : Gib Player
 
==Inputs==
*{{i targetname}}
 
==Outputs==
*{{o targetname}}
 
[[Category:Entities]]

Latest revision as of 05:19, 29 April 2025

C++ Class hierarchy
CGamePlayerTeam
CRulePointEntity
CRuleEntity
CBaseEntity
C++ maprules.cpp

game_player_team is a logical entity available in all Source Source games. It changes the team of the player who activates it.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

game_team_master to use (target) <string>
Master (Obsolete) (master) <string>
Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.

Flags

Remove On fire : [1]
Kill Player : [2]
Gib Player : [4]