Tf glow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(It's an EnableDisable entity subclass.)
(Update tf_glow with relevant KV details)
Line 1: Line 1:
{{tf2 point|tf_glow}}
{{tf2 point|tf_glow}}


tf_glow allows mappers to add a colored outline to model, allowing it to become visible though world geometry, similar to outline displayed on the payload or the intelligence (if the player 'glow_outline_effect_enable' enabled)
tf_glow allows mappers to add a colored outline to model, allowing it to become visible though world geometry, similar to outline displayed on the payload or the intelligence (if the player has 'glow_outline_effect_enable' enabled)


==Keyvalues==
==Keyvalues==
{{KV|Target - ONE TARGET ONLY|string|The [[targetname]] of the entity to glow.}}
{{KV|Glow Color|color255|Glow color, with alpha.<br/>Format: <code><nowiki><r> <g> <b> <a></nowiki></code>}}
{{KV|Visibility Mode|choices|When the glow should be visible.}}
:* 0 : Always
:* 1 : Only when model is occluded
:* 2 : Only when model is visible
{{KV Targetname}}
{{KV Targetname}}
{{KV EnableDisable}}
{{KV EnableDisable}}
Name targetname <target_source> The name that other entities refer to this entity by.
Target - ONE TARGET ONLY target <target_destination>
Glow Color GlowColor <color255> <r> <g> <b> <a> 0-255
Visibility Mode Mode <choices> When the glow should be visible


==Inputs==
==Inputs==
{{IO|SetGlowColor|Set glow color, with alpha.<br/>Format: <code><nowiki><r> <g> <b> <a></nowiki></code>|param=color255}}
{{I Targetname}}
{{I Targetname}}
{{I EnableDisable}}


==Outputs==
==Outputs==
This entity has no outputs.
{{O Targetname}}

Revision as of 17:33, 17 July 2016

Team Fortress 2 tf_glow is a point entity available in Team Fortress 2 Team Fortress 2.

tf_glow allows mappers to add a colored outline to model, allowing it to become visible though world geometry, similar to outline displayed on the payload or the intelligence (if the player has 'glow_outline_effect_enable' enabled)

Keyvalues

Target - ONE TARGET ONLY ([todo internal name (i)]) <string>
The targetname of the entity to glow.
Glow Color ([todo internal name (i)]) <color255>
Glow color, with alpha.
Format: <r> <g> <b> <a>
Visibility Mode ([todo internal name (i)]) <choices>
When the glow should be visible.
  • 0 : Always
  • 1 : Only when model is occluded
  • 2 : Only when model is visible
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

SetGlowColor <color255RedirectInput/color32>
Set glow color, with alpha.
Format: <r> <g> <b> <a>

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs