EvilEngine/CAM: Difference between revisions

no edit summary
Battlepedia>Seil
No edit summary
Battlepedia>Seil
No edit summary
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.
 
===Format===
Cameras are [[Object Asset|object assets]], so they start with their 0x8 byte header, then are followed by:
 
Line 13:
! Offset !! Type !! Description
|-
| 0x8 || [[Vector3]] || '''Position'''
|-
| 0x14 || [[Vector3]] || '''Normalized forward vector'''
|-
| 0x20 || [[Vector3]] || '''Normalized up vector'''
|-
| 0x2C || float[[Vector3]] || Unknown
|-
| 0x300x38 || int?[3] || Unknown (null)
|-
| 0x340x44 || intshort || Unknown, usually 30
|-
| 0x380x46 || intshort || Unknown, usually 45
|-
| 0x3C0x48 || intfloat || Unknown'''Field of View''' (degrees)
|-
| 0x4C || float || '''Switch Time''' (seconds). Time it takes to move the camera to this position.
| 0x40 || int || Unknown
|-
| 0x440x50 || shortint || Unknown, usually 0, 1, 2, 5, or 6
|-
| 0x460x54 || short?[3] || Unknown (null)
|-
| 0x480x60 || float[4] || Camera speedUnknown
|-
| 0x4C0x70 || float?[2] || Unknown (null)
|-
| 0x500x78 || intbyte || UnknownFlag 1, usually 0
|-
| 0x540x79 || float[9]byte || UnknownFlag 2, usually 1
|-
| 0x780x7A || byte[4] || FlagsFlag 3, usually 1
|-
| 0x7B || byte || Flag 4, usually 0x8F (143) or 0xC0 (192)
| 0x7C || int || Unknown
|-
| 0x800x7C || int?[2] || Unknown (null)
|-
| 0x84 || intbyte || UnknownFlag 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
Anonymous user