Skip to content

CSmartPropOperation_CreateLocator

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

Kind: classSize: 472 bytes (0x1d8)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Create a locator with the current transform. The locator may optionally be configurable, so that its transform can be modified in Hammer. MPropertyFriendlyName Create Locator MVDataClassGroup Manipulators

Relationships

Inherits from: CSmartPropTransformOperation

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

Memory layout

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

CSmartPropModifierCSmartPropOperation_CreateLocator

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_LocatorNameCUtlStringMPropertyAttributeEditor SmartPropItemNameEditor( Locator ) MPropertyDescription Name of the locator. This can be used to reference the locator in this element or its children. If the locator is configurable, the locator will be identified by this name in Hammer. MPropertyFriendlyName Name
0x58m_vOffsetCSmartPropAttributeVectorMPropertyDescription Offset of the locator relative to the current transform. This allows the locator to be created at an offset location without applying that offset to the current transform.
0x98m_flDisplayScaleCSmartPropAttributeFloatMPropertyDescription Scale to apply only to the locator model
0xd8m_bConfigurableCSmartPropAttributeBoolMPropertyDescription Controls whether or not the locator can be edited in a smart prop configuration. If enabled an editable locator will appear when the smart prop is placed in Hammer. Any changes to that locator will modify the current transform.
0x118m_bAllowTranslationCSmartPropAttributeBoolMPropertyGroupName Configuration MPropertyReadonlyExpr m_bConfigurable == false
0x158m_bAllowRotationCSmartPropAttributeBoolMPropertyGroupName Configuration MPropertyReadonlyExpr m_bConfigurable == false
0x198m_bAllowScaleCSmartPropAttributeBoolMPropertyDescription Controls whether or not the configuration of the locator can include scale. If enabled scale can be applied to the editable locator in Hammer. If disabled the scale will not be editable and the current scale will be used. MPropertyGroupName Configuration MPropertyReadonlyExpr m_bConfigurable == false
KV3 class defaults
{
	"_class": "CSmartPropOperation_CreateLocator",
	"m_bEnabled": true,
	"m_LocatorName": "",
	"m_vOffset":
	[
		0.000000,
		0.000000,
		0.000000
	],
	"m_flDisplayScale": 1.000000,
	"m_bConfigurable": true,
	"m_bAllowTranslation": true,
	"m_bAllowRotation": true,
	"m_bAllowScale": false
}