Func respawnroom

From Valve Developer Community
Revision as of 18:52, 10 November 2021 by Amicdict (talk | contribs) (Update information and add {{lang}}.)
Jump to navigation Jump to search
English (en)Translate (Translate)

Template:Tf2 brush

C++ In code, it is represented by theCFuncRespawnRoomclass, defined in thefunc_respawnroom.cppfile.

Entity description

Designates a respawn room for a team.

Respawn rooms have the following properties:

  • Gives players instant respawns when they change class or loadout.
  • Blocks engineers from being able to build, similar to a func_nobuild entity.
  • Forces players to drop carried item_teamflag entities.
  • Forces players to drop active powerups.
  • Grants MvM bots their spawn protection.

Keyvalues

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



Flags

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

Inputs

Todo: Describe custom inputs.
SetActive
SetInactive
ToggleActive
RoundActivate
BaseTrigger
Toggle
Toggles this trigger between enabled and disabled states.
Enable
Enable trigger
Disable
Disable trigger
TouchTest  (in all games since Source 2007)
Triggers either the OnTouching or OnNotTouching outputs for whether anything is touching this entity.
Icon-Bug.pngBug:Sleeping prop_physics will never fire "OnTouching". Also applies to entities using prop_physics as base.  (tested in: Half-Life 2)
StartTouch  (in all games since Source 2007) !FGD
Behave as if the !caller entity had just entered the trigger volume. Accepts non-physical entities.
EndTouch  (in all games since Source 2007) !FGD
Behave as if !caller had just exited the trigger volume.
DisableAndEndTouch  (only in Source 2013 MultiplayerTeam Fortress 2 branch)
Disables this trigger and calls EndTouch on all currently-touching entities.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs