Tf glow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Clean up)
No edit summary
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{tf2 point|tf_glow}} Adds colored outline to a [[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)
{{this is a|point entity|game=Team Fortress 2|name=tf_glow}} Adds a colored outline to a [[model|studiomodel]], allowing it to become visible though world geometry, similar to the outline displayed on the payload or the intelligence. Glowing support for [[brush entities]] is not implemented.
 
{{warning|The glow may not render if the target is out of [[PVS]], depending on the target entity's network transmit behavior. If you are experiencing this issue, parent the [[tf_glow]] to the target. The default [[FGD]] doesn't list this property, but you can add it by turning [[SmartEdit]] off and adding a <code>parentname</code> value. Parents will inherit the children's networking behavior, and [[tf_glow]] is marked to be always networked, therefore parenting will make the target always get networked too. Some entities like [[func_tracktrain]] are always networked and don't have this problem.}}
 
{{note|Players will not see outlines if they have the console command <code>glow_outline_effect_enable</code> set to 0.}}
{{note|Players will not see outlines if they have the console command <code>glow_outline_effect_enable</code> set to 0.}}
{{bug|Does not work on brush entities.}}
 
==Keyvalues==
==Keyvalues==
{{KV|Target|string|The [[targetname]] of the entity to glow. Only 1 entity may glow at once.}}
{{KV|Target|intn=target|string|The [[targetname]] of the entity to glow.}}{{Note|Only glows one entity at a time, multiple items glowing at once will require multiple <code>tf_glow</code> entities.}}{{bug|hidetested=1|Targets cannot be dynamically assigned using [[AddOutput]]. {{Workaround| Use [[VScript]] to set the m_hTarget NetProp instead.}}}}
{{bug|Targets cannot be dynamically assigned using [[AddOutput]].}}
{{KV|Glow Color|intn=GlowColor|color255|Glow color, with alpha.<br/>Format: <code><nowiki><r> <g> <b> <a></nowiki></code>}}
{{KV|Glow Color|color255|Glow color, with alpha.<br/>Format: <code><nowiki><r> <g> <b> <a></nowiki></code>}}
{{KV|Visibility Mode|intn=Mode|choices|When the glow should be visible.}}
{{KV|Visibility Mode|choices|When the glow should be visible.}}
:* 0 : Always
:* 0 : Always
:* 1 : Only when model is occluded
:* 1 : Only when model is occluded
:* 2 : Only when model is visible
:* 2 : Only when model is visible{{bug|hidetested=1|Options 1 and 2 do not function.}}
{{bug|Options 1 and 2 do not function.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV EnableDisable}}
{{KV EnableDisable}}


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

Latest revision as of 09:17, 8 September 2025

tf_glow is a point entity available in Team Fortress 2 Team Fortress 2. Adds a colored outline to a studiomodel, allowing it to become visible though world geometry, similar to the outline displayed on the payload or the intelligence. Glowing support for brush entities is not implemented.

Warning.pngWarning:The glow may not render if the target is out of PVS, depending on the target entity's network transmit behavior. If you are experiencing this issue, parent the tf_glow to the target. The default FGD doesn't list this property, but you can add it by turning SmartEdit off and adding a parentname value. Parents will inherit the children's networking behavior, and tf_glow is marked to be always networked, therefore parenting will make the target always get networked too. Some entities like func_tracktrain are always networked and don't have this problem.
Note.pngNote:Players will not see outlines if they have the console command glow_outline_effect_enable set to 0.

Keyvalues

Target (target) <string>
The targetname of the entity to glow.
Note.pngNote:Only glows one entity at a time, multiple items glowing at once will require multiple tf_glow entities.
Icon-Bug.pngBug:Targets cannot be dynamically assigned using AddOutput.
PlacementTip.pngWorkaround: Use VScript to set the m_hTarget NetProp instead.
Glow Color (GlowColor) <color255>
Glow color, with alpha.
Format: <r> <g> <b> <a>
Visibility Mode (Mode) <choices>
When the glow should be visible.
  • 0 : Always
  • 1 : Only when model is occluded
  • 2 : Only when model is visible
    Icon-Bug.pngBug:Options 1 and 2 do not function.
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