env_smokestack
From Valve Developer Community
This is a point entity available in all Source games.
Contents |
Entity Description
An entity that spits out a constant stream of smoke. You can place up to two env_particlelight entities near the smoke stack to add ambient light to its particles.
Availability
This point-based entity is available in: all Source games.
In code it is represented by class CSmokeStack, defined in smokestack.cpp.
Keyvalues
-
Targetname:
- Name <string>
- The targetname other entities refer to this entity by.
- InitialState
- <boolean>
- BaseSpread
- <float> Amount of random spread in the origins of the smoke particles when they're spawned.
- SpreadSpeed
- <integer> Amount of random spread in the velocity of the smoke particles after they're spawned.
- Speed
- <integer> The speed at which the smoke particles move after they're spawned.
- StartSize
- <float> Size of the smoke particles when they're first emitted.
- EndSize
- <float> Size of the smoke particles at the point they fade out completely.
- Rate
- <integer> Rate at which to emit smoke particles (i.e. particles to emit per second).
- JetLength
- <integer> Length of the smokestack. Lifetime of the smoke particles is derived from this & particle speed.
- WindAngle
- <integer> This specifies the wind direction. It is an angle in the XY plane. WindSpeed specifies the strength of the wind.
- WindSpeed
- <integer> The strength of the wind.
- SmokeMaterial
- <material> Material of the smoke particles emitted by this stack.
- twist
- <float> The amount, in degrees per second, that the smoke particles twist around the origin.
- rendercolor
- <color255> Base Color
- renderamt
- <integer> Translucency
- roll
- <float> Amount of roll in degrees per second.
Inputs
-
Targetname:
-
Kill - Removes this entity from the world.
-
KillHierarchy - Removes this entity and all its children from the world.
-
AddOutput <string> - Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite> -
FireUser1toFireUser4 - Fire the
OnUseroutputs; see User Inputs and Outputs.
- TurnOn
- Turn on the smokestack.
- TurnOff
- Turn off the smokestack.
- Toggle
- Toggles the smokestack between on and off state.
- JetLength <float>
- Set the length of the smoke trail.
- Rate <float>
- Set the rate at which to emit smoke particles (particles per second).
- Speed <float>
- Set the speed at which the smoke particles move after they're spawned.
- SpreadSpeed <float>
- Set the amount of random spread in the velocity of the smoke particles after they're spawned.
Outputs
-
Targetname:
-
OnUser1toOnUser4 - Fired in response to the
FireUserinputs; see User Inputs and Outputs. -
OnKilled(New with Left 4 Dead) - Fired when the entity is killed and removed from the game.
