Prop dynamic glow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (Classifying as model entity)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{this is a|point entity|name=prop_dynamic_glow|game=Counter-Strike: Global Offensive}}
{{CD|CDynamicProp|file1=props.cpp|nolink=1}}
{{this is a|model entity|name=prop_dynamic_glow|game=Counter-Strike: Global Offensive}}


==Entity description==
A prop that can be placed in hierarchy and can play animations. It can also be configured to break when it takes enough damage.
A prop that can be placed in hierarchy and can play animations. It can also be configured to break when it takes enough damage.
Works exactly like a [[prop_dynamic]], but it can optionally have a custom glow around it.
Works exactly like a [[prop_dynamic]], but it can optionally have a custom glow around it.
 
{{AltNames|name1=prop_dynamic}}
==Flags==
{{fl DynamicProp}}


==Keyvalues==
==Keyvalues==
{{KV|Does the prop glow by default?|bool|Defines if the prop should glow by default.}}
{{KV Targetname}}
{{KV|Glow Color (R G B)|color255|The color of the glow (if enabled).}}
{{KV|Glow Distance|intn=glowdist|integer}}
{{KV DynamicProp}}
{{KV|Does the prop glow by default?|intn=glowenabled|bool|Defines if the prop should glow by default.}}
{{KV BreakableProp|nohl2=1}}
{{KV|Glow Color (R G B)|intn=glowcolor|color255|The color of the glow (if enabled).}}
{{KV BaseAnimating}}
{{KV|Glow Style|intn=glowstyle|choices|What style of glow should be used.
{{KV BaseEntity}}
:*0 : Default (through walls)
:*1 : Shimmer (doesn't glow through walls)
:*2 : Outline (doesn't glow through walls)
:*3 : Outline Pulse (doesn't glow through walls)
}}
==Inputs==
{{I|SetGlowEnabled|Starts the glow.}}
{{I|SetGlowDisabled|Stops the glow.}}
{{I|SetGlowColor|Change the glow's color. Format: <Red 0-255> <Green 0-255> <Blue 0-255>|param=color255}}
{{I|GlowColorRedValue|Sets the glow red color channel's value (0 - 255).|param=float}}
{{I|GlowColorGreenValue|Sets the glow green color channel's value (0 - 255).|param=float}}
{{I|GlowColorBlueValue|Sets the glow blue color channel's value (0 - 255).|param=float}}


==Inputs==
{{note|Any other Keyvalues / Inputs / Outputs are same as {{ent|prop_dynamic}}}}
{{IO|SetGlowEnabled|Starts the glow.}}
{{IO|SetGlowDisabled|Stops the glow.}}
{{IO|SetGlowColor|Change the glow's color. Format: <Red 0-255> <Green 0-255> <Blue 0-255>|param=color255}}
{{IO|GlowColorRedValue|Sets the glow red color channel's value (0 - 255).|param=float}}
{{IO|GlowColorGreenValue|Sets the glow green color channel's value (0 - 255).|param=float}}
{{IO|GlowColorBlueValue|Sets the glow blue color channel's value (0 - 255).|param=float}}
{{I DynamicProp}}
{{I BreakableProp|nohl2=1}}
{{I BaseAnimating|portal2=1}}
{{I BaseEntity}}


==Outputs==
== See Also ==
{{O DynamicProp}}
* {{ent|prop_dynamic}}
{{O Breakable|prop=1|nohl2=1}}
{{O BaseAnimating|portal2=1}}
{{O BaseEntity}}

Latest revision as of 04:33, 19 May 2025

C++ Class hierarchy
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
C++ props.cpp

prop_dynamic_glow is a model entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

A prop that can be placed in hierarchy and can play animations. It can also be configured to break when it takes enough damage. Works exactly like a prop_dynamic, but it can optionally have a custom glow around it.

AltNames.pngAltNames: This entity is also tied to prop_dynamic.

Keyvalues

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

Glow Distance (glowdist) <integer>
Does the prop glow by default? (glowenabled) <boolean>
Defines if the prop should glow by default.
Glow Color (R G B) (glowcolor) <color255>
The color of the glow (if enabled).
Glow Style (glowstyle) <choices>
What style of glow should be used.
  • 0 : Default (through walls)
  • 1 : Shimmer (doesn't glow through walls)
  • 2 : Outline (doesn't glow through walls)
  • 3 : Outline Pulse (doesn't glow through walls)

Inputs

SetGlowEnabled
Starts the glow.
SetGlowDisabled
Stops the glow.
SetGlowColor <color255RedirectInput/color32>
Change the glow's color. Format: <Red 0-255> <Green 0-255> <Blue 0-255>
GlowColorRedValue <floatRedirectInput/float>
Sets the glow red color channel's value (0 - 255).
GlowColorGreenValue <floatRedirectInput/float>
Sets the glow green color channel's value (0 - 255).
GlowColorBlueValue <floatRedirectInput/float>
Sets the glow blue color channel's value (0 - 255).
Note.pngNote:Any other Keyvalues / Inputs / Outputs are same as prop_dynamic

See Also