Math remap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 15: Line 15:
*'''out2''' <float>  
*'''out2''' <float>  
:When the input value is equal to 'Maximum Valid Input Value' ('''in2'''), this is the output value.
:When the input value is equal to 'Maximum Valid Input Value' ('''in2'''), this is the output value.
*{{kv enabledisable ep1}}
*{{KV EnableDisableEP1}}
==Flags==
==Flags==
*1 : Ignore out of range input values
*1 : Ignore out of range input values

Revision as of 19:46, 19 January 2009

Template:Wrongtitle Template:Base point

Entity Description

An entity that remaps a range of input values to a given range of output values.

Keyvalues

Input values below this value will be ignored.
  • in2 <float>
Input values above this value will be ignored.
  • out1 <float>
When the input value is equal to 'Minimum Valid Input Value' (in1), this is the output value.
  • out2 <float>
When the input value is equal to 'Maximum Valid Input Value' (in2), this is the output value.

Flags

  • 1 : Ignore out of range input values

Inputs

  • InValue <float>
Input value and fire the output with the remapped value.

Outputs

Fired when the InValue input is received, with the remapped input value as the parameter.