Func teamblocker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
It creates an invisible wall that players of the specified team collide with. It primarily is used to block teams from entering their opposing team's spawn.
It creates an invisible wall that players of the specified team collide with. It primarily is used to block teams from entering their opposing team's spawn.


Unlike {{ent|func_team_wall}}, it cannot be loaded via an [[ENT]] file, always shows a warning when touching this entity as the enemy team, and is [[Preserved entities|reset]] between rounds.
Unlike {{ent|func_team_wall}}, it cannot be loaded via an [[ENT]] file, can have its team value changed with an input, and is [[Preserved entities|reset]] between rounds.


==Key Values==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Team number (int)|intn=TeamNum|choices|The team that will be blocked. (Default is "0")}}
{{KV|Team number (int)|intn=TeamNum|choices|The team that will be blocked. (Default is "0")}}
Line 18: Line 18:
| 3 || {{dods}} Axis / {{insurgency}} Insurgents
| 3 || {{dods}} Axis / {{insurgency}} Insurgents
|}
|}
== Flags ==
{{fl|2|Don't show hint when touched|Don't warn players when they "cannot go this way"}}
== Inputs ==
{{I SetTeam}}


==See also==
==See also==
* {{ent|func_team_wall}} - Similar entity that serves the same function
* {{ent|func_team_wall}} - Similar entity that serves the same function
* {{ent|func_respawnroomvisualizer}} - Analogous entity in {{tf2|2}}
* {{ent|func_respawnroomvisualizer}} - Analogous entity in {{tf2|2}}

Revision as of 07:46, 24 March 2025

C++ Class hierarchy
CFuncNewTeamWall
CFuncBrush
CBaseEntity
C++ dod/dod_gamerules.cpp

func_teamblocker is a brush entity available in Day of Defeat: Source Day of Defeat: Source and Insurgency Insurgency.

It creates an invisible wall that players of the specified team collide with. It primarily is used to block teams from entering their opposing team's spawn.

Unlike func_team_wall, it cannot be loaded via an ENT file, can have its team value changed with an input, and is reset between rounds.

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

Team number (int) (TeamNum) <choices>
The team that will be blocked. (Default is "0")
Value Description
0 Neither !FGD
2 Day of Defeat: Source Allies / Insurgency Security
3 Day of Defeat: Source Axis / Insurgency Insurgents

Flags

Don't show hint when touched : [2]
Don't warn players when they "cannot go this way"

Inputs

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

See also