Skip to content

CSmartPropOperation_MaterialOverride

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

Kind: classSize: 168 bytes (0xa8)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Specifies a table of material replacements to apply to all following models. Mapping goes from the material specified by the model (including material group selection) to the replacement material. Previous material overrides are not considered when determining the base material. MPropertyFriendlyName Material Override MVDataClassGroup Material

Relationships

Inherits from: CSmartPropOperation

Inheritance tree
Relationship diagram (3 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropOperation_MaterialOverride
    CSmartPropOperation_MaterialOverride *-- CSmartPropMaterialReplacement
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropModifierCSmartPropOperation_MaterialOverride

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_bClearCurrentOverridesCSmartPropAttributeBoolMPropertyDescription If enabled, clear any previous material overrides, so that only the material replacements specified in this table will be active. MPropertyFriendlyName Clear Active Overrides
0x90m_MaterialReplacementsCUtlVector< CSmartPropMaterialReplacement >MPropertyAutoExpandSelf MPropertyDescription Table specifying pairs of existing materials and the material to replace them with. MPropertyFriendlyName Material Replacements
KV3 class defaults
{
	"_class": "CSmartPropOperation_MaterialOverride",
	"m_bEnabled": true,
	"m_bClearCurrentOverrides": false,
	"m_MaterialReplacements":
	[
	]
}