Env particlelight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
mNo edit summary
Line 1: Line 1:
{{lang|Env particlelight}}
{{lang|title=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|env_particlelight|type=e0}} It can be used to light the smoke particles emitted by {{ent|env_smokestack}} entities. Does not light any other particle types.


{{code class|CParticleLight|particle_light.cpp}}
{{code class|CParticleLight|particle_light.cpp}}

Revision as of 22:41, 7 February 2023

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

Template:Entity 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