Env particlelight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
Line 1: Line 1:
{{base point|env_particlelight}}  
{{lang|Env particlelight}}
{{base point|env_particlelight}} It can be used to light the smoke particles emitted by {{ent|env_smokestack}} entities. Does not light any other particle types.


==Entity description==
{{code class|CParticleLight|particle_light.cpp}}
It can be used to light the smoke particles emitted by [[env_smokestack]] entities. Does not light any other particle types.


==Keyvalues==
==Keyvalues==
{{KV|Color|color255|Color emitted by this light.}}
{{KV|Color (Color)|color255|Color emitted by this light.}}
{{KV|Intensity|integer|How strong the light is}}
{{KV|Intensity (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 (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
:* 1 : Yes
:*1: Yes}}
{{KV|Particle System Entity|string|Set this to the name of the env_smokestack that you want this light to affect.}}
{{KV|Particle System Entity (PSName)|string|Set this to the name of the <code>env_smokestack</code> that you want this light to affect.}}
{{KV Parentname}}
{{KV BaseEntity|css=1}}


==Inputs==
==Inputs==
{{I Parentname}}
{{I BaseEntity}}
 
==Outputs==
{{O BaseEntity|l4d=1}}


[[Category:Lighting]]
[[Category:Lighting]]

Revision as of 08:32, 29 September 2018

English (en)中文 (zh)Translate (Translate)

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

C++ In code, it is represented by theCParticleLightclass, defined in theparticle_light.cppfile.

Keyvalues

Color (Color) ([todo internal name (i)]) <color255>
Color emitted by this light.
Intensity (Intensity) ([todo internal name (i)]) <integer>
How strong the light is.
Directional (Directional) ([todo internal name (i)]) <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 (PSName) ([todo internal name (i)]) <string>
Set this to the name of the env_smokestack that you want this light to affect.


Inputs

Outputs