Point posecontroller: Difference between revisions
Jump to navigation
Jump to search
Note:The posecontroller resets the prop's default animations.
Bug:
(Note + bug) |
(updates) |
||
Line 1: | Line 1: | ||
{{base point ep2|point_posecontroller}} It controls a pose parameter of a prop and cycles the pose clientside. | {{base point ep2|point_posecontroller}} It controls a 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.}} | ||
{{ | {{code class|CPoseController|point_posecontroller.cpp}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Prop Name|string|Name of the prop to control.}} | {{KV|Prop Name|string|Name of the prop to control.}} | ||
{{KV|Pose Parameter Name|string|Name of the pose parameter to control.}} | {{KV|Pose Parameter Name|string|Name of the pose parameter to control.}} | ||
{{KV|Pose Parameter Value|float|Normalized value for the pose parameter from 0.0 and 1.0 (maps to min and max range).}} | {{KV|Pose Parameter Value|float|Normalized value for the pose parameter from 0.0 and 1.0 (maps to min and max range).}} | ||
{{bug|<code>Pose Paramater Value</code> suffers from rounding or overflow errors, the only fix is to constantly set a new value using <code>SetPoseValue</code>.}} | |||
{{KV|Interpolation Time|float|Number of seconds (0.0 to 10.0) for client to match absolute pose values.}} | {{KV|Interpolation Time|float|Number of seconds (0.0 to 10.0) for client to match absolute pose values.}} | ||
{{KV|Should wrap from 0.0 to 1.0 when interpolating.|boolean|If set, wrap from 0.0 to 1.0 when interpolating.}} | {{KV|Should wrap from 0.0 to 1.0 when interpolating.|boolean|If set, wrap from 0.0 to 1.0 when interpolating.}} | ||
{{KV|Cycle Frequency|float|Base cycles per second from -10.0 to 10.0.}} | {{KV|Cycle Frequency|float|Base cycles per second from -10.0 to 10.0.}} | ||
{{KV|Frequency Modulation Type|choices|Control the way the interpolation blends between the poses.}} | {{KV|Frequency Modulation Type|choices|Control the way the interpolation blends between the poses.}} | ||
{| class=standard-table | :{| class=standard-table | ||
! Value || Description | ! Value || Description | ||
|- | |- | ||
Line 28: | Line 29: | ||
{{KV|Frequency Modulation Rate|float|Modulation cycles per second from -10.0f to 10.0.}} | {{KV|Frequency Modulation Rate|float|Modulation cycles per second from -10.0f to 10.0.}} | ||
{{KV|Frequency Modulation Amplitude|float|Modulation extents from 0.0f to 10.0.}} | {{KV|Frequency Modulation Amplitude|float|Modulation extents from 0.0f to 10.0.}} | ||
{{KV | {{KV BaseEntity}} | ||
== Inputs == | == Inputs == | ||
Line 40: | Line 41: | ||
{{IO|SetFModAmplitude|Set the modulation extents from 0.0f to 10.0.|param=float}} | {{IO|SetFModAmplitude|Set the modulation extents from 0.0f to 10.0.|param=float}} | ||
{{IO|RandomizeFMod|Randomize the frequency modulation by an extremeness of 0.0 to 1.0.|param=float}} | {{IO|RandomizeFMod|Randomize the frequency modulation by an extremeness of 0.0 to 1.0.|param=float}} | ||
{{IO|GetFMod|Outputs the current modulation settings in console. | {{IO|GetFMod|Outputs the current modulation settings in console.}} {{Not in FGD}} | ||
{{I | {{I BaseEntity}} | ||
== Outputs == | == Outputs == | ||
{{O | {{O BaseEntity|l4d=1}} |
Revision as of 01:32, 9 September 2018
Template:Base point ep2 It controls a pose parameter of a prop and cycles the pose clientside.

Keyvalues
- Pose Parameter Value ([todo internal name (i)]) <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, the only fix is to constantly set a new value using SetPoseValue
. [todo tested in ?]- Interpolation Time ([todo internal name (i)]) <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. ([todo internal name (i)]) <boolean>
- If set, wrap from 0.0 to 1.0 when interpolating.
- Frequency Modulation Type ([todo internal name (i)]) <choices>
- Control the way the interpolation blends between the poses.
Value Description 0
None 1
Sine 2
Square 3
Triangle 4
Sawtooth 5
Noise
- Frequency Modulation Time Offset ([todo internal name (i)]) <float>
- Modulation time offset from -1.0f to 1.0.
- Frequency Modulation Rate ([todo internal name (i)]) <float>
- Modulation cycles per second from -10.0f to 10.0.
- Frequency Modulation Amplitude ([todo internal name (i)]) <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