point_posecontroller
Jump to navigation
Jump to search
Code classes:
CPoseController
CBaseEntity
(all ents)
point_posecontroller
is a point entity present in all Source games. It manipulates a $poseparameter
on a prop.
Note: Will interfere with other animations.
Warning: Trying to modulate a non-existent pose param will cause a crash.
To do: Find a working example, and rewrite according to findings from that!
Keyvalues[edit | edit source]
- Prop Name
(PropName)
<target_destination>
- Name of the prop to control.
- Pose Parameter Name
(PoseParameterName)
<string>
- Name of the
$poseparameter
to control. To do: Is there a more convenient way of viewing these than decompiling the model? - Pose Parameter Value
(PoseValue)
<float>
- Value to set the pose param to. 0 min, 1 max.
- Interpolation Time
(InterpolationTime)
<float>
- How many seconds it takes the prop to shift to the pose specified by this entity. 0 min, 10 max.
- Should wrap from 0.0 to 1.0 when interpolating
(InterpolationWrap)
<boolean>
- To do: Description.
- Cycle Frequency
(CycleFrequency)
<float>
- How many times to cycle through the parameter per second. -10 min, 10 max.
- Frequency Modulation Type
(FModulationType)
<choices>
- How to cycle through the parameter.
- 0: None
- 1: Sine
- 2: Square
- 3: Triangle
- 4: Sawtooth
- 5: Noise
- Frequency Modulation Time Offset
(FModTimeOffset)
<float>
- Modulation time offset.[Clarify] -1 min, 1 max.
- Frequency Modulation Rate
(FModRate)
<float>
- Modulation cycles per second. -10 min, 10 max. Clarify: How is this different from Cycle Frequency.
- Frequency Modulation Amplitude
(FModAmplitude)
<float>
- Scale of the modulation. 0 min, 10 max.
Inputs[edit | edit source]
- SetPoseParameterName
<string>
- Sets Pose Parameter Name.
- SetPoseValue
<float>
- Sets Pose Parameter Value.
- SetInterpolationTime
<float>
- Sets Interpolation Time.
- SetCycleFrequency
<float>
- Sets Cycle Frequency.
- SetFModType
<integer>
- Sets Frequency Modulation Type.
- SetFModTimeOffset
<float>
- Sets Frequency Modulation Time Offset.
- SetFModRate
<float>
- Sets Frequency Modulation Rate.
- SetFModAmplitude
<float>
- Sets Frequency Modulation Amplitude.
- RandomizeFMod
<float>
- Sets Frequency Modulation Type to a random type, sets Frequency Modulation Time Offset to a random amount, and sets the Rate and Amplitude to a random amount which is more or less apparent depending on the value of the parameter (0 to 1).
- GetFMod (Not in FGD)
- Prints modulation info to the console. (Requires
developer 1
in the console before taking effect.)