LXP2.1 - MetalSonic - Subroutine - 0x13ab8
- loop Infinite times:
- FloatVariableAdd { variable: LongtermAccessFloat (0x5e), value: 0.13 }
- FloatVariableSet { variable: LongtermAccessFloat (0x5c), value: InternalConstantInt(ControlStickXAxisRelative) }
- FloatVariableMultiply { variable: LongtermAccessFloat (0x5c), value: 0.1 }
- FloatVariableAdd { variable: LongtermAccessFloat (0x5a), value: LongtermAccessFloat (0x5c) }
- if ((LongtermAccessFloat (0x5a) GreaterThan scalar(0.5)))
- FloatVariableSet { variable: LongtermAccessFloat (0x5a), value: 0.5 }
- else
- if ((LongtermAccessFloat (0x5a) LessThan scalar(-0.5)))
- FloatVariableSet { variable: LongtermAccessFloat (0x5a), value: -0.5 }
- if ((LongtermAccessFloat (0x5a) GreaterThanOrEqual LongtermAccessFloat (0x5b)))
- if ((LongtermAccessFloat (0x5b) GreaterThanOrEqual scalar(0)))
- FloatVariableSet { variable: LongtermAccessFloat (0x5b), value: 0 }
- FloatVariableAdd { variable: LongtermAccessFloat (0x5b), value: LongtermAccessFloat (0x5a) }
- else
- if ((LongtermAccessFloat (0x5a) GreaterThanOrEqual scalar(0)))
- FloatVariableAdd { variable: LongtermAccessFloat (0x5b), value: LongtermAccessFloat (0x5a) }
- else
- else
- if ((LongtermAccessFloat (0x5a) LessThan LongtermAccessFloat (0x5b)))
- if ((LongtermAccessFloat (0x5b) LessThan scalar(0)))
- FloatVariableSet { variable: LongtermAccessFloat (0x5b), value: 0 }
- FloatVariableAdd { variable: LongtermAccessFloat (0x5b), value: LongtermAccessFloat (0x5a) }
- else
- if ((LongtermAccessFloat (0x5a) LessThan scalar(0)))
- FloatVariableAdd { variable: LongtermAccessFloat (0x5b), value: LongtermAccessFloat (0x5a) }
- else
- FloatVariableMultiply { variable: LongtermAccessFloat (0x60), value: 0.98 }
- SetOrAddVelocity(SetOrAddVelocity { x_vel: 0.0, y_vel: 0.0, x_set: false, y_set: true })
- AddVelocity { x_vel: Variable(LongtermAccessFloat(Address(91))), y_vel: Variable(LongtermAccessFloat(Address(96))) }
- FloatVariableMultiply { variable: LongtermAccessFloat (0x5a), value: 0.9 }
- FloatVariableMultiply { variable: LongtermAccessFloat (0x5b), value: 0.9 }
- if (not(ButtonHeld value(1)))
- if ((InternalConstantInt(ControlStickXAxisRelative) LessThan scalar(0)))
- ReverseDirection
- FloatVariableSet { variable: LongtermAccessFloat (0x5f), value: 1 }
- UnknownEvent { namespace: 0x0, code: 0x6, unk1: 0x0, arguments: [] }
- if ((InternalConstantInt(CurrentFrame) GreaterThanOrEqual scalar(123)))
- if ((InternalConstantInt(ControlStickXAxisRelative) LessThan scalar(0)))
- ReverseDirection
- FloatVariableSet { variable: LongtermAccessFloat (0x5f), value: 1 }
- UnknownEvent { namespace: 0x0, code: 0x6, unk1: 0x0, arguments: [] }
- SyncWait(1.0)