env_starfield
Class hierarchy |
---|
CEnvStarfield |
env_starfield.cpp
|
env_starfield
is a point entity available in Half-Life 2 series. This creates the starfield effect used in the d1_trainstation_01
intro for Half-Life 2.
Note:This is not the entity used in the
c5a1
outro in Half-Life. That is a system of 42 func_train
s.Bug:Due to how the star trails are coded, their direction of travel will look inconsistent if the player looks around. [todo tested in?]
Bug:If the player pauses the game, the number of star trails spawned will pile up over time, creating a sort of "burst" effect when unpaused. [todo tested in?]
Keyvalues
- Name
(targetname)
<string> - The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
TurnOn
- Turn on
TurnOff
- Turn off
SetDensity
<float>- Set the density of the starfield. It's a multiplier, so 1 is the default.