Skip to content

C_BarnLight

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

Kind: classSize: 4800 bytes (0x12c0)Alignment: 8 bytesModule: clientBinary: client.dll

Metadata: MEntityAllowsPortraitWorldSpawn

Relationships

Inherits from: C_BaseModelEntity

Server counterpart: CBarnLight

Derived by: C_OmniLight, C_RectLight

Inheritance tree
Relationship diagram (9 edges)
classDiagram
    CEntityInstance <|-- C_BaseEntity
    C_BaseEntity <|-- C_BaseModelEntity
    C_BaseModelEntity <|-- C_BarnLight
    C_BarnLight <|-- C_OmniLight
    C_BarnLight <|-- C_RectLight
    C_BarnLight *-- GameTime_t
    C_BarnLight --> C_BaseModelEntity
    C_BarnLight *-- CEntityIOOutput
    C_BarnLight *-- InfoForResourceTypeCTextureBase
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

205 fields, 76 declared here and 129 inherited. Offsets are absolute from the object base on windows-x86_64.

CEntityInstanceC_BaseEntityC_BaseModelEntityC_BarnLight

OffsetFieldTypeFromAnnotations
0x8m_iszPrivateVScriptsCUtlSymbolLargeCEntityInstance
0x10m_pEntityCEntityIdentity*CEntityInstanceCEntityIdentity pointer: the entity's identity record (name, class, handle, flags).
0x28m_CScriptComponentCScriptComponent*CEntityInstanceVScript component attached to the entity, when scripted.
0x30m_CBodyComponentCBodyComponent*C_BaseEntity
0x38m_NetworkTransmitComponentCNetworkTransmitComponentC_BaseEntityMNotSaved
0x328m_nLastThinkTickGameTick_tC_BaseEntityMNotSaved
0x330m_pGameSceneNodeCGameSceneNode*C_BaseEntityMNotSaved
0x338m_pRenderComponentCRenderComponent*C_BaseEntityMNotSaved
0x340m_pCollisionCCollisionProperty*C_BaseEntityMNotSaved
0x348m_iMaxHealthint32C_BaseEntityMNotSaved
0x34cm_iHealthint32C_BaseEntity
0x350m_flDamageAccumulatorfloat32C_BaseEntityMNotSaved
0x354m_lifeStateuint8C_BaseEntityMNotSaved
0x355m_bTakesDamageboolC_BaseEntityMNotSaved
0x358m_nTakeDamageFlagsTakeDamageFlags_tC_BaseEntityMNotSaved
0x360m_nPlatformTypeEntityPlatformTypes_tC_BaseEntity
0x361m_ubInterpolationFrameuint8C_BaseEntityMNotSaved
0x364m_hSceneObjectControllerCHandle< C_BaseEntity >C_BaseEntity
0x368m_nNoInterpolationTickint32C_BaseEntityMNotSaved
0x36cm_nVisibilityNoInterpolationTickint32C_BaseEntityMNotSaved
0x370m_flProxyRandomValuefloat32C_BaseEntityMNotSaved
0x374m_iEFlagsint32C_BaseEntityMNotSaved
0x378m_nWaterTypeuint8C_BaseEntityMNotSaved
0x379m_bInterpolateEvenWithNoModelboolC_BaseEntityMNotSaved
0x37am_bPredictionEligibleboolC_BaseEntityMNotSaved
0x37bm_bApplyLayerMatchIDToModelboolC_BaseEntityMNotSaved
0x37cm_tokLayerMatchIDCUtlStringTokenC_BaseEntityMNotSaved
0x380m_nSubclassIDCUtlStringTokenC_BaseEntity
0x390m_nSimulationTickint32C_BaseEntityMNotSaved
0x394m_iCurrentThinkContextint32C_BaseEntityMNotSaved
0x398m_aThinkFunctionsCUtlVector< thinkfunc_t >C_BaseEntityMNotSaved
0x3b0m_bDisabledContextThinksboolC_BaseEntity
0x3b4m_flAnimTimefloat32C_BaseEntityMNotSaved
0x3b8m_flSimulationTimefloat32C_BaseEntityMNotSaved
0x3bcm_nSceneObjectOverrideFlagsuint8C_BaseEntity
0x3bdm_bHasSuccessfullyInterpolatedboolC_BaseEntityMNotSaved
0x3bem_bHasAddedVarsToInterpolationboolC_BaseEntityMNotSaved
0x3bfm_bRenderEvenWhenNotSuccessfullyInterpolatedboolC_BaseEntityMNotSaved
0x3c0m_nInterpolationLatchDirtyFlagsint32[2]C_BaseEntityMNotSaved
0x3c8m_ListEntryuint16[11]C_BaseEntityMNotSaved
0x3e0m_flCreateTimeGameTime_tC_BaseEntityMNotSaved
0x3e4m_EntClientFlagsuint16C_BaseEntityMNotSaved
0x3e6m_bClientSideRagdollboolC_BaseEntityMNotSaved
0x3e7m_iTeamNumuint8C_BaseEntityMNotSaved
0x3e8m_spawnflagsuint32C_BaseEntity
0x3ecm_nNextThinkTickGameTick_tC_BaseEntityMNotSaved
0x3f4m_fFlagsuint32C_BaseEntityMSaveBehavior
0x3f8m_vecAbsVelocityVectorC_BaseEntityMNotSaved
0x404m_vecServerVelocityCNetworkVelocityVectorC_BaseEntityMNotSaved
0x430m_vecVelocityCNetworkVelocityVectorC_BaseEntity
0x510m_vecBaseVelocityVectorC_BaseEntityMNotSaved
0x51cm_hEffectEntityCHandle< C_BaseEntity >C_BaseEntityMNotSaved
0x520m_hOwnerEntityCHandle< C_BaseEntity >C_BaseEntity
0x524m_MoveCollideMoveCollide_tC_BaseEntityMNotSaved
0x525m_MoveTypeMoveType_tC_BaseEntity
0x526m_nActualMoveTypeMoveType_tC_BaseEntity
0x528m_flWaterLevelfloat32C_BaseEntityMNotSaved
0x52cm_fEffectsuint32C_BaseEntityMNotSaved
0x530m_hGroundEntityCHandle< C_BaseEntity >C_BaseEntityMNotSaved
0x534m_nGroundBodyIndexint32C_BaseEntityMNotSaved
0x538m_flFrictionfloat32C_BaseEntityMNotSaved
0x53cm_flElasticityfloat32C_BaseEntityMNotSaved
0x540m_flGravityScalefloat32C_BaseEntityMNotSaved
0x544m_flTimeScalefloat32C_BaseEntityMNotSaved
0x548m_bAnimatedEveryTickboolC_BaseEntityMNotSaved
0x549m_bGravityDisabledboolC_BaseEntity
0x54cm_flNavIgnoreUntilTimeGameTime_tC_BaseEntityMNotSaved
0x550m_hThinkuint16C_BaseEntityMNotSaved
0x560m_fBBoxVisFlagsuint8C_BaseEntityMNotSaved
0x564m_flActualGravityScalefloat32C_BaseEntity
0x568m_bGravityActuallyDisabledboolC_BaseEntity
0x569m_bPredictableboolC_BaseEntityMNotSaved
0x56am_bRenderWithViewModelsboolC_BaseEntity
0x56cm_nFirstPredictableCommandint32C_BaseEntityMNotSaved
0x570m_nLastPredictableCommandint32C_BaseEntityMNotSaved
0x574m_hOldMoveParentCHandle< C_BaseEntity >C_BaseEntityMNotSaved
0x578m_ParticlesCParticlePropertyC_BaseEntityMNotSaved
0x5a8m_vecAngVelocityQAngleC_BaseEntity
0x5b4m_DataChangeEventRefint32C_BaseEntityMNotSaved
0x5b8m_dependenciesCUtlVector< CEntityHandle >C_BaseEntityMNotSaved
0x5d0m_nCreationTickint32C_BaseEntityMNotSaved
0x5e1m_bAnimTimeChangedboolC_BaseEntityMNotSaved
0x5e2m_bSimulationTimeChangedboolC_BaseEntityMNotSaved
0x5f0m_sUniqueHammerIDCUtlStringC_BaseEntityMNotSaved
0x5f8m_nBloodTypeBloodTypeC_BaseEntity
0xaf0m_CRenderComponentCRenderComponent*C_BaseModelEntityMNotSaved
0xaf8m_CHitboxComponentCHitboxComponentC_BaseModelEntity
0xb10m_pChoreoComponentCChoreoComponent*C_BaseModelEntity
0xb18m_nDestructiblePartInitialStateDestructed0HitGroup_tC_BaseModelEntity
0xb1cm_nDestructiblePartInitialStateDestructed1HitGroup_tC_BaseModelEntity
0xb20m_nDestructiblePartInitialStateDestructed2HitGroup_tC_BaseModelEntity
0xb24m_nDestructiblePartInitialStateDestructed3HitGroup_tC_BaseModelEntity
0xb28m_nDestructiblePartInitialStateDestructed4HitGroup_tC_BaseModelEntity
0xb2cm_nDestructiblePartInitialStateDestructed0_PartIndexint32C_BaseModelEntity
0xb30m_nDestructiblePartInitialStateDestructed1_PartIndexint32C_BaseModelEntity
0xb34m_nDestructiblePartInitialStateDestructed2_PartIndexint32C_BaseModelEntity
0xb38m_nDestructiblePartInitialStateDestructed3_PartIndexint32C_BaseModelEntity
0xb3cm_nDestructiblePartInitialStateDestructed4_PartIndexint32C_BaseModelEntity
0xb40m_bDestructiblePartInitialStateDestructed0_GenerateBreakpiecesboolC_BaseModelEntity
0xb41m_bDestructiblePartInitialStateDestructed1_GenerateBreakpiecesboolC_BaseModelEntity
0xb42m_bDestructiblePartInitialStateDestructed2_GenerateBreakpiecesboolC_BaseModelEntity
0xb43m_bDestructiblePartInitialStateDestructed3_GenerateBreakpiecesboolC_BaseModelEntity
0xb44m_bDestructiblePartInitialStateDestructed4_GenerateBreakpiecesboolC_BaseModelEntity
0xb48m_pDestructiblePartsSystemComponentCDestructiblePartsComponent*C_BaseModelEntity
0xc70m_bInitModelEffectsboolC_BaseModelEntityMNotSaved
0xc71m_bDoingModelEffectsboolC_BaseModelEntityMNotSaved
0xc74m_iOldHealthint32C_BaseModelEntityMNotSaved
0xc78m_nRenderModeRenderMode_tC_BaseModelEntity
0xc79m_nRenderFXRenderFx_tC_BaseModelEntity
0xc7am_bAllowFadeInViewboolC_BaseModelEntity
0xc98m_clrRenderColorC_BaseModelEntity
0xca0m_vecRenderAttributesC_UtlVectorEmbeddedNetworkVar< EntityRenderAttribute_t >C_BaseModelEntity
0xd20m_bRenderToCubemapsboolC_BaseModelEntity
0xd21m_bNoInterpolateboolC_BaseModelEntity
0xd28m_CollisionCCollisionPropertyC_BaseModelEntity
0xde0m_GlowCGlowPropertyC_BaseModelEntity
0xe38m_flGlowBackfaceMultfloat32C_BaseModelEntity
0xe3cm_fadeMinDistfloat32C_BaseModelEntity
0xe40m_fadeMaxDistfloat32C_BaseModelEntity
0xe44m_flFadeScalefloat32C_BaseModelEntity
0xe48m_flShadowStrengthfloat32C_BaseModelEntity
0xe4cm_nObjectCullinguint8C_BaseModelEntity
0xe4dm_nRequiredDecalRtEncodingDecalRtEncoding_tC_BaseModelEntity
0xe50m_bodyGroupChoicesCUtlOrderedMap< CGlobalSymbol, int32 >C_BaseModelEntity
0xe78m_vecViewOffsetCNetworkViewOffsetVectorC_BaseModelEntity
0xf58m_pClientAlphaPropertyCClientAlphaProperty*C_BaseModelEntityMNotSaved
0xf60m_ClientOverrideTintColorC_BaseModelEntityMNotSaved
0xf64m_bUseClientOverrideTintboolC_BaseModelEntityMNotSaved
0xfa0m_bvDisabledHitGroupsuint32[1]C_BaseModelEntityMKV3TransferSaveOpsForField GetHitgroupDisableListSaveRestoreOps
0xfb0m_bEnabledbool
0xfb4m_nColorModeint32
0xfb8m_ColorColor
0xfbcm_flColorTemperaturefloat32
0xfc0m_flBrightnessfloat32
0xfc4m_flBrightnessScalefloat32
0xfc8m_nDirectLightint32
0xfccm_nBakedShadowIndexint32
0xfd0m_nLightPathUniqueIdint32
0xfd4m_nLightMapUniqueIdint32
0xfd8m_nLuminaireShapeint32
0xfdcm_flLuminaireSizefloat32
0xfe0m_flLuminaireAnisotropyfloat32
0xfe8m_LightStyleStringCUtlString
0xff0m_flLightStyleStartTimeGameTime_t
0xff8m_QueuedLightStyleStringsC_NetworkUtlVectorBase< CUtlString >
0x1010m_LightStyleEventsC_NetworkUtlVectorBase< CUtlString >
0x1028m_LightStyleTargetsC_NetworkUtlVectorBase< CHandle< C_BaseModelEntity > >
0x1040m_StyleEventCEntityIOOutput[4]
0x10a0m_hLightCookieCStrongHandle< InfoForResourceTypeCTextureBase >
0x10a8m_flShapefloat32
0x10acm_flSoftXfloat32
0x10b0m_flSoftYfloat32
0x10b4m_flSkirtfloat32
0x10b8m_flSkirtNearfloat32
0x10bcm_vSizeParamsVector
0x10c8m_flRangefloat32
0x10ccm_vShearVector
0x10d8m_nBakeSpecularToCubemapsint32
0x10dcm_vBakeSpecularToCubemapsSizeVector
0x10e8m_flBakeSpecularToCubemapsScalefloat32
0x10ecm_nCastShadowsint32
0x10f0m_nShadowMapSizeint32
0x10f4m_nShadowPriorityint32
0x10f8m_bContactShadowbool
0x10f9m_bForceShadowsEnabledbool
0x10fcm_nBounceLightint32
0x1100m_flBounceScalefloat32
0x1104m_flMinRoughnessfloat32
0x1108m_vAlternateColorVector
0x1114m_fAlternateColorBrightnessfloat32
0x1118m_nFogint32
0x111cm_flFogStrengthfloat32
0x1120m_nFogShadowsint32
0x1124m_flFogScalefloat32
0x1128m_flFadeSizeStartfloat32
0x112cm_flFadeSizeEndfloat32
0x1130m_flShadowFadeSizeStartfloat32
0x1134m_flShadowFadeSizeEndfloat32
0x1138m_bPrecomputedFieldsValidbool
0x113cm_vPrecomputedBoundsMinsVector
0x1148m_vPrecomputedBoundsMaxsVector
0x1154m_vPrecomputedOBBOriginVector
0x1160m_vPrecomputedOBBAnglesQAngle
0x116cm_vPrecomputedOBBExtentVector
0x1178m_nPrecomputedSubFrustaint32
0x117cm_vPrecomputedOBBOrigin0Vector
0x1188m_vPrecomputedOBBAngles0QAngle
0x1194m_vPrecomputedOBBExtent0Vector
0x11a0m_vPrecomputedOBBOrigin1Vector
0x11acm_vPrecomputedOBBAngles1QAngle
0x11b8m_vPrecomputedOBBExtent1Vector
0x11c4m_vPrecomputedOBBOrigin2Vector
0x11d0m_vPrecomputedOBBAngles2QAngle
0x11dcm_vPrecomputedOBBExtent2Vector
0x11e8m_vPrecomputedOBBOrigin3Vector
0x11f4m_vPrecomputedOBBAngles3QAngle
0x1200m_vPrecomputedOBBExtent3Vector
0x120cm_vPrecomputedOBBOrigin4Vector
0x1218m_vPrecomputedOBBAngles4QAngle
0x1224m_vPrecomputedOBBExtent4Vector
0x1230m_vPrecomputedOBBOrigin5Vector
0x123cm_vPrecomputedOBBAngles5QAngle
0x1248m_vPrecomputedOBBExtent5Vector
0x1298m_bInitialBoneSetupboolMNotSaved
0x12a0m_VisClustersC_NetworkUtlVectorBase< uint16 >