- Optionnal [sic] - file defining the lens flare. Note: Hammer's parameters overwrite the file's parameters.
- Distance attenuation
- distance where lensflare will be invisible. 0.0 if not attenuation with distance
- Flare Type
- Normal: normal lens flare (Pitch,Yaw,Roll not used) ------ Sun Flare: set the same Pitch,Yaw,Roll that the one from the sun light_env. That will define the position of the sun. the actual position of this entity is not used.
- 0: Normal
- 1: Sun Flare
Light Appearances Literal Value Description Sequence Preview 0 Normal
10 Fluorescent flicker
2 Slow, strong pulse
11 Slow pulse, noblack
5 Gentle pulse
1 Flicker A
6 Flicker B
3 Candle A
7 Candle B
8 Candle C
4 Fast strobe
9 Slow strobe
12 !FGD Underwater light mutation
- Size of Glow Proxy Geometry.
- Size of the glow to be rendered for visibility testing. Must be larger than the distance from the sprite center to empty space. So if this glow is inside geometry (like a light bulb), set this value to be bigger than the bulb's radius. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered. - Richard's note : I noticed that value more than ~100 wont work correctly
- Flare 01 texture
(Flare01_texture)to Flare 20 texture
- image of the lens - if empty the flare doesn't exist
- Flare 01 parameters
(Flare01_params)to Flare 20 parameters
- parameters - example : DISK 1.0 10 10
- Flare 01 intensity
(Flare01_intensity)to Flare 20 intensity
- intensity of the flare - example : 1.0 1.0 1.0
- Flare 01 sizes
(Flare01_sizes)to Flare 20 sizes
- intensity of the flare - example : 1.0 1.0 1.0
- Flare 01 color
(Flare01_color)to Flare 20 color
- color factor of the texture - example : 255 255 255
- The classname defines the type of entity. Classnames can be changed using
AddOutput, which will influence how the engine deals with the entity in certain circumstances.
- The name that other entities refer to this entity by.
- Global Entity Name
- Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma. Every entity can be parented, even point entities. Entities which are parented will be forced to transition to the next map, such as from a
trigger_transition. Some entities which aren't intended to be parented may not function correctly.
phys_constraintcan be used as a workaround to parenting.
- Origin (X Y Z)
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Pitch Yaw Roll (X Y Z)
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.Note: This works on brush entities, although Hammer doesn't show the new angles.
- Toggles features of an entity, its specific number is determined by the combination of flags added.
- Response Contexts
- Pre-defined response system contexts for this entity. Format is
key:value,key:value,.... Contexts may be filtered.
- Combination of effect flags to use.
- Local Time
- The local time of the entity, independent of the global clock. Used mainly for physics calculations.
- Next Think
- Amount of time before the entity thinks again.
- Hammer ID
- The entity's Hammer ID. Mainly used by plugins and debugging commands, such as
ent_keyvalue. Can be manually assigned with the "hammerid" or "id" keyvalue. Entities spawned at run-time are not assigned any Hammer ID.
- Disable for Xbox 360
- If Yes, disables this entity on the Xbox 360 version of Source.
- Entity Scripts
- Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
- Script think function
- Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call. Try to avoid expensive operations in this function, as it may cause performance problems.
- Lag Compensation
- Set to Yes to lag compensate this entity. Should be used very sparingly!
- Is Automatic-Aim Target
- If set to 1, this entity will slow down aiming movement for consoles and joystick controllers when the entity is under the crosshairs.
- Sets the red color channel's value (0 - 255).
- Sets the green color channel's value (0 - 255).
- Sets the blue color channel's value (0 - 255).
- Set the lensflare's scale (0 - 8.0).
- Hide the lensflare. Won't be drawn until the 'ShowLensFlare' input is received.
- Show the lensflare.
- Toggle the lensflare between hidden and shown.
- Removes this entity and any entities parented to it from the world.
- Functions the same as
Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster than
- Move with this entity. See Entity Hierarchy (parenting).
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
- Evaluates a keyvalue/output on this entity.
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
- Fire the
OnUseroutputs; see User Inputs and Outputs.
- Same as a player invoking +use; may not do anything. Can also be invoked by creating an output that does not specify an input.
This input is not included in Valve's FGDs.
- Dispatches a special effect from the entity's origin. Removed and replaced entirely by the particle system since .
- Dispatches a response to the entity. See Response and Concept.
- Adds to the entity's list of response contexts. Format is
- Remove a context from this entity's list. The name should match the key of an existing context.
- Removes all contexts from this entity's list.
- Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.
- Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console. Bug: In , the code is executed in the script scope of the entity that fires the output, not the one receiving the input.Warning: Never try to pass string parameters to a script function with this input. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
- Execute a VScript function in the scope of the receiving entity.
- Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.
- Set this entity's angles.
- These outputs each fire in response to the firing of the like-numbered
FireUser4Input; see User Inputs and Outputs.
1] : Start on
2] : Play once
Lens Flare Properties
env_lensflare can support up to 20 flares. Each flare have different properties that can be customized.
The texture property sets the material used by the flare. It is a path to a VMT file relative to the
materials folder and without the file extension. Common flare materials are located in the
effects/lensflare/ folder. Any material can be used as a lens flare, but flare materials should use
UnlitGeneric and be additive.
The parameters property controls the appearance of the flare. Parameters take the following form:
The following lens flare types can be used:
A screen space flare that gets stronger when the player looks directly at the
env_lensflare, and weaker as the player looks away. It takes three parameters.
The first parameter scales the position of the flare on screen. When it is 0 the flare stays at the
env_lensflare's screen space position. When it's greater than zero and less than one it will stay between the center of the player's screen and the
env_lensflare's on screen position. When it is equal to one the flare will stay at the center of the screen. When greater than one the flare will get further away from the
env_lensflare's screen space position the more the player looks away from the
The second and third parameters is the size of the flare in the x- and y-axis respectively.
To do: Document lens flare properties