EvilEngine/CAM: Difference between revisions
Content added Content deleted
Battlepedia>Seil No edit summary |
Battlepedia>Seil No edit summary |
||
Line 7: | Line 7: | ||
This asset defines cameras. Usually, the game takes control from you to display a certain camera for a moment, such as when talking to NPCs or showing you something elsewhere in the level. |
This asset defines cameras. Usually, the game takes control from you to display a certain camera for a moment, such as when talking to NPCs or showing you something elsewhere in the level. |
||
==Format== |
|||
Cameras are [[Object Asset|object assets]], so they start with their 0x8 byte header, then are followed by: |
Cameras are [[Object Asset|object assets]], so they start with their 0x8 byte header, then are followed by: |
||
Line 13: | Line 13: | ||
! Offset !! Type !! Description |
! Offset !! Type !! Description |
||
|- |
|- |
||
| 0x8 || [[Vector3]] || Position |
| 0x8 || [[Vector3]] || '''Position''' |
||
|- |
|- |
||
| 0x14 || [[Vector3]] || Normalized forward vector |
| 0x14 || [[Vector3]] || '''Normalized forward vector''' |
||
|- |
|- |
||
| 0x20 || [[Vector3]] || Normalized up vector |
| 0x20 || [[Vector3]] || '''Normalized up vector''' |
||
|- |
|- |
||
| 0x2C || |
| 0x2C || [[Vector3]] || Unknown |
||
|- |
|- |
||
| |
| 0x38 || ?[3] || Unknown (null) |
||
|- |
|- |
||
| |
| 0x44 || short || Unknown, usually 30 |
||
|- |
|- |
||
| |
| 0x46 || short || Unknown, usually 45 |
||
|- |
|- |
||
| |
| 0x48 || float || '''Field of View''' (degrees) |
||
|- |
|- |
||
| 0x4C || float || '''Switch Time''' (seconds). Time it takes to move the camera to this position. |
|||
| 0x40 || int || Unknown |
|||
|- |
|- |
||
| |
| 0x50 || int || Unknown, usually 0, 1, 2, 5, or 6 |
||
|- |
|- |
||
| |
| 0x54 || ?[3] || Unknown (null) |
||
|- |
|- |
||
| |
| 0x60 || float[4] || Unknown |
||
|- |
|- |
||
| |
| 0x70 || ?[2] || Unknown (null) |
||
|- |
|- |
||
| |
| 0x78 || byte || Flag 1, usually 0 |
||
|- |
|- |
||
| |
| 0x79 || byte || Flag 2, usually 1 |
||
|- |
|- |
||
| |
| 0x7A || byte || Flag 3, usually 1 |
||
|- |
|- |
||
| 0x7B || byte || Flag 4, usually 0x8F (143) or 0xC0 (192) |
|||
| 0x7C || int || Unknown |
|||
|- |
|- |
||
| |
| 0x7C || ?[2] || Unknown (null) |
||
|- |
|- |
||
| 0x84 || |
| 0x84 || byte || Flag 5, usually 0, 2, or 3 |
||
|- |
|||
| 0x85 || byte || Flag 6, usually 0 |
|||
|- |
|||
| 0x86 || byte || Flag 7, usually 0 |
|||
|- |
|||
| 0x87 || byte || Flag 8, usually 0 |
|||
|- |
|- |
||
! colspan="3" | Events |
! colspan="3" | Events |