Func brush: Difference between revisions
Jump to navigation
Jump to search
Important:This is a preserved entity in 



.
If the game has round restart mechanics this entity may not behave as expected:
Note:Archived page history
Important:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
m (→Inputs: changed to normal I func_brush) |
(updates) |
||
Line 1: | Line 1: | ||
{{ | {{lang|Func brush}} | ||
| | {{base brush|func_brush}} It's a generic brush entity with various features. | ||
}} | |||
{{ | It combines the functions of {{ent|func_wall}}, {{ent|func_illusionary}} and {{ent|func_wall_toggle}} from Goldsource. The older entities can still be used, for a very very small amount of memory saved. | ||
{{PreservedEnt}} | |||
{{code class|CFuncBrush|modelentities.cpp}} | |||
{{ | |||
== | ==Keyvalues== | ||
{{ | {{KV|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}} | |||
{{KV|Solid BSP (solidbsp)|bool|Set this if this brush is in hierarchy with a moving object of some kind, and the player can stand on this brush.{{why}}}} | |||
{{KV|NPC class excluded from collisions (excludednpc)|classname|If an NPC classname (i.e. {{ent|npc_zombie}}) is specified here, NPCs of that type won't collide with these brushes.}} | |||
{{KV|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.}} | |||
{{KV EnableDisable}} | |||
:{{tip|If '''Solidity''' is ''Toggle'', disabling will also make the entity non-solid.}} | |||
{{KV visiblebrush|l4d=1}} | |||
{{KV BaseEntity|brush=1}} | |||
==Flags== | |||
*2: Ignore player +USE - Entity will ignore all {{ent|Use}} inputs, including ones from the player. | |||
== Inputs == | ==Inputs== | ||
{{I | {{IO|SetExcluded|Change the NPC class that does not collide with the brush.}} | ||
{{IO|SetInvert|Whether to reverse the NPC class exclusion rule.}} | |||
{{I EnableDisable}} | |||
{{I visiblebrush|portal2=1}} | |||
{{I BaseEntity}} | |||
== Outputs == | ==Outputs== | ||
{{O | {{O BaseEntity|l4d=1}} |
Revision as of 02:01, 6 October 2018
Template:Base brush 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 a very very small amount of memory saved.






If the game has round restart mechanics this entity may not behave as expected:
|
Keyvalues
- Solidity (Solidity) ([todo internal name (i)]) <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) ([todo internal name (i)]) <boolean>
- Set this if this brush is in hierarchy with a moving object of some kind, and the player can stand on this brush.[Why?]
- NPC class excluded from collisions (excludednpc) ([todo internal name (i)]) <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) ([todo internal name (i)]) <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). 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
- 2: Ignore player +USE - Entity will ignore all Use inputs, including ones from the player.
Inputs
- SetExcluded
- Change the NPC class that does not collide with the brush.
- SetInvert
- Whether to reverse the NPC class exclusion rule.
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