CSmartPropElement_PlaceInSphere
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 An element which places multiple instances of its child elements within a radius. MPropertyFriendlyName Place In Radius
Relationships
Inherits from: CSmartPropElement_Group
Inheritance tree
CSmartPropElement
CSmartPropElement_Group
- CSmartPropElement_PlaceInSphere
Relationship diagram (4 edges)
classDiagram
CSmartPropElement <|-- CSmartPropElement_Group
CSmartPropElement_Group <|-- CSmartPropElement_PlaceInSphere
CSmartPropElement_PlaceInSphere *-- CSmartPropAttributeRadiusPlacementMode
CSmartPropElement_PlaceInSphere *-- CSmartPropAttributeDistributionModeMemory layout
16 fields, 10 declared here and 6 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropElementCSmartPropElement_GroupCSmartPropElement_PlaceInSphere
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_nElementID | int32 | CSmartPropElement | MPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id |
0x10 | m_bEnabled | CSmartPropAttributeBool | CSmartPropElement | MPropertyDescription Is this element enabled? If not enabled, this element will not be evaluted and will have no effect on the result. MPropertySortPriority 10 MVDataEnableKey |
0x50 | m_sLabel | CUtlString | CSmartPropElement | MPropertyDescription Optional text that will appear in the outliner to help organize Smart Prop elements and communicate their purpose to other users. MPropertyFriendlyName Label |
0x58 | m_SelectionCriteria | CUtlVector< CSmartPropSelectionCriteria* > | CSmartPropElement | MPropertyFriendlyName Selection Criteria MVDataPromoteField 2 |
0x70 | m_Modifiers | CUtlVector< CSmartPropModifier* > | CSmartPropElement | MPropertyFriendlyName Modifiers MVDataPromoteField 2 |
0x88 | m_Children | CUtlVector< CSmartPropElement* > | CSmartPropElement_Group | MPropertyDescription List of child elements which will appear if this element appears MPropertyFriendlyName Children MVDataPromoteField 1 |
0xa0 | m_PlacementMode | CSmartPropAttributeRadiusPlacementMode | MPropertyDescription Specifies how the positions are computed based on the radius. | |
0xe0 | m_DistributionMode | CSmartPropAttributeDistributionMode | MPropertyDescription Specifies the method to be used to distribute. | |
0x120 | m_flRandomness | CSmartPropAttributeFloat | MPropertyDescription 0 to 1 value indicating the amout of random offset that should be applied to the reguluarly spaced positions MPropertySuppressExpr m_DistributionMode == RANDOM | |
0x160 | m_vPlaneUpDirection | CSmartPropAttributeVector | MPropertyDescription Vector up direction of the plane of the circle. This in the local space of the current element. MPropertySuppressExpr m_PlacementMode == SPHERE | |
0x1a0 | m_nCountMin | CSmartPropAttributeInt | MPropertyDescription Minimum number of instances of this object and its children to be placed. | |
0x1e0 | m_nCountMax | CSmartPropAttributeInt | MPropertyDescription Maximum number of instances of this object and its children to be placed. | |
0x220 | m_flPositionRadiusInner | CSmartPropAttributeFloat | MPropertyDescription Inner radius from the placement position where the model can appear. | |
0x260 | m_flPositionRadiusOuter | CSmartPropAttributeFloat | MPropertyDescription Outer radius from the placement position where the model can appear. | |
0x2a0 | m_bAlignOrientation | CSmartPropAttributeBool | MPropertyDescription Align the initial orientation of each placed object based on it position on the sphere or circle. | |
0x2e0 | m_vAlignDirection | CSmartPropAttributeVector | MPropertyDescription Vector in the local space of the child element to be aligned with sphere or circle MPropertyReadonlyExpr m_bAlignOrientation == false |
KV3 class defaults
{
"_class": "CSmartPropElement_PlaceInSphere",
"m_nElementID": -1,
"m_bEnabled": true,
"m_sLabel": "",
"m_SelectionCriteria":
[
],
"m_Modifiers":
[
],
"m_Children":
[
],
"m_PlacementMode": "SPHERE",
"m_DistributionMode": "RANDOM",
"m_flRandomness": 0.000000,
"m_vPlaneUpDirection":
[
0.000000,
0.000000,
1.000000
],
"m_nCountMin": 1,
"m_nCountMax": 1,
"m_flPositionRadiusInner": 0.000000,
"m_flPositionRadiusOuter": 0.000000,
"m_bAlignOrientation": false,
"m_vAlignDirection":
[
0.000000,
0.000000,
1.000000
]
}