This version (2017/04/15 15:43) was approved by stohrendorf.The Previously approved version (2017/01/30 18:16) is available.
Table of Contents
State 2
State 2 (larastate) | |
---|---|
Name | Stop |
ID | 2 |
Since Engine | 1 |
Input Handling
If Health is $\leq 0$, set Target State to State 8 and return.
Set Target State to State 2.
- Roll
- Use Animation 146/frame 3857; set Current State to State 45; return.
"Look" button pressed
Set camera override type to Free Look.
- If Input has “Left” and $Head_y > −8008\,\mathrm{AU}$, decrease $Head_y$ by $364\,\mathrm{AU}$.
- If Input has “Right” and $Head_y < 8008\,\mathrm{AU}$, increase $Head_y$ by $364\,\mathrm{AU}$.
- Set $Torso_y = Head_y$.
- If Input has “Forward” and $Head_x > −7644\,\mathrm{AU}$, decrease $Head_x$ by $364\,\mathrm{AU}$.
- If Input has “Backward” and $Head_x < 7644\,\mathrm{AU}$, increase $Head_x$ by $364\,\mathrm{AU}$.
- Set $Torso_x = Head_x$.
"Look" button not pressed
- Step Left
- Set Target State to State 22.
- Step Right
- Set Target State to State 21.
- Left
- Set Target State to State 7.
- Right
- Set Target State to State 6.
- Jump
- Set Target State to State 15.
- Forward
- If Input has “Walk”, execute input handler for State 0, otherwise execute input handler for State 1.
- Backward
- If Input has “Walk”, execute input handler for State 16, otherwise set Target State to State 5.