Skip to content

CEntityInstance

Root of the entity class hierarchy (server and client). Everything that has an entity handle ultimately derives from this.

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

Kind: classSize: 48 bytes (0x30)Alignment: unspecified (0xff sentinel)Module: entity2Binary: assetrename.dll

Relationships

Inherits from: nothing; this is a root class.

Derived by: C_BaseEntity, CBaseEntity

Used by (2) as a field type

Inheritance tree
Relationship diagram (4 edges)
classDiagram
    CEntityInstance <|-- C_BaseEntity
    CEntityInstance <|-- CBaseEntity
    CEntityInstance --> CEntityIdentity
    CEntityInstance --> CScriptComponent
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CEntityInstance

OffsetFieldTypeFromAnnotations
0x8m_iszPrivateVScriptsCUtlSymbolLarge
0x10m_pEntityCEntityIdentity*CEntityIdentity pointer: the entity's identity record (name, class, handle, flags).
0x28m_CScriptComponentCScriptComponent*VScript component attached to the entity, when scripted.