func_forcefield

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

Class hierarchy
???
CBaseEntity

func_forcefield is a brush entity available in Team Fortress 2 Team Fortress 2. Its one of the few brush entities to have team filtered collisions, alongside func_respawnroomvisualizer. All teams but the team this brush entity belongs to, are blocked by it. This entity (func_forcefield) remains visible to both teams regardless of distance.

Despite the render quirk, the entity still finds moments with its team filtered collision keyvalue, often when users edit entities of an already compiled map. Some methods involved are lump file patching or SourceMod plugins.

Keyvalues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs


Name (targetname) <string>
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

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

Inputs

EnableDisable:

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

See also