====== State 2 ====== Name: Stop ID: 2 Since Engine: 1 ===== Input Handling ===== If Health is $\leq 0$, set Target State to [[8|State 8]] and return. Set Target State to [[2|State 2]]. ; Roll : Use Animation 146/frame 3857; set Current State to [[items:details:lara:states:45|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 [[22|State 22]]. ; Step Right : Set Target State to [[21|State 21]]. ; Left : Set Target State to [[7|State 7]]. ; Right : Set Target State to [[6|State 6]]. ; Jump : Set Target State to [[15|State 15]]. ; Forward : If Input has "Walk", execute input handler for [[0|State 0]], otherwise execute input handler for [[1|State 1]]. ; Backward : If Input has "Walk", execute input handler for [[16|State 16]], otherwise set Target State to [[5|State 5]].