Smartprop Elements

From Valve Developer Community
Jump to: navigation, search
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

CSmartPropElement_ModifyState

Todo: Add class members

CSmartPropElement_Group

Todo: Add class members

CSmartPropElement_Model

m_sModelName
Asset path of the model to display
m_vModelScale
Scale of the model, defaults to [1.0, 1.0, 1.0]
m_MaterialGroupName
The material group to use for this model

CSmartPropElement_SmartProp

m_sSmartProp
Asset path of the Smart Prop to display
m_vModelScale
Scale of the model, defaults to [1.0, 1.0, 1.0]
m_MaterialGroupName
The material group to use for this model

CSmartPropElement_PlaceInSphere

Todo: Add class members

CSmartPropElement_PlaceMultiple

Todo: Add class members

CSmartPropElement_PlaceOnPath

m_PathName
Name of the path to use. This path name will show up in the property editor when selecting a placement of this smart prop in Hammer, allowing selection of a path object in the map to use.
m_vPathOffset
Offset to apply to the path, specifies a horizontal and vertical offset to apply relative to the up direction.
m_flOffsetAlongPath
Offset from the start of the path to place the first point.
m_flSpacing
Specifies the space in which the provided input path is to be evaluated.
m_DefaultPath
Specifies a default spline path, useful for previewing the smart prop before creating a custom spline.

CSmartPropElement_FitOnLine

m_vStart
Specifies the start point of the line in the specified coordinate space.
m_vEnd
Specifies the end point of the line in the specified coordinate space.
m_PointSpace
Specifies the coordinate space in which the end point values are specified.
m_bOrientAlongLine
Should the child elements be oriented based on the line. If enabled the child elements placed on the line will be oriented such that their +x axis points along the line towards the end point.
m_vUpDirection
Up vector which is used to determine the rotation of each element around the line.
m_nScaleMode
Specifies how scale is applied to each of the selected element in order to fit them to the line.
m_nPickMode
Child Selection Mode

CSmartPropElement_PickOne

m_SelectionMode
"RANDOM" or "FIRST"
m_vHandleOfffset
Offset from element
m_HandleColor
Handle Display Color
m_HandleSize
Handle size in screen space
m_HandleShape
"SQUARE", "DIAMOND", or "CIRCLE"

CSmartPropElement_BendDeformer

m_bDeformationEnabled
Should the deformation be applied.
If disabled the children will still be placed, but will not be deformed.
Esentially making the element behave as a group.
m_vSize
Size of the base volume to be deformed.
m_vOrigin
A local offset to apply to the base volume of the deformer that will not apply to its children.
m_vAngles
A local rotation to apply to apply the base volume of the deformer that will not apply to its children.
This can be used to alter the direction of the deformation.
m_flBendAngle
Bend amount to apply, specified in degrees.
Bend occurs along the local x-axis and bends around the local z-axis
m_flBendRadius
Radius of the bend.
If 0 the radius will be computed automatically to preserve the length of the inner edge of the x-axis.
If a non-zero value is specified then the inner edge will maintain this radius, but its length will change.
Wikipedia - Letter.png
This article has not been added to any content Wikipedia icon categories. Please help out by Wikipedia icon adding categories.
January 2024