CSmartPropOperation_CreateRotator
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 800 bytes (0x320)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Create a rotator that will be displayed at the current location, allowing the user to manipulate a rotation around an axis. The rotation value can be applied to the current transform as well as saved to a variable. MPropertyFriendlyName Create Rotator MVDataClassGroup Manipulators
Relationships
Inherits from: CSmartPropTransformOperation
Inheritance tree
CSmartPropModifier
CSmartPropOperation
CSmartPropTransformOperation
- CSmartPropOperation_CreateRotator
Relationship diagram (4 edges)
classDiagram
CSmartPropModifier <|-- CSmartPropOperation
CSmartPropOperation <|-- CSmartPropTransformOperation
CSmartPropTransformOperation <|-- CSmartPropOperation_CreateRotator
CSmartPropOperation_CreateRotator *-- CSmartPropAttributeCoordinateSpaceMemory layout
14 fields, 13 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropModifierCSmartPropOperation_CreateRotator
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropModifier | MVDataEnableKey |
0x50 | m_Name | CUtlString | MPropertyDescription Name used to identify the rotator. Must be unique within the parent element. MPropertyFriendlyName Name | |
0x58 | m_vOffset | CSmartPropAttributeVector | MPropertyDescription Offset of the rotator relative to the current transform. This allows the rotator to be created at an offset location without applying that offset to the current transform. | |
0x98 | m_vRotationAxis | CSmartPropAttributeVector | MPropertyDescription Axis around which the rotation will occur | |
0xd8 | m_CoordinateSpace | CSmartPropAttributeCoordinateSpace | MPropertyDescription Coordinate space the axis of rotation is specified in. | |
0x118 | m_flDisplayRadius | CSmartPropAttributeFloat | MPropertyDescription Radius at which the rotator handle should be displayed. | |
0x158 | m_DisplayColor | CSmartPropAttributeColor | MPropertyDescription Color to display the rotator handle with. | |
0x198 | m_bApplyToCurrentTransform | CSmartPropAttributeBool | MPropertyDescription Should the rotation be applied to the current transform. | |
0x1d8 | m_flSnappingIncrement | CSmartPropAttributeFloat | MPropertyDescription Specifies the number of degrees the rotation should snap to. If set to 0, then the rotation snapping will be controlled by the rotation snapping in Hammer. | |
0x218 | m_flInitialAngle | CSmartPropAttributeFloat | MPropertyDescription Specifies the angle the rotator should be set to initially. | |
0x258 | m_bEnforceLimits | CSmartPropAttributeBool | MPropertyDescription If enabled, the minimum and maximum rotation angles will be used to limit the range of the rotation. MPropertyFriendlyName Enforce Limits | |
0x298 | m_flMinAngle | CSmartPropAttributeFloat | MPropertyDescription Specifies the minimum angle limit in degrees MPropertyFriendlyName Minimum Angle MPropertyReadonlyExpr m_bEnforceLimits == false | |
0x2d8 | m_flMaxAngle | CSmartPropAttributeFloat | MPropertyDescription Specifies the minimum angle limit in degrees MPropertyFriendlyName Maximum Angle MPropertyReadonlyExpr m_bEnforceLimits == false | |
0x318 | m_OutputVariable | CUtlString | MPropertyAttributeEditor SmartPropItemNameEditor( Variable:Float ) MPropertyDescription Specifies a float variable to which the rotation value should be output. The variable only receives the rotation around the axis, the axis of rotation does not affect this output. |
KV3 class defaults
{
"_class": "CSmartPropOperation_CreateRotator",
"m_bEnabled": true,
"m_Name": "",
"m_vOffset":
[
0.000000,
0.000000,
0.000000
],
"m_vRotationAxis":
[
0.000000,
0.000000,
1.000000
],
"m_CoordinateSpace": "ELEMENT",
"m_flDisplayRadius": 16.000000,
"m_DisplayColor":
[
170,
170,
110
],
"m_bApplyToCurrentTransform": true,
"m_flSnappingIncrement": 0.000000,
"m_flInitialAngle": 0.000000,
"m_bEnforceLimits": false,
"m_flMinAngle": 0.000000,
"m_flMaxAngle": 0.000000,
"m_OutputVariable": ""
}