Env flare: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Spam revert)
(→‎Availability: removed dead links)
Line 13: Line 13:
==Availability==
==Availability==
{{in game|point}} {{game|HL2}}
{{in game|point}} {{game|HL2}}
{{in code|class=class_c_flare.html CFlare|file=weapon__flaregun_8cpp-source.html hl2_dll\weapon_flaregun.cpp}}
In code it is represented by class CFlare, defined in hl2_dll\weapon_flaregun.cpp.


==Keyvalues==
==Keyvalues==

Revision as of 14:48, 14 December 2008

Template:Wrongtitle

The beginning of d2_prison_08, as mentioned on the left.

Entity Description

Creates a red flare. Useful for creating a dark environment with just enough light to navigate. The flickering red light of the flare creates a tense atmosphere and a strong feeling of fight-or-die, as it's mainly used in HL2 only by the Combine.

Note.pngNote:This entity is derived from CBaseCombatCharacter and can have relationships defined towards it.

See the beginning of d2_prison_08 for an example of its use.

Availability

Template:In game Template:Game In code it is represented by class CFlare, defined in hl2_dll\weapon_flaregun.cpp.

Keyvalues

<float> Scale.
  • duration
<float> Duration.

Flags

  • 1 : No DLight
  • 2 : No Smoke
  • 4 : Infinite
  • 8 : Start off

Inputs

Start
  • Die <float>
Die
  • Launch <float>
Launch the flare forward with the specified speed.

Outputs