Enum FlexOpCode ​
Namespace: ValveResourceFormat
Assembly: ValveResourceFormat.dll
Opcodes of the postfix stack machine that evaluates a flex rule.
public enum FlexOpCodeFields ​
Const = 1
Pushes a constant. The operand is a float bit pattern.
Fetch1 = 2
Pushes the value of the flex controller the operand indexes.
Fetch2 = 3
Pushes the value of the flex the operand indexes.
Add = 4
Adds the top two stack values.
Sub = 5
Subtracts the top stack value from the one below it.
Mul = 6
Multiplies the top two stack values.
Div = 7
Divides the value below the top of the stack by the top one.
Neg = 8
Negates the top stack value.
Exp = 9
Raises the value below the top of the stack to the power of the top one.
Open = 10
Opening parenthesis, consumed by the expression parser.
Close = 11
Closing parenthesis, consumed by the expression parser.
Comma = 12
Argument separator, consumed by the expression parser.
Max = 13
Pushes the larger of the top two stack values.
Min = 14
Pushes the smaller of the top two stack values.
TwoWay0 = 15
Lower half of a two way blend.
TwoWay1 = 16
Upper half of a two way blend.
NWay = 17
Multi way blend across a controller range.
Combo = 18
Combination of several flexes.
Dominate = 19
Suppression of one flex by another.
DmeLowerEyelid = 20
Lower eyelid tracking.
DmeUpperEyelid = 21
Upper eyelid tracking.
Sqrt = 22
Square root of the top stack value.
RemapValClamped = 23
Remaps the top stack value between two ranges, clamped.
Sin = 24
Sine of the top stack value.
Cos = 25
Cosine of the top stack value.
Abs = 26
Absolute value of the top stack value.

