CSmartPropVariable_Model
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 280 bytes (0x118)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Model Asset Variable MPropertyFriendlyName Model
Relationships
Inherits from: CSmartPropVariable
Inheritance tree
CSmartPropParameter
CSmartPropVariable
- CSmartPropVariable_Model
Relationship diagram (3 edges)
classDiagram
CSmartPropParameter <|-- CSmartPropVariable
CSmartPropVariable <|-- CSmartPropVariable_Model
CSmartPropVariable_Model *-- InfoForResourceTypeCModelMemory layout
7 fields, 1 declared here and 6 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropParameterCSmartPropVariableCSmartPropVariable_Model
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_nElementID | int32 | CSmartPropParameter | MPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id |
0x10 | m_VariableName | CUtlString | CSmartPropVariable | |
0x18 | m_bExposeAsParameter | bool | CSmartPropVariable | MPropertyDescription If enabled, this value will be exposed as a parameter that can be set on the smart prop object in hammer. MPropertySortPriority -1 |
0x20 | m_DisplayName | CUtlString | CSmartPropVariable | MPropertyDescription Name of the parameter which will appear as a property in the Hammer object properties ui when selecting an object using this smart prop. MPropertyFriendlyName Parameter Display Name MPropertyReadonlyExpr m_bExposeAsParameter == false MPropertySortPriority -1 |
0x28 | m_HideExpression | CUtlString | CSmartPropVariable | MPropertyDescription Expression to evaluate to determine if this parameter should be hidden. Can be used to hide this parameter based on the state of other parameters. MPropertyReadonlyExpr m_bExposeAsParameter == false MPropertySortPriority -1 |
0x30 | m_ReadOnlyExpression | CUtlString | CSmartPropVariable | MPropertyDescription Expression to evaluate to detemrine if this parameter should be read-only. Can be used to make this parameter read-only based on the state of other parameters. MPropertyReadonlyExpr m_bExposeAsParameter == false MPropertySortPriority -1 |
0x38 | m_DefaultValue | CResourceNameTyped< CWeakHandle< InfoForResourceTypeCModel > > | MPropertyFriendlyName Default Model |
KV3 class defaults
{
"_class": "CSmartPropVariable_Model",
"m_nElementID": -1,
"m_VariableName": "",
"m_bExposeAsParameter": false,
"m_DisplayName": "",
"m_HideExpression": "",
"m_ReadOnlyExpression": "",
"m_DefaultValue": ""
}