Func teamblocker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{dods brush|func_teamblocker}} Walls that players of a certain team are unable to pass through. ===Keyvalues=== * {{KV Targetname}} * '''Team number (int)''' : <choices> The t...")
 
mNo edit summary
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{dods brush|func_teamblocker}}
{{CD|CFuncNewTeamWall|file1=dod/dod_gamerules.cpp|base=CFuncBrush}}{{CD|C_FuncNewTeamWall|client=1|file1=dod/dod_gamerules.cpp|base=C_BaseEntity}}
Walls that players of a certain team are unable to pass through.
{{this is a|brush entity|name=func_teamblocker|game=Day of Defeat: Source|game1=Insurgency|game2=Day of Infamy}}


===Keyvalues===
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 is always invisible, and should be textured with a {{codelink|SURF_NODRAW}} material (it cannot be made visible with {{cmd|showblockerwalls}}, {{cmd|showtriggers}}, or {{cmd|r_drawclipbrushes}}).
* {{KV Targetname}}
 
* '''Team number (int)'''
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.
: <choices> The team that will be blocked. (Default is "0")
{{tip|To preserve this entity between rounds, use [[AddOutput]] to change its [[classname]] to {{mono|func_team_wall}} after it spawns. This is safe in this instance, as the game does not check for entities with either classname except for preserving {{mono|func_team_wall}}. }}
 
== Keyvalues ==
{{KV Targetname}}
{{KV|Team number (int)|intn=TeamNum|choices|The [[team]] that will be blocked. (Default is "0")}}
:{| class=standard-table
:{| class=standard-table
!| Value || Description
!| Value || Description
|-
|-
| 2 || Allies
| 0 || Neither {{!fgd}}
|-
| 2 || {{dods}} Allies / {{insurgency}} Security
|-
|-
| 3 || Axis
| 3 || {{dods}} Axis / {{insurgency}} Insurgents
|}
|}
:{{confirm|Does {{doi}} use the same team values as {{dods}}, or are Axis and Allies flipflopped?}}
== Flags ==
{{fl|2|Don't show hint when touched|Don't warn players when they "cannot go this way"}}
== Inputs ==
{{I SetTeam}}
==See also==
* {{ent|func_team_wall}} - Similar entity that serves the same function
* {{ent|func_respawnroomvisualizer}} - Analogous entity in {{tf2|2}}

Latest revision as of 09:42, 5 May 2025

C++ Class hierarchy
CFuncNewTeamWall
CFuncBrush
CBaseEntity
C++ dod/dod_gamerules.cpp
C++ Class hierarchy (client)
C_FuncNewTeamWall
C_BaseEntity
C++ dod/dod_gamerules.cpp

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

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 is always invisible, and should be textured with a SURF_NODRAW material (it cannot be made visible with showblockerwalls, showtriggers, or r_drawclipbrushes).

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.

Tip.pngTip:To preserve this entity between rounds, use AddOutput to change its classname to func_team_wall after it spawns. This is safe in this instance, as the game does not check for entities with either classname except for preserving func_team_wall.

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
Confirm:Does Day of Infamy use the same team values as Day of Defeat: Source, or are Axis and Allies flipflopped?

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