Env texturetoggle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(updates) |
||
Line 1: | Line 1: | ||
[[File:env_texturetoggle.png|left|link=]] | {{lang|Env texturetoggle}} | ||
[[File:env_texturetoggle.png|left|link=]]{{base point|env_texturetoggle}} It allows you to change the textures on brush entities or overlays. | |||
In order for <code>env_texturetoggle</code> to work properly, your overlay or at least one face of your brush must use a [[VMT]] material with the <code>[[List Of Material Proxies#Texture manipulation|ToggleTexture</code> proxy]] defined and pointing to an animated [[VTF]] file with at least two frames. | |||
{{code class|CTextureToggle|env_texturetoggle.cpp}} | |||
==Keyvalues== | |||
{{ | {{KV|Target Brush(es) (target)|target_destination|Name of the brushes or {{ent|info_overlay}}s. All <code>ToggleTexture</code> materials on all entities (including sprites) matching the targetname will be affected.}} | ||
{{KV BaseEntity}} | |||
== | ==Inputs== | ||
{{ | {{IO|IncrementTextureIndex|Increments target brush's current texture frame by one.}} | ||
{{ | {{IO|SetTextureIndex|param=integer|Sets target brush's texture frame to the specified index.}} | ||
{{I BaseEntity}} | |||
== | ==Outputs== | ||
{{ | {{O BaseEntity|l4d=1}} | ||
== | ==See Also== | ||
{{ | *{{ent|material_modify_control}} |
Revision as of 21:13, 2 October 2018

Template:Base point It allows you to change the textures on brush entities or overlays.
In order for env_texturetoggle
to work properly, your overlay or at least one face of your brush must use a VMT material with the ToggleTexture
proxy defined and pointing to an animated VTF file with at least two frames.
Keyvalues
- Target Brush(es) (target) ([todo internal name (i)]) <targetname>
- Name of the brushes or info_overlays. All
ToggleTexture
materials on all entities (including sprites) matching the targetname will be affected.
Inputs
- IncrementTextureIndex
- Increments target brush's current texture frame by one.
- SetTextureIndex <integer >
- Sets target brush's texture frame to the specified index.