func_brush
Jump to navigation
Jump to search

This article needs more
links to other articles to help
integrate it into the encyclopedia. Please help improve this article by adding links
that are relevant to the context within the existing text.
January 2024



January 2024
![]() |
---|
CFuncBrush |
![]() |
func_brush
is an e2 available in all Source games. It's a generic brush entity with various features.
It combines the functions of func_wall, func_illusionary and func_wall_toggle from Goldsource. The older entities can still be used, for an insignificant amount of memory saved.






If the game has round restart mechanics this entity may not behave as expected:
|


- Todo: Test other games
Keyvalues
- Solidity (Solidity) <choices>
- Used to control the solidity/collision of these brushes.
- 0: Toggle - The solidity can be toggled together with its visibility.
- 1: Never Solid
- 2: Always Solid
- Solid BSP (solidbsp) <boolean>
- Set this to BSP if the player seems to rotate oddly relative to the surface.
- NPC class excluded from collisions (excludednpc) <classname>
- If an NPC classname (i.e. npc_zombie) is specified here, NPCs of that type won't collide with these brushes.
- Invert NPC class exclusion (invert_exclusion) <boolean>
- If set, then the excluded NPC class will consider this brush solid, and all other NPC classes will consider it non-solid.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input). - {{Bug|Start Disabled doesn't seem to work in
Workaround:Use logic_auto with an output to Disable the func_brush
Tip:If Solidity is Toggle, disabling will also make the entity non-solid.

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.


Flags
- Ignore player +USE - Entity will ignore all Use inputs, including ones from the player. : [2]
Inputs
- SetExcluded
- Change the NPC class that does not collide with the brush.
- SetInvert
- Whether to reverse the NPC class exclusion rule.
- Toggle !FGD
- Toggles the enabled state of the entity
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
- SetDamageFilter <targetname >
- Sets a filter for this entity for when it receives damage.
- EnableDamageForces
- Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
- DisableDamageForces
- Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place