Point posecontroller: Difference between revisions
Jump to navigation
Jump to search
Note:The posecontroller resets the prop's default animations.
Bug:Using an invalid or non-existant Pose Parameter will crash the game. [todo tested in ?]
Bug:
Bug:The value must have a trailing decimal (such as .0), or it will completely break the pose controller. [todo tested in ?]
m (→Inputs: Substituted IO templates) |
SirYodaJedi (talk | contribs) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{CD|CPoseController|file1=point_posecontroller.cpp}} | {{CD|CPoseController|file1=point_posecontroller.cpp}} | ||
{{this is a| | {{this is a|logical entity|name=point_posecontroller|since=Source 2007}} It controls a [[$poseparameter|pose parameter]] of a prop and cycles the pose clientside. | ||
{{note|The posecontroller resets the prop's default animations.}} | {{note|The posecontroller resets the prop's default animations.}} | ||
{{bug|Using an invalid or non-existant Pose Parameter will crash the game.}} | {{bug|Using an invalid or non-existant Pose Parameter will crash the game.}} | ||
| Line 6: | Line 6: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Prop Name|intn=PropName| | {{KV|Prop Name|intn=PropName|target_destination|Name of the prop to control.}} | ||
{{bugfix|This keyvalue does not receive [[instance]] fixups, making the entity mostly unusable inside instances.|Change the keyvalue type from <code>string</code> to <code>target_destination</code> in the [[FGD]].}} | {{bugfix|This keyvalue does not receive [[instance]] fixups, making the entity mostly unusable inside instances.|Change the keyvalue type from <code>string</code> to <code>target_destination</code> in the [[FGD]].}} | ||
{{KV|Pose Parameter Name|intn=PoseParameterName|string|Name of the pose parameter to control.}} | {{KV|Pose Parameter Name|intn=PoseParameterName|string|Name of the pose parameter to control.}} | ||
Latest revision as of 10:52, 2 November 2025
| CPoseController |
point_posecontroller is a logical entity available in all
Source games since
Source 2007. It controls a pose parameter of a prop and cycles the pose clientside.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Prop Name (PropName) <targetname>
- Name of the prop to control.
Fix:Change the keyvalue type from stringtotarget_destinationin the FGD.
- Pose Parameter Name (PoseParameterName) <string>
- Name of the pose parameter to control.
- Pose Parameter Value (PoseValue) <float>
- Normalized value for the pose parameter from 0.0 and 1.0 (maps to min and max range).
Pose Paramater Value suffers from rounding or overflow errors. [todo tested in ?]- Clarify: What effect does this have?
Workaround:Apparently, constantly setting a new value using SetPoseValuecan be used as a workaround.
- Interpolation Time (InterpolationTime) <float>
- Number of seconds (0.0 to 10.0) for client to match absolute pose values.
- Should wrap from 0.0 to 1.0 when interpolating. (InterpolationWrap) <boolean>
- If set, wrap from 0.0 to 1.0 when interpolating.
- Cycle Frequency (CycleFrequency) <float>
- Base cycles per second from -10.0 to 10.0.
- Frequency Modulation Type (FModulationType) <choices>
- Control the way the interpolation blends between the poses.
Value Description 0None 1Sine 2Square 3Triangle 4Sawtooth 5Noise
- Frequency Modulation Time Offset (FModTimeOffset) <float>
- Modulation time offset from -1.0f to 1.0.
- Frequency Modulation Rate (FModRate) <float>
- Modulation cycles per second from -10.0f to 10.0.
- Frequency Modulation Amplitude (FModAmplitude) <float>
- Modulation extents from 0.0f to 10.0.
Inputs
- SetPoseParameterName <string>
- Sets the pose parameter to control.
- SetPoseValue <float>
- Set the pose parameter to a normalized value between 0.0 and 1.0 (maps to min and max range).
- SetInterpolationTime <float>
- Set the interpolation time to a number of seconds between 0.0 and 10.0.
- SetCycleFrequency <float>
- Set the pose parameter's base cycles per second from -10.0f to 10.0.
- SetFModType <integer>
- Set the type of frequency modulation.
- SetFModTimeOffset <float>
- Set the modulation time offset from -1.0f to 1.0.
- SetFModRate <float>
- Set the modulation cycles per second from -10.0f to 10.0.
- SetFModAmplitude <float>
- Set the modulation extents from 0.0f to 10.0.
- RandomizeFMod <float>
- Randomize the frequency modulation by an extremeness of 0.0 to 1.0.
- GetFMod
- Outputs the current modulation settings in console. !FGD