This article's documentation is for anything that uses the Source engine. Click here for more information.

Env particlelight: 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.)
 
(23 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{wrongtitle|title=env_particlelight}}
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{CD|CParticleLight|file1=particle_light.cpp}}
 
{{this is a|point entity|name=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==
An entity that can be used to light the smoke particles emitted by [[Env_smokestack|env_smokestack]] entities. Does not light any other particle types.
 
This entity does not emit particles when the player's view is not on the object, and also seems to stop emitting entirely if the player looks away long enough that all existing particles disappear. [[User:Merkaba48|Merkaba48]]


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV|Color|intn=Color|color255|Color emitted by this light.}}
{{KV|Intensity|intn=Intensity|integer|How strong the light is.}}
{{KV|Directional|intn=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}}
{{KV|Particle System Entity|intn=PSName|string|Set this to the name of the <code>env_smokestack</code> that you want this light to affect.}}


* {{not in fgd}} {{kv targetname}}
[[Category:Lighting]]
 
* {{kv parentname}}
 
* '''Color'''
: {{color}} Color emitted by this light.
 
* '''Intensity'''
: <integer>
 
* '''directional'''
: {{boolean}} 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.
 
* '''PSName'''
: <string> Set this to the name of the [[env_smokestack]] that you want this light to affect.
 
==Inputs==
* {{not in fgd}}
:{|
|
* {{i targetname}}
|}
* {{i parentname}}
==Outputs==
* {{not in fgd}} {{o targetname}}
 
[[Category:Entities]]

Latest revision as of 16:17, 17 May 2024

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CParticleLight
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity
C++ particle_light.cpp

env_particlelight is a point entity available in all Source Source games. It can be used to light the smoke particles emitted by env_smokestack entities. Does not light any other particle types.

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

Color (Color) <color255>
Color emitted by this light.
Intensity (Intensity) <integer>
How strong the light is.
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
  • 1: Yes
Particle System Entity (PSName) <string>
Set this to the name of the env_smokestack that you want this light to affect.