Skip to content

CLightComponent (server)

CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 448 bytes (0x1c0)Alignment: unspecified (0xff sentinel)Module: serverBinary: server.dll

Relationships

Inherits from: CEntityComponent

Same name in another module: CLightComponent (client)

Used by (1) as a field type

Inheritance tree
Relationship diagram (4 edges)
classDiagram
    CEntityComponent <|-- CLightComponent
    CLightComponent *-- CNetworkVarChainer
    CLightComponent *-- InfoForResourceTypeCTextureBase
    CLightComponent *-- GameTime_t
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

71 fields, 71 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.

CLightComponent

OffsetFieldTypeFromAnnotations
0x38__m_pChainEntityCNetworkVarChainerMNotSaved
0x75m_ColorColor
0x79m_SecondaryColorColor
0x80m_flBrightnessfloat32
0x84m_flBrightnessScalefloat32
0x88m_flBrightnessMultfloat32
0x8cm_flRangefloat32
0x90m_flFallofffloat32
0x94m_flAttenuation0float32
0x98m_flAttenuation1float32
0x9cm_flAttenuation2float32
0xa0m_flThetafloat32
0xa4m_flPhifloat32
0xa8m_hLightCookieCStrongHandle< InfoForResourceTypeCTextureBase >
0xb0m_nCascadesint32
0xb4m_nCastShadowsint32
0xb8m_nShadowWidthint32
0xbcm_nShadowHeightint32
0xc0m_bRenderDiffusebool
0xc4m_nRenderSpecularint32
0xc8m_bRenderTransmissivebool
0xccm_flOrthoLightWidthfloat32
0xd0m_flOrthoLightHeightfloat32
0xd4m_nStyleint32
0xd8m_PatternCUtlString
0xe0m_nCascadeRenderStaticObjectsint32
0xe4m_flShadowCascadeCrossFadefloat32
0xe8m_flShadowCascadeDistanceFadefloat32
0xecm_flShadowCascadeDistance0float32
0xf0m_flShadowCascadeDistance1float32
0xf4m_flShadowCascadeDistance2float32
0xf8m_flShadowCascadeDistance3float32
0xfcm_nShadowCascadeResolution0int32
0x100m_nShadowCascadeResolution1int32
0x104m_nShadowCascadeResolution2int32
0x108m_nShadowCascadeResolution3int32
0x10cm_bUsesBakedShadowingbool
0x110m_nShadowPriorityint32
0x114m_nBakedShadowIndexint32
0x118m_nLightPathUniqueIdint32
0x11cm_nLightMapUniqueIdint32
0x120m_bRenderToCubemapsbool
0x121m_bAllowSSTGenerationbool
0x124m_nDirectLightint32
0x128m_nBounceLightint32
0x12cm_flBounceScalefloat32
0x130m_flFadeMinDistfloat32
0x134m_flFadeMaxDistfloat32
0x138m_flShadowFadeMinDistfloat32
0x13cm_flShadowFadeMaxDistfloat32
0x140m_bEnabledbool
0x141m_bFlickerbool
0x142m_bPrecomputedFieldsValidbool
0x144m_vPrecomputedBoundsMinsVector
0x150m_vPrecomputedBoundsMaxsVector
0x15cm_vPrecomputedOBBOriginVector
0x168m_vPrecomputedOBBAnglesQAngle
0x174m_vPrecomputedOBBExtentVector
0x180m_flPrecomputedMaxRangefloat32
0x184m_nFogLightingModeint32
0x188m_flFogContributionStengthfloat32
0x18cm_flNearClipPlanefloat32
0x190m_SkyColorColor
0x194m_flSkyIntensityfloat32
0x198m_SkyAmbientBounceColor
0x19cm_bUseSecondaryColorbool
0x19dm_bMixedShadowsboolMNotSaved
0x1a0m_flLightStyleStartTimeGameTime_t
0x1a4m_flCapsuleLengthfloat32
0x1a8m_flMinRoughnessfloat32
0x1b8m_bPvsModifyEntitybool
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,
	"m_bPvsModifyEntity": false
}