Smartprop Elements
Jump to navigation
Jump to search
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_PathSpace
- Specifies the space in which the provided input path is to be evalauted.
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"