Func team wall: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
{{PreservedEnt}}
{{PreservedEnt}}


==Key Values==
== Key Values ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Team to block|intn=blockteam|choices|The team that will be blocked by the wall.}}  
{{KV|Team to block|intn=blockteam|choices|The team that will be blocked by the wall.}}  
Line 25: Line 25:
{{tip|To use the mins and maxs KVs from {{hammer|2}}, texture the entity with {{file|tools/toolsorigin|vmt}}. This will remove the brush and assign the {{code|origin}} KV to the center of the brush, saving [[brushside]]s.}}
{{tip|To use the mins and maxs KVs from {{hammer|2}}, texture the entity with {{file|tools/toolsorigin|vmt}}. This will remove the brush and assign the {{code|origin}} KV to the center of the brush, saving [[brushside]]s.}}


==Inputs ==
== Inputs ==
{{I Targetname}}
{{expand|title=CBaseEntity|
{{I BaseEntity|base=1}}
}}


==See also==
== Outputs ==
{{expand|title=CBaseEntity|
{{O BaseEntity}}
}}
 
== See also ==
* [[func_teamblocker]] - Similar entity that serves the same function
* [[func_teamblocker]] - Similar entity that serves the same function
* [[func_respawnroomvisualizer]] - Analogous entity in {{tf2|2}}
* [[func_respawnroomvisualizer]] - Analogous entity in {{tf2|2}}

Revision as of 21:58, 2 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CFuncTeamWall
CBaseEntity
C++ dod/dod_gamerules.cpp

func_team_wall is a brush entity available in Day of Defeat: Source Day of Defeat: Source.

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_teamblocker, it is able to be loaded via an ENT file, only shows a warning when touching this entity as the enemy team if the warn KV is enabled, and is preserved between rounds.

Icon-Important.pngImportant:This is a preserved entity in Day of Defeat: SourceTeam Fortress 2.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Key Values

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 to block (blockteam) <choices>
The team that will be blocked by the wall.
Value Description
0 Neither
2 Allies
3 Axis
Show warning (warn) <boolean> !FGD
Show warning ("You cannot go this way.") when touching this entity as the enemy team.
mins (mins) <vector> !FGD
The uppermost and northernmost point of the bounding box; used instead of bmodel geometry if present. Typically used if this entity defined via an ENT file).
maxs (maxs) <vector> !FGD
The bottommost and southernmost point of the bounding box; used instead of bmodel geometry if present. Typically used if this entity defined via an ENT file).
Tip.pngTip:To use the mins and maxs KVs from Hammer Hammer, texture the entity with 🖿tools/toolsorigin.vmt. This will remove the brush and assign the origin KV to the center of the brush, saving brushsides.

Inputs

CBaseEntity


Outputs

CBaseEntity


See also