Func respawnroom: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
		
	
| m (Blue team is called Blu in TF2, not Blue.) |  (-added class hierarchy, cleanup) | ||
| (20 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{LanguageBar}} | ||
| == | {{CD|CFuncRespawnRoom|file1=func_respawnroom.cpp}} | ||
| {{this is a|brush entity|name=func_respawnroom|game=Team Fortress 2}} | |||
| Designates a respawn room for a team. | 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 {{ent|func_nobuild}} entity. | |||
| * Forces players to drop carried {{ent|item_teamflag}} entities. | |||
| * {{ | * Forces players to drop active [[info_powerup_spawn|powerups]]. | ||
| *  | * Grants MvM bots their spawn protection. | ||
| *  | |||
| == | == Keyvalues == | ||
| {{KV Targetname}} | |||
| {{KV TFTeam}} | |||
| {{KV Trigger}} | |||
| == | == Inputs == | ||
| {{todo|Describe custom inputs.}} | |||
| {{I|SetActive}} | |||
| {{I|SetInactive}} | |||
| {{I|ToggleActive}} | |||
| {{I|RoundActivate}} | |||
| {{I Trigger}} | |||
| {{I Toggle}} | |||
| {{I EnableDisable}} | |||
| == Outputs == | |||
| {{O Trigger}} | |||
Latest revision as of 13:42, 25 September 2024

 
|  Class hierarchy | 
|---|
| CFuncRespawnRoom | 
|  func_respawnroom.cpp | 
func_respawnroom  is a   brush entity  available in  Team Fortress 2.
 Team Fortress 2.
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
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
TeamNum:
| 
 
 | 
Inputs
Todo: Describe custom inputs.
- SetActive
- SetInactive
- ToggleActive
- RoundActivate
| 
 
 
 
 | 
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
| 
 
 
 
 
 
 | 






























