Func changeclass: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
 
(16 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{wrongtitle|title=func_changeclass}}
{{LanguageBar}}
==Entity Description==
{{CD|CChangeClassZone|nolink=1|file1=func_changeclass.cpp}}
Designates an instant class change room for a team.
{{this is a|brush entity|name=func_changeclass|game=Team Fortress 2}} It designates an instant class change room for a team.
 
{{note|{{ent|func_respawnroom}} includes this function.}}
==Availability==
This brush-based [[entity]] is exclusive to Team Fortress 2.


==Keyvalues==
==Keyvalues==
* {{kv targetname}}
{{KV Targetname}}
* {{kv tfteam}}
{{KV StartDisabled}}
* {{kv enabledisable}}
{{KV TeamNum|tf2=1}}
 
==Flags==
This entity doesn't have any flags.


==Inputs==
==Inputs==
* {{i targetname}}
{{I TFTeam}}
* {{i tfteam}}
{{I EnableDisable}}
* {{I EnableDisable}}
{{I Toggle}}
* '''Toggle'''
: Toggle the enabled/disabled status of this entity.
 
==Outputs==
* {{o targetname}}
 
[[Category:Team Fortress 2 Entities]]

Latest revision as of 07:39, 4 June 2025

English (en)Translate (Translate)
C++ Class hierarchy
CChangeClassZone
CBaseTrigger
CBaseToggle
CBaseEntity
C++ func_changeclass.cpp

func_changeclass is a brush entity available in Team Fortress 2 Team Fortress 2. It designates an instant class change room for a team.

Note.pngNote:func_respawnroom includes this function.

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

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD

Inputs

SetTeam <integerRedirectInput/integer>
Changes the entity's team.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.