env_projectedtexture
env_projectedtexture
is a point entity available in all Source 2 games. It projects a texture for use in things like flashlights.
Contents
Flags
- [
1
] : Enabled
- [
2
] : Always Update (moving light)
Keyvalues
- target
(target)
<targetname>
- FOV
(lightfov)
<float> - Field of view for which to project the texture
- NearZ
(nearz)
<float> - Near Z cutoff for projected texture
- FarZ
(farz)
<float> - Far Z cutoff for projected texture
- Enable Shadows
(enableshadows)
<boolean> - Enables/disables shadows from this projected texture.
- Shadow Quality
(shadowquality)
<choices> - Quality of shadows
Value Description 0
Low 1
High
- Light Only Target
(lightonlytarget)
<boolean> - Limit flashlight effect to only effect target entity.
- Light World
(lightworld)
<boolean> - Flashlight effects static world geometry.
- Simple Projection
(simpleprojection)
<boolean> - Indicates if this is a simple, non-light casting texture projection
- Brightness Scale
(brightnessscale)
<float> - Scale the light color by this brightness
- Light Color
(lightcolor)
<color255> - Light Color RGB-Intensity
- Camera Space
(cameraspace)
<integer> - Angles are interpreted as being relative to camera.
- Texture Name
(texturename)
- material
- Flip Horizontal
(flip_horizontal)
<choices> - Should the projected texture be flipped horizontally?
Value Description 0
No 1
Yes
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
TurnOn
- Turn on the texture
TurnOff
- Turn off the texture
AlwaysUpdateOn
- Turn on per frame updating (for moving lights)
AlwaysUpdateOff
- Turn off per frame updating (for moving lights)
SetFOV
<float>- Set Field of view
SpotlightTexture
<string>- Set the spotlight texture
EnableShadows
<boolean>- Set the if shadows are enabled
LightColor
<color255>- Change the light color/brightness
Base:
RunScriptFile
- Load and execute a script file.
RunScriptCode
- Execute a fragment of script code.
CallScriptFunction
- Call a script function.
CallPrivateScriptFunction
- Calls a script function from this entity's private script scope.
CallGlobalScriptFunction
- Calls a script function in the global script scope.
Kill
- Removes this entity from the world.
KillHierarchy
- Removes this entity and all its children from the world.
AddOutput
- Adds an entity I/O connection to this entity. Parameter format: OutputName→TargetName→InputName→Parameter→Delay→MaxRefires
FireUser1
toFireUser4
- Fires the respective
OnUser
outputs; see User Inputs and Outputs.
Outputs
Base:
OnUser1
toOnUser4
- These outputs each fire in response to the firing of the like-numbered
FireUser1
toFireUser4
Input; see User Inputs and Outputs. OnKilled
- This output fires when the entity is killed and removed from the game. Parameter is the inflictor.