Skip to content

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

Memory layout

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

CSmartPropModifierCSmartPropOperation_CreateRotator

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_NameCUtlStringMPropertyDescription Name used to identify the rotator. Must be unique within the parent element. MPropertyFriendlyName Name
0x58m_vOffsetCSmartPropAttributeVectorMPropertyDescription 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.
0x98m_vRotationAxisCSmartPropAttributeVectorMPropertyDescription Axis around which the rotation will occur
0xd8m_CoordinateSpaceCSmartPropAttributeCoordinateSpaceMPropertyDescription Coordinate space the axis of rotation is specified in.
0x118m_flDisplayRadiusCSmartPropAttributeFloatMPropertyDescription Radius at which the rotator handle should be displayed.
0x158m_DisplayColorCSmartPropAttributeColorMPropertyDescription Color to display the rotator handle with.
0x198m_bApplyToCurrentTransformCSmartPropAttributeBoolMPropertyDescription Should the rotation be applied to the current transform.
0x1d8m_flSnappingIncrementCSmartPropAttributeFloatMPropertyDescription 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.
0x218m_flInitialAngleCSmartPropAttributeFloatMPropertyDescription Specifies the angle the rotator should be set to initially.
0x258m_bEnforceLimitsCSmartPropAttributeBoolMPropertyDescription If enabled, the minimum and maximum rotation angles will be used to limit the range of the rotation. MPropertyFriendlyName Enforce Limits
0x298m_flMinAngleCSmartPropAttributeFloatMPropertyDescription Specifies the minimum angle limit in degrees MPropertyFriendlyName Minimum Angle MPropertyReadonlyExpr m_bEnforceLimits == false
0x2d8m_flMaxAngleCSmartPropAttributeFloatMPropertyDescription Specifies the minimum angle limit in degrees MPropertyFriendlyName Maximum Angle MPropertyReadonlyExpr m_bEnforceLimits == false
0x318m_OutputVariableCUtlStringMPropertyAttributeEditor 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": ""
}