Env starfield: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{lang|Env starfield}}
{{lang|Env starfield}}
[[File:Env starfield.jpg|thumb|300px|right]]
[[File:Env starfield.jpg|thumb|300px|right]]
{{this is a|name=env_starfield|e0|series=Half-Life 2}} This creates the starfield effect used in the {{ent|d1_trainstation_01}} intro for Half-Life 2.
{{this is a|point entity|name=env_starfield|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} This creates the starfield effect used in the {{ent|d1_trainstation_01}} intro for Half-Life 2.


{{note|This is not the entity used in the {{ent|c5a1}} outro in Half-Life. That is a system of 42 {{ent|func_train}}s.}}
{{note|This is not the entity used in the {{ent|c5a1}} outro in Half-Life. That is a system of 42 {{ent|func_train}}s.}}

Revision as of 16:28, 17 May 2024

English (en)Translate (Translate)
Env starfield.jpg

env_starfield is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch. This creates the starfield effect used in the d1_trainstation_01 intro for Half-Life 2.

Note.pngNote:This is not the entity used in the c5a1 outro in Half-Life. That is a system of 42 func_trains.
Icon-Bug.pngBug:Due to how the star trails are coded, their direction of travel will look inconsistent if the player looks around.  [todo tested in ?]
Icon-Bug.pngBug: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 ?]
Note.pngNote:This entity is also in the code for Portal. Its functionality is not guaranteed.


C++ In code, it is represented by theCEnvStarfieldclass, defined in theenv_starfield.cppfile.

Keyvalues

Inputs

TurnOn
Turn on
TurnOff
Turn off
SetDensity <floatRedirectInput/float>
Set the density of the starfield. It's a multiplier, so 1 is the default.


Outputs

See also