Func changeclass: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Unicodifying, replaced: {{language subpage → {{langsp)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|{{PAGENAME}}}}{{this is a|e2|name=func_changeclass|game=Team Fortress 2}} It designates an instant class change room for a team.
{{LanguageBar}}
{{CD|CChangeClassZone|nolink=1|file1=func_changeclass.cpp}}
{{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.}}
{{note|{{ent|func_respawnroom}} includes this function.}}


==Keyvalues==
==Keyvalues==
{{KV BaseEntity|brush=1|base=1}}
{{KV Targetname}}
{{KV EnableDisable}}
{{KV StartDisabled}}
{{KV TeamNum|tf2=1}}
{{KV TeamNum|tf2=1}}


==Inputs==
==Inputs==
{{I BaseEntity|base=1|noscroll=0}}
{{I TFTeam}}
{{I TFTeam}}
{{I EnableDisable}}
{{I EnableDisable}}
{{I Toggle}}
{{I Toggle}}
==Outputs==
{{O BaseEntity}}

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.