This version is outdated by a newer approved version.This version (2017/01/30 18:16) was approved by stohrendorf.
This is an old revision of the document!
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 $\mathrm{Head}_y$ is $> −8008$ AU, decrease $\mathrm{Head}_y$ by $364$ AU.
- If Input has “Right” and $\mathrm{Head}_y$ is $< 8008$ AU, increase $\mathrm{Head}_y$ by $364$ AU.
- Set $\mathrm{Torso}_y$ rotation to $\mathrm{Head}_y$.
- If Input has “Forward” and $\mathrm{Head}_x$ is $> −7644$ AU, decrease $\mathrm{Head}_x$ by $364$ AU.
- If Input has “Backward” and $\mathrm{Head}_x$ is $< 7644$ AU, increase $\mathrm{Head}_x$ by $364$ AU.
- Set $\mathrm{Torso}_x$ rotation to $\mathrm{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.