Env starfield: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the hl2 point template)
(updates)
Line 1: Line 1:
[[File:Env starfield.jpg|thumb|300px|right]]
[[File:Env starfield.jpg|thumb|300px|right]]
{{hl2 point|env_starfield}}
{{hl2 point|env_starfield}} 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 an intricate system of 42 {{ent|func_train}}s.}}


==Entity description==
{{bug|Due to how the star trails are coded, their direction of travel will look inconsistent if the player looks around.}}
Creates the starfield effect used in [[HL1]] outro and [[HL2]] intro.


== Keyvalues ==
{{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.}}
{{KV Targetname}}


== Inputs ==
{{code class|CEnvStarfield|env_starfield.cpp}}
{{I Targetname}}
 
==Keyvalues==
{{KV BaseEntity|base=1}}
 
==Inputs==
{{IO|TurnOn|Turn on}}
{{IO|TurnOn|Turn on}}
{{IO|TurnOff|Turn off}}
{{IO|TurnOff|Turn off}}
{{IO|SetDensity|Set the density of the starfield. It's a multiplier, so 1 is the default.|param=float}}
{{IO|SetDensity|param=float|Set the density of the starfield. It's a multiplier, so 1 is the default.}}
{{I BaseEntity|base=1|prel4d=1}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}


==See also==
==See also==
* [[script_intro]]
*{{ent|script_intro}}
* [[env_smokestack]]

Revision as of 17:19, 7 September 2018

Env starfield.jpg

Template:Hl2 point 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 an intricate 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 ?]
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