LXP2.1 - Ridley-Classic - Subroutine - 0x1fdd0
- if ((InternalConstantInt(CurrentSubaction) Equal scalar(475)))
- if (AnimationEnd)
- ChangeSubactionRestartFrame(SpecialSThrow)
- else
- if ((InternalConstantInt(CurrentSubaction) Equal scalar(472)))
- if (not(BoolIsTrue RandomAccessBool(EnableActionTransition)))
- IntVariableDecrement { variable: RandomAccessInt (0x5) }
- if ((InternalConstantInt(VerticalCharacterVelocity) GreaterThanOrEqual scalar(0.016)))
- AddVelocity { x_vel: Constant(0.0), y_vel: Constant(-0.016) }
- if ((InternalConstantInt(VerticalCharacterVelocity) LessThanOrEqual scalar(-0.016)))
- AddVelocity { x_vel: Constant(0.0), y_vel: Constant(0.016) }
- if ((InternalConstantInt(HorizontalCharacterVelocity) GreaterThanOrEqual scalar(0.016)))
- AddVelocity { x_vel: Constant(-0.016), y_vel: Constant(0.0) }
- if ((InternalConstantInt(HorizontalCharacterVelocity) LessThanOrEqual scalar(-0.016)))
- AddVelocity { x_vel: Constant(0.016), y_vel: Constant(0.0) }
- FloatVariableSet { variable: RandomAccessFloat (0x7), value: InternalConstantInt(PreviousControlStickYAxis) }
- FloatVariableMultiply { variable: RandomAccessFloat (0x7), value: 0.072 }
- FloatVariableSet { variable: RandomAccessFloat (0x8), value: InternalConstantInt(PreviousControlStickXAxisRelative) }
- FloatVariableMultiply { variable: RandomAccessFloat (0x8), value: 0.072 }
- if ((InternalConstantInt(HorizontalCharacterVelocity) GreaterThan scalar(0.9)))
- IfStatementOr ((InternalConstantInt(HorizontalCharacterVelocity) LessThan scalar(-0.9)))
- FloatVariableSet { variable: RandomAccessFloat (0x8), value: 0 }
- if ((InternalConstantInt(VerticalCharacterVelocity) GreaterThan scalar(0.9)))
- IfStatementOr ((InternalConstantInt(VerticalCharacterVelocity) LessThan scalar(-0.9)))
- FloatVariableSet { variable: RandomAccessFloat (0x7), value: 0 }
- AddVelocity { x_vel: Variable(RandomAccessFloat(Address(8))), y_vel: Variable(RandomAccessFloat(Address(7))) }
- if (ButtonPress value(0))
- BoolVariableSetTrue { variable: RandomAccessBool(EnableActionTransition) }
- SetAirGround(12)
- if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual InternalConstantInt (0xc56)))
- ChangeSubactionRestartFrame(SpecialSUp)
- else
- if ((InternalConstantInt(ControlStickXAxisRelativeReverse) GreaterThanOrEqual InternalConstantInt (0xc32)))
- ChangeSubactionRestartFrame(SpecialSBack)
- else
- if ((InternalConstantInt(ControlStickYAxis) LessThanOrEqual InternalConstantInt (0xc58)))
- ChangeSubactionRestartFrame(SpecialSDown)
- else
- if ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual InternalConstantInt (0xc32)))
- IfStatementOr (ButtonPress value(0))
- ChangeSubactionRestartFrame(SpecialSForward)