This version is outdated by a newer approved version.
This version (2017/02/04 23:07) is a draft.
Approvals: 0/1

Approvals: 0/1
This is an old revision of the document!
Table of Contents
State 33
State 33 (larastate) | |
---|---|
Name | Swim (stop) |
ID | 33 |
Since Engine | 1 |
Input Handling
Look Handling
Set the Camera override type to 2.
If Input is “Left”, and Y Look Rotation is $> −9100$ AU, decrease Y Look Rotation by $546$ AU.
If Input is “Right”, and Y Look Rotation is $< 9100$ AU, increase Y Look Rotation by $546$ AU.
Set Lara's Torso Y Rotation to Y Look Rotation divided by 2.
If Input is “Forward”, and X Look Rotation is $> −7280$ AU, decrease X Look Rotation by $546$ AU.
If Input is “Backward”, and X Look Rotation is $< 7280$ AU, increase X Look Rotation by $546$ AU.
Set Lara's Torso X Rotation to $0$ AU.
Non-Look Handling
If Camera override type is 2, set it to 0.
- Left
- Decrease Lara's Y Rotation by $728$ AU.
- Right
- Increase Lara's Y Rotation by $728$ AU.
- Forward
- Set Target State to State 34.
- Backward
- Set Target State to State 47.
- Step Left
- Set Target State to State 48.
- Step Right
- Set Target State to State 49.
- Jump
- Increase Swim-to-Dive Keypress Duration; if it becomes 10:
- Use Animation 119/frame 2041.
- Set Lara's X Rotation to $-8190$ AU.
- Set Fall Speed to $80$.
- Set Underwater State to “Diving”.
; Not “Jump”
- Set Swim-to-Dive Keypress Duration to 0.