This version (2017/04/15 15:43) was approved by stohrendorf.The Previously approved version (2017/01/30 18:16) is available.Diff

This is an old revision of the document!


State 2

State 2 (larastate)
NameStop
ID2
Since Engine1

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.
items/details/lara/states/2.1486226523.txt.gz · Last modified: 2017/02/04 16:42 (external edit)
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0