light_omni2
A sphere or tube shaped light
- FGD
@PointClassingame/core/lights2.fgd, basesTargetname, Parentname, CanBeClientOnly, Light2Inputs.
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2
Inputs (33)
| Name | Parameter | From | Description |
|---|---|---|---|
RunScriptFile | string | VScript | Load and execute a script file |
RunScriptCode | string | VScript | Execute a fragment of script code |
CallScriptFunction | string | VScript | Call a script function |
CallPrivateScriptFunction | string | VScript | Calls a script function from this entity's private script scope. |
CallGlobalScriptFunction | string | VScript | Calls a script function in the global script scope. |
Kill | GameEntity | Removes this entity from the world. | |
KillHierarchy | GameEntity | Removes this entity and all its children from the world. | |
KillConstrained | GameEntity | Removes this entity, all its children, and anything constrained to it, from the world. | |
AddOutput | string | GameEntity | Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care. |
FireUser1 | GameEntity | Causes this entity's OnUser1 output to be fired. | |
FireUser2 | GameEntity | Causes this entity's OnUser2 output to be fired. | |
FireUser3 | GameEntity | Causes this entity's OnUser3 output to be fired. | |
FireUser4 | GameEntity | Causes this entity's OnUser4 output to be fired. | |
EnableAutoSleeping | GameEntity | Enable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest. | |
DisableAutoSleeping | GameEntity | Disable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep. | |
SetParent | api | Parentname | |
SetParentWithOffset | api | Parentname | |
SetParentMaintainOffset | api | Parentname | |
SetParentAttachment | string | Parentname | Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. |
SetParentAttachmentMaintainOffset | string | Parentname | Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the parent at the time it is attached. |
ClearParent | Parentname | Removes this entity from the the movement hierarchy, leaving it free to move independently. | |
FollowEntity | string | Parentname | Bone merges this entity to a parent entity. Call again passing nothing to end the bone merge. |
Enable | Light2Inputs | Turn on the light. | |
Disable | Light2Inputs | Turn off the light. | |
Toggle | Light2Inputs | Toggle the light. | |
SetColor | color255 | Light2Inputs | Set the light's color. |
SetColorTemperature | float | Light2Inputs | Set the light's color temperature in Kelvin. |
SetBrightness | float | Light2Inputs | Set the light's brightness in EV. |
SetBrightnessScale | float | Light2Inputs | Set the light's brightness multiplier, which defaults to 1. |
SetStyle | string | Light2Inputs | ',' separated list of styles from light_styles.vdata to play in sequence. The last entry will loop. The last style can be 'on'/'off' to enable/disable the light with no light style. |
SetFogStrength | float | Light2Inputs | Set the fog strength. |
SetFogScale | float | Light2Inputs | Set the fog multiplier, which defaults to 1. |
SetBounceScale | float | Light2Inputs | Set the indirect bounce multiplier. |
Outputs (9)
| Name | Parameter | From | Description |
|---|---|---|---|
OnUser1 | GameEntity | Fired in response to FireUser1 input. | |
OnUser2 | GameEntity | Fired in response to FireUser2 input. | |
OnUser3 | GameEntity | Fired in response to FireUser3 input. | |
OnUser4 | GameEntity | Fired in response to FireUser4 input. | |
OnKilled | GameEntity | Fired when the entity is killed and removed from the game. Parameter is the inflictor. | |
OnStyleEvent0 | Light2Inputs | Fired when the current light style plays an event of the type specified by Style Output Event 0. | |
OnStyleEvent1 | Light2Inputs | Fired when the current light style plays an event of the type specified by Style Output Event 1. | |
OnStyleEvent2 | Light2Inputs | Fired when the current light style plays an event of the type specified by Style Output Event 2. | |
OnStyleEvent3 | Light2Inputs | Fired when the current light style plays an event of the type specified by Style Output Event 3. |
Keyvalues (56)
The names Hammer saves and the KeyValue input and AddOutput take at run time. An entity reads some keys only when it spawns, so changing one later may do nothing. Integer keys such as movetype take engine numbers, not the renumbered cs_script enum values.
| Key | Type | Default | From | Description |
|---|---|---|---|---|
vscriptsEntity Scripts | scriptlist | VScript | Name(s) of script files that are executed after all entities have spawned. | |
targetnameName | target_source | Targetname | The name that other entities refer to this entity by. | |
parentnameParent | target_destination | Parentname | The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. | |
parentAttachmentNameParent Bone/Attachment Name | parentAttachment | Parentname | The name of the bone or attachment to attach to on the entity's parent in the movement hierarchy. Use !bonemerge to use bone-merge style attachment. NOTE: If this is specified the Hammer transform will be disregarded, even if 'Use Local Transform' is NOT specified (in that case local transform will be identity) | |
useLocalOffsetUse Local Transform | boolean | 0 | Parentname | Whether to respect the specified local offset when doing the initial hierarchical attachment to its parent. |
local.originLocal Origin | vector | Parentname | Offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. | |
local.anglesLocal Angles | angle | Parentname | Angular offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. | |
local.scalesLocal Scale | vector | 1 1 1 | Parentname | Scale in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. |
clientSideEntityCreate Client-Only Entity | choices | 1 |
| |
brightness_unitsUnits | intchoices | 1 | Brightness Units
| |
brightness_candelasCandelas | float | 80 | Brightness in candelas | |
brightness_nitsNits | float | 9816 | Brightness in nits | |
brightnessBrightness (EV) | float | 0 | Logarithmic Brightness | |
brightness_legacyLegacy | float | 1 | Legacy brightness value | |
enabledEnabled | boolean | 1 | ||
directlightDirect Lighting Type | choices | 1 | How direct lighting should be represented: Static=Fully baked into lightmap (cheapest), Stationary=Dynamic direct light with baked shadows, Dynamic=Fully dynamic (Most expensive). NOTE: Stationary and Dynamic omni2's take up 6 dynamic shadow slots, and will likely not cast shadows if you have CSM shadows enabled in a light_environment.
| |
colormodeColor Mode | choices | 1 | How to calculate the light's color
| |
colorColor | color255 | 255 255 255 | ||
colortemperatureColor Temperature (K) | float | 6600 | ||
brightness_lumensBrightness (Lumens) | float | 1000 | Brightness in lumens. (See Light Units group for alternative units of measurement). | |
rangeRange | float | 256.0 | Clamps the distance that a light can reach. | |
skirtFalloff | float | 0.1 | Controls the light falloff based on the set Range. | |
bouncelightIndirect Light Type | intchoices | -1 | How indirect (bounce) light should be computed
| |
bouncescaleIndirect Light Multiplier | float | 1.0 | Increases the intensity of a lights' Indirect (bounce) light. | |
shapeShape | choices | 0 | Shape of the light
| |
size_paramsSize | vector | 2.0 24.0 0.15 | ||
outer_angleOuter Angle | float | 180.0 | Used to creat hemispherical light shapes. | |
inner_angleInner Angle | float | 180.0 | Used to creat hemispherical light shapes. | |
lightcookieCookie | resource:vtex | Choose a light cookie texture (.vtex) to represent your light shape. | ||
bakespeculartocubemapsBake Specular to Cubemaps | boolean | 0 | Bake specular into cubemaps. Only works when Direct Lighting Type is set to Baked. | |
bakespeculartocubemaps_scaleBake Specular to Cubemaps Scale | float | 1.0 | ||
minroughnessSpecular Softness | float | 0 | USE WITH CAUTION: Artificially softens direct specular (not cubemaps) to simulate cheap, soft area lights. Note: Direct Lighting must be set to Stationary or Dynamic for this to have an effect. | |
castshadowsCast Shadows | choices | 2 | Whether this light casts shadow.
| |
shadowmapsizeShadow Map Resolution | intchoices | -1 |
| |
shadowpriorityShadow Priority | intchoices | -1 |
| |
pvs_modify_entityTransmit Shadow Casters to Client | boolean | 0 | When this light is visible to a player, add its shadow casters to the player's PVS. | |
shadowfade_size_startShadow Fade Out Start Size | float | .10 | Screen size where the shadows will begin fading out | |
shadowfade_size_endShadow Fade Out End Size | float | .05 | Screen size where the shadows will be fully faded out | |
brightnessscaleBrightness Scale | float | 1.0 | Scale brightness by this amount, used for scripting direct light behaviour. NOTE: Only works on lights with Direct Lighting type set to Dynamic or Stationary. | |
rendertocubemapsRender Light in Cubemaps | boolean | 1 | If true, illumination from this light renders into baked cube maps. | |
showlightRender Light Geometry | boolean | 0 | Render the light geometry in the world | |
fade_size_startLight Fade Out Start Size | float | .05 | Screen size where the light will begin fading out | |
fade_size_endLight Fade Out End Size | float | .025 | Screen size where the light will be fully faded out | |
transmit_alwaysAlways Transmit to Clients | boolean | 0 | Allows large lights to transmit to clients as a workaround for going out of PVS due to sv_pvs_max_distance being set too close. | |
light_styleStyle | vdata_choice:scripts/light_styles.vdata | Light Style | ||
light_style_output_event0Style Output Event 0 | vdata_choice:scripts/light_style_event_types.vdata | event_0 | Name of the event that triggers the OnStyleEvent0 output. | |
light_style_output_event1Style Output Event 1 | vdata_choice:scripts/light_style_event_types.vdata | event_1 | Name of the event that triggers the OnStyleEvent1 output. | |
light_style_output_event2Style Output Event 2 | vdata_choice:scripts/light_style_event_types.vdata | event_2 | Name of the event that triggers the OnStyleEvent2 output. | |
light_style_output_event3Style Output Event 3 | vdata_choice:scripts/light_style_event_types.vdata | event_3 | Name of the event that triggers the OnStyleEvent3 output. | |
light_style_target0Style Target 0 | target_destination | Sets $light_emissive for use in material expressions. The emissive geometry's surface area should be approximately equal to the area light's surface area. | ||
light_style_target1Style Target 1 | target_destination | Sets $light_emissive for use in material expressions. The emissive geometry's surface area should be approximately equal to the area light's surface area. | ||
light_style_target2Style Target 2 | target_destination | Sets $light_emissive for use in material expressions. The emissive geometry's surface area should be approximately equal to the area light's surface area. | ||
light_style_target3Style Target 3 | target_destination | Sets $light_emissive for use in material expressions. The emissive geometry's surface area should be approximately equal to the area light's surface area. | ||
fog | remove_key | |||
fogshadows | remove_key | |||
fogstrength | remove_key |