Skip to content

CSmartPropElement_ModelEntity

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

Kind: classSize: 400 bytes (0x190)Alignment: unspecified (0xff sentinel)Module: smartpropsBinary: !GlobalTypes

Metadata: MVDataOutlinerAssetNameExpr

Relationships

Inherits from: CSmartPropElement

Derived by: CSmartPropElement_PropDynamic, CSmartPropElement_PropPhysics

Inheritance tree
Relationship diagram (3 edges)
classDiagram
    CSmartPropElement <|-- CSmartPropElement_ModelEntity
    CSmartPropElement_ModelEntity <|-- CSmartPropElement_PropDynamic
    CSmartPropElement_ModelEntity <|-- CSmartPropElement_PropPhysics
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

11 fields, 6 declared here and 5 inherited. Offsets are absolute from the object base on windows-x86_64.

CSmartPropElementCSmartPropElement_ModelEntity

OffsetFieldTypeFromAnnotations
0x8m_nElementIDint32CSmartPropElementMPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id
0x10m_bEnabledCSmartPropAttributeBoolCSmartPropElementMPropertyDescription Is this element enabled? If not enabled, this element will not be evaluted and will have no effect on the result. MPropertySortPriority 10 MVDataEnableKey
0x50m_sLabelCUtlStringCSmartPropElementMPropertyDescription Optional text that will appear in the outliner to help organize Smart Prop elements and communicate their purpose to other users. MPropertyFriendlyName Label
0x58m_SelectionCriteriaCUtlVector< CSmartPropSelectionCriteria* >CSmartPropElementMPropertyFriendlyName Selection Criteria MVDataPromoteField 2
0x70m_ModifiersCUtlVector< CSmartPropModifier* >CSmartPropElementMPropertyFriendlyName Modifiers MVDataPromoteField 2
0x88m_sModelNameCSmartPropAttributeModelNameMPropertyDescription Name of the model resource (.vmdl) to place. MPropertyProvidesEditContextString ToolEditContext_ID_VMDL
0xc8m_MaterialGroupNameCSmartPropAttributeMaterialGroupMPropertyDescription Specifies the name of the material group (skin) to use when displaying the specified model. MPropertyFriendlyName Material Group
0x108m_bCastShadowsCSmartPropAttributeBoolMPropertyDescription Should the entity created by this element cast shadows. MPropertyFriendlyName Cast Shadows
0x148m_bForceStaticCSmartPropAttributeBoolMPropertyDescription Force this model to be placed as a static model rather then generating an entity. MPropertyFriendlyName Force Static
0x188m_nDeformableAttachmentModeSmartPropDeformableAttachMode_tMPropertyDescription If the smart prop is child of a deformable entity, this setting specifies how the entity generated by this element will be attached to the deformable surface. MPropertyFriendlyName Attachment Mode MPropertyGroupName Deformable Entity Settings MPropertySortPriority -1 MPropertySuppressExpr m_bForceStatic == true
0x18cm_nDeformableOrientationModeSmartPropDeformableOrientMode_tMPropertyDescription If the smart prop is child of a deformable entity, this setting specifies how the entity generated by this element will be oriented relative to the deformable surface. MPropertyGroupName Deformable Entity Settings MPropertySortPriority -1 MPropertySuppressExpr m_bForceStatic == true