Skip to content

C_BarnLight

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 5032 bytes (0x13a8)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

208 fields, 76 declared here and 132 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
0xaf8m_CRenderComponentCRenderComponent*C_BaseModelEntityMNotSaved
0xb00m_CHitboxComponentCHitboxComponentC_BaseModelEntity
0xb18m_pChoreoComponentCChoreoComponent*C_BaseModelEntity
0xb20m_nDestructiblePartInitialStateDestructed0HitGroup_tC_BaseModelEntity
0xb24m_nDestructiblePartInitialStateDestructed1HitGroup_tC_BaseModelEntity
0xb28m_nDestructiblePartInitialStateDestructed2HitGroup_tC_BaseModelEntity
0xb2cm_nDestructiblePartInitialStateDestructed3HitGroup_tC_BaseModelEntity
0xb30m_nDestructiblePartInitialStateDestructed4HitGroup_tC_BaseModelEntity
0xb34m_nDestructiblePartInitialStateDestructed0_PartIndexint32C_BaseModelEntity
0xb38m_nDestructiblePartInitialStateDestructed1_PartIndexint32C_BaseModelEntity
0xb3cm_nDestructiblePartInitialStateDestructed2_PartIndexint32C_BaseModelEntity
0xb40m_nDestructiblePartInitialStateDestructed3_PartIndexint32C_BaseModelEntity
0xb44m_nDestructiblePartInitialStateDestructed4_PartIndexint32C_BaseModelEntity
0xb48m_bDestructiblePartInitialStateDestructed0_GenerateBreakpiecesboolC_BaseModelEntity
0xb49m_bDestructiblePartInitialStateDestructed1_GenerateBreakpiecesboolC_BaseModelEntity
0xb4am_bDestructiblePartInitialStateDestructed2_GenerateBreakpiecesboolC_BaseModelEntity
0xb4bm_bDestructiblePartInitialStateDestructed3_GenerateBreakpiecesboolC_BaseModelEntity
0xb4cm_bDestructiblePartInitialStateDestructed4_GenerateBreakpiecesboolC_BaseModelEntity
0xb50m_pDestructiblePartsSystemComponentCDestructiblePartsComponent*C_BaseModelEntity
0xc78m_bInitModelEffectsboolC_BaseModelEntityMNotSaved
0xc79m_bDoingModelEffectsboolC_BaseModelEntityMNotSaved
0xc7cm_iOldHealthint32C_BaseModelEntityMNotSaved
0xc80m_nRenderModeRenderMode_tC_BaseModelEntity
0xc81m_nRenderFXRenderFx_tC_BaseModelEntity
0xc82m_bAllowFadeInViewboolC_BaseModelEntity
0xca0m_clrRenderColorC_BaseModelEntity
0xca8m_vecRenderAttributesC_UtlVectorEmbeddedNetworkVar< EntityRenderAttribute_t >C_BaseModelEntity
0xd28m_bRenderToCubemapsboolC_BaseModelEntity
0xd29m_bExpandRenderBoundsToIncludeClothboolC_BaseModelEntity
0xd2am_bNoInterpolateboolC_BaseModelEntity
0xd30m_CollisionCCollisionPropertyC_BaseModelEntity
0xde8m_GlowCGlowPropertyC_BaseModelEntity
0xe40m_flGlowBackfaceMultfloat32C_BaseModelEntity
0xe44m_fadeMinDistfloat32C_BaseModelEntity
0xe48m_fadeMaxDistfloat32C_BaseModelEntity
0xe4cm_flFadeScalefloat32C_BaseModelEntity
0xe50m_flShadowStrengthfloat32C_BaseModelEntity
0xe54m_nObjectCullinguint8C_BaseModelEntity
0xe55m_nRequiredDecalRtEncodingDecalRtEncoding_tC_BaseModelEntity
0xe58m_bodyGroupTotalRequestCountuint32C_BaseModelEntity
0xe60m_bodyGroupRequestsCUtlVectorFixedGrowable< C_BaseModelEntity::BodyGroupRequest_t, 8 >C_BaseModelEntity
0xf38m_bodyGroupChoicesCUtlOrderedMap< CGlobalSymbol, int32 >C_BaseModelEntity
0xf60m_vecViewOffsetCNetworkViewOffsetVectorC_BaseModelEntity
0x1040m_pClientAlphaPropertyCClientAlphaProperty*C_BaseModelEntityMNotSaved
0x1048m_ClientOverrideTintColorC_BaseModelEntityMNotSaved
0x104cm_bUseClientOverrideTintboolC_BaseModelEntityMNotSaved
0x1088m_bvDisabledHitGroupsuint32[1]C_BaseModelEntityMKV3TransferSaveOpsForField GetHitgroupDisableListSaveRestoreOps
0x1098m_bEnabledbool
0x109cm_nColorModeint32
0x10a0m_ColorColor
0x10a4m_flColorTemperaturefloat32
0x10a8m_flBrightnessfloat32
0x10acm_flBrightnessScalefloat32
0x10b0m_nDirectLightint32
0x10b4m_nBakedShadowIndexint32
0x10b8m_nLightPathUniqueIdint32
0x10bcm_nLightMapUniqueIdint32
0x10c0m_nLuminaireShapeint32
0x10c4m_flLuminaireSizefloat32
0x10c8m_flLuminaireAnisotropyfloat32
0x10d0m_LightStyleStringCUtlString
0x10d8m_flLightStyleStartTimeGameTime_t
0x10e0m_QueuedLightStyleStringsC_NetworkUtlVectorBase< CUtlString >
0x10f8m_LightStyleEventsC_NetworkUtlVectorBase< CUtlString >
0x1110m_LightStyleTargetsC_NetworkUtlVectorBase< CHandle< C_BaseModelEntity > >
0x1128m_StyleEventCEntityIOOutput[4]
0x1188m_hLightCookieCStrongHandle< InfoForResourceTypeCTextureBase >
0x1190m_flShapefloat32
0x1194m_flSoftXfloat32
0x1198m_flSoftYfloat32
0x119cm_flSkirtfloat32
0x11a0m_flSkirtNearfloat32
0x11a4m_vSizeParamsVector
0x11b0m_flRangefloat32
0x11b4m_vShearVector
0x11c0m_nBakeSpecularToCubemapsint32
0x11c4m_vBakeSpecularToCubemapsSizeVector
0x11d0m_flBakeSpecularToCubemapsScalefloat32
0x11d4m_nCastShadowsint32
0x11d8m_nShadowMapSizeint32
0x11dcm_nShadowPriorityint32
0x11e0m_bContactShadowbool
0x11e1m_bForceShadowsEnabledbool
0x11e4m_nBounceLightint32
0x11e8m_flBounceScalefloat32
0x11ecm_flMinRoughnessfloat32
0x11f0m_vAlternateColorVector
0x11fcm_fAlternateColorBrightnessfloat32
0x1200m_nFogint32
0x1204m_flFogStrengthfloat32
0x1208m_nFogShadowsint32
0x120cm_flFogScalefloat32
0x1210m_flFadeSizeStartfloat32
0x1214m_flFadeSizeEndfloat32
0x1218m_flShadowFadeSizeStartfloat32
0x121cm_flShadowFadeSizeEndfloat32
0x1220m_bPrecomputedFieldsValidbool
0x1224m_vPrecomputedBoundsMinsVector
0x1230m_vPrecomputedBoundsMaxsVector
0x123cm_vPrecomputedOBBOriginVector
0x1248m_vPrecomputedOBBAnglesQAngle
0x1254m_vPrecomputedOBBExtentVector
0x1260m_nPrecomputedSubFrustaint32
0x1264m_vPrecomputedOBBOrigin0Vector
0x1270m_vPrecomputedOBBAngles0QAngle
0x127cm_vPrecomputedOBBExtent0Vector
0x1288m_vPrecomputedOBBOrigin1Vector
0x1294m_vPrecomputedOBBAngles1QAngle
0x12a0m_vPrecomputedOBBExtent1Vector
0x12acm_vPrecomputedOBBOrigin2Vector
0x12b8m_vPrecomputedOBBAngles2QAngle
0x12c4m_vPrecomputedOBBExtent2Vector
0x12d0m_vPrecomputedOBBOrigin3Vector
0x12dcm_vPrecomputedOBBAngles3QAngle
0x12e8m_vPrecomputedOBBExtent3Vector
0x12f4m_vPrecomputedOBBOrigin4Vector
0x1300m_vPrecomputedOBBAngles4QAngle
0x130cm_vPrecomputedOBBExtent4Vector
0x1318m_vPrecomputedOBBOrigin5Vector
0x1324m_vPrecomputedOBBAngles5QAngle
0x1330m_vPrecomputedOBBExtent5Vector
0x1380m_bInitialBoneSetupboolMNotSaved
0x1388m_VisClustersC_NetworkUtlVectorBase< uint16 >