Point posecontroller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table))
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=point_posecontroller}}
{{base point ep2|point_posecontroller}}} It controls a pose parameter of a prop and cycles the pose clientside.
{{base_point_ep2}}


==Entity Description==
== Keyvalues ==
An entity that controls a pose parameter of a prop and cycles the pose clientside.
{{KV|Prop Name|string|Name of the prop to control.}}
==Keyvalues==
{{KV|Pose Parameter Name|string|Name of the pose parameter to control.}}
* {{KV Targetname}}
{{KV|Pose Parameter Value|float|Normalized value for the pose parameter from 0.0 and 1.0 (maps to min and max range).}}
* '''PropName'''
{{KV|Interpolation Time|float|Number of seconds (0.0 to 10.0) for client to match absolue pose values.}}
: <target_destination> Name of the prop to control.
{{KV|Should wrap from 0.0 to 1.0 when interpolating.|boolean|If set, wrap from 0.0 to 1.0 when interpolating.}}
* '''PoseParameterName'''
{{KV|Cycle Frequency|float|Base cycles per second from -10.0 to 10.0.}}
: <string> Name of the pose parameter to control.
{{KV|Frequency Modulation Type|choices}}
* '''PoseValue'''
:{| class=standard-table
: <float> Normalized value for the pose parameter from 0.0 and 1.0 (maps to min and max range).
! Value || Description
* '''InterpolationTime'''
: <float> Number of seconds (0.0 to 10.0) for client to match absolue pose values.
* '''InterpolationWrap'''
: {{boolean}} If set, wrap from 0.0 to 1.0 when interpolating.
* '''CycleFrequency'''
: <float> Base cycles per second from -10.0 to 10.0.
* '''FModulationType'''
: <choices> Frequency Modulation Type
{| class=standard-table
! Literal Value || Description
|-
|-
| 0 || None
| <code>0</code> || None
|-
|-
| 1 || Sine
| <code>1</code> || Sine
|-
|-
| 2 || Square
| <code>2</code> || Square
|-
|-
| 3 || Triangle
| <code>3</code> || Triangle
|-
|-
| 4 || Sawtooth
| <code>4</code> || Sawtooth
|-
|-
| 5 || Noise
| <code>5</code> || Noise
|}
|}
* '''FModTimeOffset'''
{{KV|Frequency Modulation Time Offset|float|Modulation time offset from -1.0f to 1.0.}}
: <float> Modulation time offset from -1.0 to 1.0.
{{KV|Frequency Modulation Rate|float|Modulation cycles per second from -10.0f to 10.0.}}
* '''FModRate'''
{{KV|Frequency Modulation Amplitude|float|Modulation extents from 0.0f to 10.0.}}
: <float> Modulation cycles per second from -10.0 to 10.0.
{{KV Targetname}}
* '''FModAmplitude'''
 
: <float> Modulation extents from 0.0f to 10.0.
== Inputs ==
==Inputs==
{{IO|SetPoseParameterName|Sets the pose parameter to control.|param=string}}
* {{I Targetname}}
{{IO|SetPoseValue|Set the pose parameter to a normalized value between 0.0 and 1.0 (maps to min and max range).|param=float}}
* '''SetPoseParameterName <string>'''
{{IO|SetInterpolationTime|Set the interpolation time to a number of seconds between 0.0 and 10.0.|param=float}}
: Sets the pose parameter to control.
{{IO|SetCycleFrequency|Set the pose parameter's base cycles per second from -10.0f to 10.0.|param=float}}
* '''SetPoseValue <float>'''
{{IO|SetFModType|Set the type of frequency modulation.|param=integer}}
: Set the pose parameter to a normalized value between 0.0 and 1.0 (maps to min and max range).
{{IO|SetFModTimeOffset|Set the modulation time offset from -1.0f to 1.0.|param=float}}
* '''SetInterpolationTime <float>'''
{{IO|SetFModRate|Set the modulation cycles per second from -10.0f to 10.0.|param=float}}
: Set the interpolation time to a number of seconds between 0.0 and 10.0.
{{IO|SetFModAmplitude|Set the modulation extents from 0.0f to 10.0.|param=float}}
* '''SetCycleFrequency <float>'''
{{IO|RandomizeFMod|Randomize the frequency modulation by an extremeness of 0.0 to 1.0.|param=float}}
: Set the pose parameter's base cycles per second from -10.0 to 10.0.
{{I Targetname}}
* '''SetFModType <integer>'''
 
: Set the type of frequency modulation.
== Outputs ==
* '''SetFModTimeOffset <float>'''
{{O Targetname}}
: Set the modulation time offset from -1.0 to 1.0.
* '''SetFModRate <float>'''
: Set the modulation cycles per second from -10.0 to 10.0.
* '''SetFModAmplitude <float>'''
: Set the modulation extents from 0.0 to 10.0.
* '''RandomizeFMod <float>'''
: Randomize the frequency modulation by an extremeness of 0.0 to 1.0.
==Outputs==
* {{O Targetname}}

Revision as of 05:32, 28 July 2011

Template:Base point ep2} It controls a pose parameter of a prop and cycles the pose clientside.

Keyvalues

Prop Name ([todo internal name (i)]) <string>
Name of the prop to control.
Pose Parameter Name ([todo internal name (i)]) <string>
Name of the pose parameter to control.
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).
Interpolation Time ([todo internal name (i)]) <float>
Number of seconds (0.0 to 10.0) for client to match absolue 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.
Cycle Frequency ([todo internal name (i)]) <float>
Base cycles per second from -10.0 to 10.0.
Frequency Modulation Type ([todo internal name (i)]) <choices>
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.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

SetPoseParameterName <stringRedirectInput/string>
Sets the pose parameter to control.
SetPoseValue <floatRedirectInput/float>
Set the pose parameter to a normalized value between 0.0 and 1.0 (maps to min and max range).
SetInterpolationTime <floatRedirectInput/float>
Set the interpolation time to a number of seconds between 0.0 and 10.0.
SetCycleFrequency <floatRedirectInput/float>
Set the pose parameter's base cycles per second from -10.0f to 10.0.
SetFModType <integerRedirectInput/integer>
Set the type of frequency modulation.
SetFModTimeOffset <floatRedirectInput/float>
Set the modulation time offset from -1.0f to 1.0.
SetFModRate <floatRedirectInput/float>
Set the modulation cycles per second from -10.0f to 10.0.
SetFModAmplitude <floatRedirectInput/float>
Set the modulation extents from 0.0f to 10.0.
RandomizeFMod <floatRedirectInput/float>
Randomize the frequency modulation by an extremeness of 0.0 to 1.0.


Outputs