CSmartPropOperation_RestoreState
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 208 bytes (0xd0)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Replace the current state with a previously saved state. MPropertyFriendlyName Restore State MVDataClassGroup State MVDataNodeTintColor
Relationships
Inherits from: CSmartPropOperation
Inheritance tree
CSmartPropModifier
CSmartPropOperation
- CSmartPropOperation_RestoreState
Relationship diagram (2 edges)
classDiagram
CSmartPropModifier <|-- CSmartPropOperation
CSmartPropOperation <|-- CSmartPropOperation_RestoreStateMemory layout
3 fields, 2 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropModifierCSmartPropOperation_RestoreState
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropModifier | MVDataEnableKey |
0x50 | m_StateName | CSmartPropAttributeStateName | MPropertyAttributeEditor SmartPropItemNameEditor( SavedState ) MPropertyDescription Name of the previously saved state to restore | |
0x90 | m_bDiscardIfUknown | CSmartPropAttributeBool | MPropertyDescription If true, the parent element will be discarded there is no state with the specified name. If false, and there is no state with the specified name then no changes are made. |
KV3 class defaults
{
"_class": "CSmartPropOperation_RestoreState",
"m_bEnabled": true,
"m_StateName": "",
"m_bDiscardIfUknown": false
}