Skip to content

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
Relationship diagram (4 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropOperation_SetMateraialGroupChoice
    CSmartPropOperation_SetMateraialGroupChoice *-- CSmartPropAttributeChoiceSelectionMode
    CSmartPropOperation_SetMateraialGroupChoice *-- MaterialGroupChoice_t
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropModifierCSmartPropOperation_SetMateraialGroupChoice

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_VariableNameCUtlStringMPropertyAttributeEditor SmartPropItemNameEditor( Variable:MaterialGroup ) MPropertyDescription Material group variable to set to the selected choice. MPropertyProvidesEditContextString ToolEditContext_ID_SmartProp_Variable
0x58m_SelectionModeCSmartPropAttributeChoiceSelectionModeMPropertyDescription Specifies how the material group is to be selected from the authored set of choices MPropertyFriendlyName Selection Mode
0x98m_ChoiceSelectionCSmartPropAttributeIntMPropertyDescription Specifies the index of the material group choice to pick MPropertyFriendlyName Choice Index MPropertySuppressExpr ( m_SelectionMode != SPECIFIC )
0xd8m_MaterialGroupChoicesCUtlVector< MaterialGroupChoice_t >MPropertyAutoExpandSelf
KV3 class defaults
{
	"_class": "CSmartPropOperation_SetMateraialGroupChoice",
	"m_bEnabled": true,
	"m_VariableName": "",
	"m_SelectionMode": "RANDOM",
	"m_ChoiceSelection": 0,
	"m_MaterialGroupChoices":
	[
	]
}