math_remap
Jump to navigation
Jump to search
Code classes:
CMathRemap
CLogicalEntity
CServerOnlyEntity
CBaseEntity
(all ents)
math_remap
is a point entity present in all Source games. Given two boundaries, it translates an input value to what its value would be relative to two other boundaries.
Flags[edit | edit source]
- 1: Ignore out of range input values - If the input value is outside the min/max range, ignore that input entirely. Otherwise, OutValue may pass values outside the min/max output value range when sent a value outside the input range.
- 2: Clamp output to output range (Not in FGD) - Forces the output value to be in its given range (in case the input value was outside of its own).
Keyvalues[edit | edit source]
- Minimum Valid Input Value
(in1)
<float>
- Lower limit for values received by InValue.
- Maximum Valid Input Value
(in2)
<float>
- Upper limit for values received by InValue.
- Output Value When Input Is Min
(out1)
<float>
- Lower limit for values passed from OutValue.
- Output Value When Input Is Max
(out2)
<float>
- Upper limit for values passed from OutValue.
Start Disabled(StartDisabled)
<boolean>
- Doesn't actually exist.
Inputs[edit | edit source]
- InValue
<float>
- When given a value between Minimum Valid Input Value and Maximum Valid Input Value, this input will fire OutValue with a number between Output Value When Input Is Min and Output Value When Input Is Max.
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.
Outputs[edit | edit source]
- OutValue
<float>
- Fires when InValue is sent. Automatically puts a number as the input parameter, unless overridden by the mapper.