CSmartPropOperation_SetMateraialGroupChoice
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 240 bytes (0xf0)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Picks a material group from a set of choices and assigns that material group to a specified variable. MPropertyFriendlyName Set Material Group Choice MVDataClassGroup Material
Relationships
Inherits from: CSmartPropOperation
Inheritance tree
CSmartPropModifier
CSmartPropOperation
- CSmartPropOperation_SetMateraialGroupChoice
Relationship diagram (4 edges)
classDiagram
CSmartPropModifier <|-- CSmartPropOperation
CSmartPropOperation <|-- CSmartPropOperation_SetMateraialGroupChoice
CSmartPropOperation_SetMateraialGroupChoice *-- CSmartPropAttributeChoiceSelectionMode
CSmartPropOperation_SetMateraialGroupChoice *-- MaterialGroupChoice_tMemory layout
5 fields, 4 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropModifierCSmartPropOperation_SetMateraialGroupChoice
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropModifier | MVDataEnableKey |
0x50 | m_VariableName | CUtlString | MPropertyAttributeEditor SmartPropItemNameEditor( Variable:MaterialGroup ) MPropertyDescription Material group variable to set to the selected choice. MPropertyProvidesEditContextString ToolEditContext_ID_SmartProp_Variable | |
0x58 | m_SelectionMode | CSmartPropAttributeChoiceSelectionMode | MPropertyDescription Specifies how the material group is to be selected from the authored set of choices MPropertyFriendlyName Selection Mode | |
0x98 | m_ChoiceSelection | CSmartPropAttributeInt | MPropertyDescription Specifies the index of the material group choice to pick MPropertyFriendlyName Choice Index MPropertySuppressExpr ( m_SelectionMode != SPECIFIC ) | |
0xd8 | m_MaterialGroupChoices | CUtlVector< MaterialGroupChoice_t > | MPropertyAutoExpandSelf |
KV3 class defaults
{
"_class": "CSmartPropOperation_SetMateraialGroupChoice",
"m_bEnabled": true,
"m_VariableName": "",
"m_SelectionMode": "RANDOM",
"m_ChoiceSelection": 0,
"m_MaterialGroupChoices":
[
]
}