CLightComponent (client)
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 496 bytes (0x1f0)Alignment: unspecified (0xff sentinel)Module: clientBinary: client.dll
Relationships
Inherits from: CEntityComponent
Same name in another module: CLightComponent (server)
Used by (1) as a field type
Inheritance tree
CEntityComponent entity2
- CLightComponent
Relationship diagram (4 edges)
classDiagram
CEntityComponent <|-- CLightComponent
CLightComponent *-- CNetworkVarChainer
CLightComponent *-- InfoForResourceTypeCTextureBase
CLightComponent *-- GameTime_tMemory layout
70 fields, 70 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.
CLightComponent
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x38 | __m_pChainEntity | CNetworkVarChainer | MNotSaved | |
0x75 | m_Color | Color | ||
0x79 | m_SecondaryColor | Color | ||
0x80 | m_flBrightness | float32 | ||
0x84 | m_flBrightnessScale | float32 | ||
0x88 | m_flBrightnessMult | float32 | ||
0x8c | m_flRange | float32 | ||
0x90 | m_flFalloff | float32 | ||
0x94 | m_flAttenuation0 | float32 | ||
0x98 | m_flAttenuation1 | float32 | ||
0x9c | m_flAttenuation2 | float32 | ||
0xa0 | m_flTheta | float32 | ||
0xa4 | m_flPhi | float32 | ||
0xa8 | m_hLightCookie | CStrongHandle< InfoForResourceTypeCTextureBase > | ||
0xb0 | m_nCascades | int32 | ||
0xb4 | m_nCastShadows | int32 | ||
0xb8 | m_nShadowWidth | int32 | ||
0xbc | m_nShadowHeight | int32 | ||
0xc0 | m_bRenderDiffuse | bool | ||
0xc4 | m_nRenderSpecular | int32 | ||
0xc8 | m_bRenderTransmissive | bool | ||
0xcc | m_flOrthoLightWidth | float32 | ||
0xd0 | m_flOrthoLightHeight | float32 | ||
0xd4 | m_nStyle | int32 | ||
0xd8 | m_Pattern | CUtlString | ||
0xe0 | m_nCascadeRenderStaticObjects | int32 | ||
0xe4 | m_flShadowCascadeCrossFade | float32 | ||
0xe8 | m_flShadowCascadeDistanceFade | float32 | ||
0xec | m_flShadowCascadeDistance0 | float32 | ||
0xf0 | m_flShadowCascadeDistance1 | float32 | ||
0xf4 | m_flShadowCascadeDistance2 | float32 | ||
0xf8 | m_flShadowCascadeDistance3 | float32 | ||
0xfc | m_nShadowCascadeResolution0 | int32 | ||
0x100 | m_nShadowCascadeResolution1 | int32 | ||
0x104 | m_nShadowCascadeResolution2 | int32 | ||
0x108 | m_nShadowCascadeResolution3 | int32 | ||
0x10c | m_bUsesBakedShadowing | bool | ||
0x110 | m_nShadowPriority | int32 | ||
0x114 | m_nBakedShadowIndex | int32 | ||
0x118 | m_nLightPathUniqueId | int32 | ||
0x11c | m_nLightMapUniqueId | int32 | ||
0x120 | m_bRenderToCubemaps | bool | ||
0x121 | m_bAllowSSTGeneration | bool | ||
0x124 | m_nDirectLight | int32 | ||
0x128 | m_nBounceLight | int32 | ||
0x12c | m_flBounceScale | float32 | ||
0x130 | m_flFadeMinDist | float32 | ||
0x134 | m_flFadeMaxDist | float32 | ||
0x138 | m_flShadowFadeMinDist | float32 | ||
0x13c | m_flShadowFadeMaxDist | float32 | ||
0x140 | m_bEnabled | bool | ||
0x141 | m_bFlicker | bool | ||
0x142 | m_bPrecomputedFieldsValid | bool | ||
0x144 | m_vPrecomputedBoundsMins | Vector | ||
0x150 | m_vPrecomputedBoundsMaxs | Vector | ||
0x15c | m_vPrecomputedOBBOrigin | Vector | ||
0x168 | m_vPrecomputedOBBAngles | QAngle | ||
0x174 | m_vPrecomputedOBBExtent | Vector | ||
0x180 | m_flPrecomputedMaxRange | float32 | ||
0x184 | m_nFogLightingMode | int32 | ||
0x188 | m_flFogContributionStength | float32 | ||
0x18c | m_flNearClipPlane | float32 | ||
0x190 | m_SkyColor | Color | ||
0x194 | m_flSkyIntensity | float32 | ||
0x198 | m_SkyAmbientBounce | Color | ||
0x19c | m_bUseSecondaryColor | bool | ||
0x19d | m_bMixedShadows | bool | MNotSaved | |
0x1a0 | m_flLightStyleStartTime | GameTime_t | ||
0x1a4 | m_flCapsuleLength | float32 | ||
0x1a8 | m_flMinRoughness | float32 |
KV3 class defaults
{
"_class": "CLightComponent",
"m_Color":
[
0,
0,
0,
0
],
"m_SecondaryColor":
[
0,
0,
0,
0
],
"m_flBrightness": 0.000000,
"m_flBrightnessScale": 1.000000,
"m_flBrightnessMult": 1.000000,
"m_flRange": 0.000000,
"m_flFalloff": 0.000000,
"m_flAttenuation0": 0.000000,
"m_flAttenuation1": 0.000000,
"m_flAttenuation2": 0.000000,
"m_flTheta": 0.000000,
"m_flPhi": 0.000000,
"m_hLightCookie": "",
"m_nCascades": 0,
"m_nCastShadows": 0,
"m_nShadowWidth": 0,
"m_nShadowHeight": 0,
"m_bRenderDiffuse": true,
"m_nRenderSpecular": 1,
"m_bRenderTransmissive": true,
"m_flOrthoLightWidth": 0.000000,
"m_flOrthoLightHeight": 0.000000,
"m_nStyle": 0,
"m_Pattern": "",
"m_nCascadeRenderStaticObjects": -1,
"m_flShadowCascadeCrossFade": 0.000000,
"m_flShadowCascadeDistanceFade": 0.000000,
"m_flShadowCascadeDistance0": 0.000000,
"m_flShadowCascadeDistance1": 0.000000,
"m_flShadowCascadeDistance2": 0.000000,
"m_flShadowCascadeDistance3": 0.000000,
"m_nShadowCascadeResolution0": 0,
"m_nShadowCascadeResolution1": 0,
"m_nShadowCascadeResolution2": 0,
"m_nShadowCascadeResolution3": 0,
"m_bUsesBakedShadowing": false,
"m_nShadowPriority": -1,
"m_nBakedShadowIndex": -1,
"m_nLightPathUniqueId": 0,
"m_nLightMapUniqueId": 0,
"m_bRenderToCubemaps": true,
"m_bAllowSSTGeneration": true,
"m_nDirectLight": 0,
"m_nBounceLight": 0,
"m_flBounceScale": 0.000000,
"m_flFadeMinDist": 0.000000,
"m_flFadeMaxDist": 0.000000,
"m_flShadowFadeMinDist": 0.000000,
"m_flShadowFadeMaxDist": 0.000000,
"m_bEnabled": false,
"m_bFlicker": false,
"m_bPrecomputedFieldsValid": false,
"m_vPrecomputedBoundsMins":
[
0.000000,
0.000000,
0.000000
],
"m_vPrecomputedBoundsMaxs":
[
0.000000,
0.000000,
0.000000
],
"m_vPrecomputedOBBOrigin":
[
0.000000,
0.000000,
0.000000
],
"m_vPrecomputedOBBAngles":
[
0.000000,
0.000000,
0.000000
],
"m_vPrecomputedOBBExtent":
[
0.000000,
0.000000,
0.000000
],
"m_flPrecomputedMaxRange": 0.000000,
"m_nFogLightingMode": 0,
"m_flFogContributionStength": 1.000000,
"m_flNearClipPlane": 1.000000,
"m_SkyColor":
[
0,
0,
0,
0
],
"m_flSkyIntensity": 0.000000,
"m_SkyAmbientBounce":
[
0,
0,
0,
0
],
"m_bUseSecondaryColor": false,
"m_flLightStyleStartTime": null,
"m_flCapsuleLength": 0.000000,
"m_flMinRoughness": 0.000000
}