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

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 $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.
items/details/lara/states/2.txt · Last modified: 2017/02/07 18:31 (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