Func reflective glass: Difference between revisions
Jump to navigation
Jump to search
Note:This entity will not show a player their own reflection, however it will render other players.
Bug:This entity will cease to render or cause visual artifacts if water and or portals are in a visible visleaf. [todo tested in ?]
Bug:If more than one face of this brush entity contains a reflective or translucent texture, then the mirror's behavior will suddenly switch depending on one's perspective. To prevent this, make sure exactly one surface has the reflective texture. All others must be opaque. [todo tested in ?]
Note:Archived page history
Important:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
Deprecated (talk | contribs) m (Added LightmappedReflective information) |
Deprecated (talk | contribs) (Unified with func_brush) |
||
Line 10: | Line 10: | ||
{{Bug|If more than one face of this brush entity contains a reflective or translucent texture, then the mirror's behavior will suddenly switch depending on one's perspective. To prevent this, make sure ''exactly one'' surface has the reflective texture. All others must be opaque.}} | {{Bug|If more than one face of this brush entity contains a reflective or translucent texture, then the mirror's behavior will suddenly switch depending on one's perspective. To prevent this, make sure ''exactly one'' surface has the reflective texture. All others must be opaque.}} | ||
== Keyvalues == | ==Keyvalues== | ||
{{KV | {{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 to BSP if the player seems to rotate oddly relative to the surface. | |||
:*0: [[VPhysics]] | |||
:*1: BSP ([[QPhysics]])}} | |||
{{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 == | ==Flags== | ||
{{ | *2: Ignore player +USE - Entity will ignore all {{ent|Use}} inputs, including ones from the player. | ||
== Inputs == | ==Inputs== | ||
{{IO|SetExcluded|Change the NPC class that does not collide with the brush.}} | |||
{{IO|SetInvert|Whether to reverse the NPC class exclusion rule.}} | |||
{{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 EnableDisable}} | ||
{{I | {{I visiblebrush|portal2=1}} | ||
{{I | {{I BaseEntity}} | ||
}} | |||
== Outputs == | ==Outputs== | ||
{{O | {{O BaseEntity|l4d=1}} | ||
== See also == | == See also == | ||
*[[LightmappedReflective]], the material shader used for this entity. | *[[LightmappedReflective]], the material shader used for this entity. | ||
* [http://www.youtube.com/watch?v=5NJMh5O-lIQ YouTube tutorial: How to make a mirror] | * [http://www.youtube.com/watch?v=5NJMh5O-lIQ YouTube tutorial: How to make a mirror] |
Revision as of 16:38, 24 May 2019
Entity description
It is used to produce perfectly reflective glass that renders world + entities. You must use a LightmappedReflective texture (glass/reflectiveglass001.vmt is a good start) on one side of the brush, and the rest of the sides either nodraw or some other opaque texture for this to work properly.



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 to BSP if the player seems to rotate oddly relative to the surface.
- 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
Outputs
See also
- LightmappedReflective, the material shader used for this entity.
- YouTube tutorial: How to make a mirror