Animation Events (File Format): Difference between revisions
Animation Events (File Format) (view source)
Revision as of 23:41, 24 February 2015
, 24 February 2015no edit summary
imported>Jackoalan No edit summary |
imported>Jackoalan No edit summary |
||
Line 70: | Line 70: | ||
| | | | ||
|- | |- | ||
| | |+0x2 | ||
|<null-term> | |<null-term> | ||
|string | |string | ||
Line 76: | Line 76: | ||
| | | | ||
|- | |- | ||
|0x0 | |++0x0 | ||
|2 | |2 | ||
|short | |short | ||
Line 82: | Line 82: | ||
|Enumerated event type (unknown values) | |Enumerated event type (unknown values) | ||
|- | |- | ||
|0x2 | |++0x2 | ||
|4 | |4 | ||
|float | |float | ||
Line 88: | Line 88: | ||
|Time (in seconds) from start of [[ANIM (File Format)|ANIM]] to trigger event | |Time (in seconds) from start of [[ANIM (File Format)|ANIM]] to trigger event | ||
|- | |- | ||
|0x6 | |++0x6 | ||
|4 | |4 | ||
|long | |long | ||
Line 94: | Line 94: | ||
| | | | ||
|- | |- | ||
|0xA | |++0xA | ||
|4 | |4 | ||
|long | |long | ||
Line 100: | Line 100: | ||
|Index of event unique from other events (perhaps used to maintain a ''triggered'' bitmap) | |Index of event unique from other events (perhaps used to maintain a ''triggered'' bitmap) | ||
|- | |- | ||
|0xE | |++0xE | ||
|1 | |1 | ||
|bool | |bool | ||
Line 106: | Line 106: | ||
|Unknown Flag | |Unknown Flag | ||
|- | |- | ||
|0xF | |++0xF | ||
|4 | |4 | ||
|float | |float | ||
Line 112: | Line 112: | ||
| | | | ||
|- | |- | ||
|0x13 | |++0x13 | ||
|4 | |4 | ||
|float | |float | ||
Line 118: | Line 118: | ||
| | | | ||
|- | |- | ||
|0x17 | |++0x17 | ||
|4 | |4 | ||
|long | |long | ||
Line 132: | Line 132: | ||
=== Loop Event === | === Loop Event === | ||
{| class="wikitable" | |||
!Offset | |||
!Length | |||
!Data Type | |||
!Identifier | |||
!Notes | |||
|- | |||
|<start> | |||
|<varies> | |||
|[[#Event Base|Event Base]] | |||
|event_base | |||
| | |||
|- | |||
|+0x0 | |||
|1 | |||
|bool | |||
|unknown_flag | |||
| | |||
|} | |||
=== UEVT Event === | === UEVT Event === | ||
{| class="wikitable" | |||
!Offset | |||
!Length | |||
!Data Type | |||
!Identifier | |||
!Notes | |||
|- | |||
|<start> | |||
|<varies> | |||
|[[#Event Base|Event Base]] | |||
|event_base | |||
| | |||
|- | |||
|+0x0 | |||
|4 | |||
|long | |||
|uevt_type | |||
|Enumerated UEVT type (unknown values) | |||
|- | |||
|+0x4 | |||
|<null-term> | |||
|string | |||
|bone_name | |||
|[[CINF (File Format)|CINF]] Bone Name (for applicable events) | |||
|} | |||
=== Effect Event === | === Effect Event === | ||
{| class="wikitable" | |||
!Offset | |||
!Length | |||
!Data Type | |||
!Identifier | |||
!Notes | |||
|- | |||
|<start> | |||
|<varies> | |||
|[[#Event Base|Event Base]] | |||
|event_base | |||
| | |||
|- | |||
|+0x0 | |||
|4 | |||
|long | |||
|frame_count | |||
|Number of frames to run effect for | |||
|- | |||
|+0x4 | |||
|4 | |||
|long | |||
|effect_type | |||
|FourCC of effect's type ([[PART (File Format)|PART]], [[SWHC (File Format)|SWHC]], [[ELSC (File Format)|ELSC]]) | |||
|- | |||
|+0x8 | |||
|4 | |||
|long | |||
|effect_ref | |||
|ID of [[Effect Script|effect]] resource | |||
|- | |||
|+0xC | |||
|<null-term> | |||
|string | |||
|bone_name | |||
|[[CINF (File Format)|CINF]] Bone Name (for transforming effects) | |||
|- | |||
|++0x0 | |||
|4 | |||
|float | |||
|effect_scale | |||
|Proportional-scale to applied to effect in scene | |||
|- | |||
|++0x4 | |||
|4 | |||
|long | |||
|transform_type | |||
|Enumerated transform-mode relating effect to actor's bone: | |||
<ol start="0"> | |||
<li>Effect-emitter transformed to bone for initial frame, then retained</li> | |||
<li>Effect-emitter continuously transformed to bone</li> | |||
<li>Entire effect (particle instances and all) continuously transformed to bone</li> | |||
</ol> | |||
|} | |||
=== Sound Event === | === Sound Event === | ||
{| class="wikitable" | |||
!Offset | |||
!Length | |||
!Data Type | |||
!Identifier | |||
!Notes | |||
|- | |||
|<start> | |||
|<varies> | |||
|[[#Event Base|Event Base]] | |||
|event_base | |||
| | |||
|- | |||
|+0x0 | |||
|4 | |||
|long | |||
|sound_id | |||
|16-bit [[AGSC (File Format)|AGSC]] ''sound-id'' indirected via [[ATBL (File Format)|ATBL]] | |||
|- | |||
|+0x4 | |||
|4 | |||
|float | |||
|ref_amplitude | |||
|Reference amplitude for audio attenuation | |||
|- | |||
|+0x8 | |||
|4 | |||
|float | |||
|ref_distance | |||
|Reference distance for audio attenuation | |||
|} | |||
[[Category:File Formats]] | [[Category:File Formats]] |