CFuncBrush
Jump to navigation
Jump to search
Code classes:
CFuncBrush
CBaseEntity
(all ents)
CFuncBrush
is a code class in all Source games.
Classnames:
func_brush
- A generic brush entity which can do many things without extra behaviors from other brush entities interfering.
Flags[edit | edit source]
- 2: Ignore player +USE - Entity will ignore all Use inputs, including ones from the player. To do: Why?
Keyvalues[edit | edit source]
- 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)
<choices>
- How the engine processes this entity's solidity. Try changing this to BSP if players move oddly while touching the brush (if it moves).
- NPC class excluded from collisions
(excludednpc)
<string>
- If an NPC classname (i.e.
npc_zombie
) is specified here, NPCs of that type won't collide with these brushes. In Episodic, the targetname of an NPC can also be used. - Invert NPC class exclusion
(invert_exclusion)
<bool>
- 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>
- Makes the brush start invisible. If Solidity is Toggle, the brush will also be non-solid.
- Shadows (Not in FGD)
(vrad_brush_cast_shadows)
<choices>
- Determines if this entity will cast lightmap shadows.
- 0: No shadows
- 1: Cast shadows
- Render Mode
(rendermode)
<choices>
- A special rendering mode to use on this entity.
- Render Amount/Transparency
(renderamt)
<integer>
- Transparency amount, requires a Render Mode
(rendermode)
other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B)
(rendercolor)
<color255>
- Color channel filter to add to this entity's texture(s). Bug: Broken for brush entities.
- Render FX
(renderfx)
<choices>
- Preset appearance effects. Partially supported in , completely non-functional in . Bug: Sometimes functions incorrectly if changed with AddOutput, but is the only way to change effects other than making multiple versions of the object.
- Minimum Light
(_minlight)
<float>
- Minimum amount of light to hit this brush. 0 is none, 1 is "fullbright". Useful because the lightmaps will not update as the entity moves.
- Render in Fast Reflections
(drawinfastreflection)
<boolean>
(available in all games since ) - Makes the entity be rendered in reflections from water materials using
$reflectonlymarkedentities
.
Inputs[edit | edit source]
- SetExcluded
<string>
- Sets NPC class excluded from collisions.
- SetInvert
<boolean>
- Sets Invert NPC class exclusion.
- Enable
- Makes the entity visible. If Solidity is Toggle, the brush will become solid.
- Disable
- Makes the entity invisible. If Solidity is Toggle, the brush will become non-solid.
- Toggle
- If enabled, disables the entity. If disabled, enables the entity.
- Alpha
<integer>
- Sets Render Amount/Transparency
(renderamt)
.
- Color
<color255>
- Sets the Render Color
(rendercolor)
.