Difference between revisions of "Env particlelight"

From Valve Developer Community
Jump to: navigation, search
m (Keyvalues)
Line 6: Line 6:
 
==Keyvalues==
 
==Keyvalues==
 
{{KV|Color|color255|Color emitted by this light.}}
 
{{KV|Color|color255|Color emitted by this light.}}
{{KV|Intensity|integer}}
+
{{KV|Intensity|integer|How strong the light is}}
 
{{KV|Directional|choices|If this is specified, then this light will use the bump map on the particles. Each particle system can have one ambient and one directional light.}}
 
{{KV|Directional|choices|If this is specified, then this light will use the bump map on the particles. Each particle system can have one ambient and one directional light.}}
 
:* 0 : No
 
:* 0 : No

Revision as of 04:17, 30 June 2013

env_particlelight is a point entity available in all Source games.

Entity description

It can be used to light the smoke particles emitted by env_smokestack entities. Does not light any other particle types.

Keyvalues

Color <color255>
Color emitted by this light.
Intensity <integer>
How strong the light is
Directional <choices>
If this is specified, then this light will use the bump map on the particles. Each particle system can have one ambient and one directional light.
  • 0 : No
  • 1 : Yes
Particle System Entity <string>
Set this to the name of the env_smokestack that you want this light to affect.

Parentname:

Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Inputs

Parentname:

SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.