EvilEngine/DEST: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 10: Line 10:
{{AutoAssetInfobox}}
{{AutoAssetInfobox}}


This asset defines an entry for a destructible object.
This asset defines an entry for a destructible asset.


==Format==
==Format==
===xDestructibleAsset===


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || uint || '''id''' || MINF_AssetID
| 0x00 || [[AssetID]] || '''id''' || [[MINF]]
|-
|-
| 0x04 || uint || '''nstates''' || Number of States. Always 1 in TSSM
| 0x04 || uint || '''nstates''' || Number of States. Always 1 in TSSM
Line 31: Line 32:
| 0x18 || uint || '''flags''' ||
| 0x18 || uint || '''flags''' ||
|-
|-
| 0x1C || uint || '''soundgroupidleID''' || SoundGroup used when idle
| 0x1C || [[AssetID]] || '''soundgroupidleID''' || SoundGroup used when idle
|-
|-
| 0x20 || float || '''respawn''' ||
| 0x20 || float || '''respawn''' ||
Line 39: Line 40:
| 0x25 || char[3] || null || padding
| 0x25 || char[3] || null || padding
|-
|-
| 0x28 || uint || '''percent''' || Usually 1 in TSSM
| 0x28 || xDestructibleAssetState || ||
|}

===xDestructibleAssetState===

{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
|-
| 0x2C || [[AssetID]] || '''modelID''' || Changes the destructible's model into this model when destroyed.
| 0x00 || uint || '''percent''' || Usually 1 in TSSM
|-
|-
| 0x30 || [[AssetID]] || '''shrapnelID''' || Shrapnel used when destroyed
| 0x04 || [[AssetID]] || '''modelID''' || Changes the destructible's model into this model when destroyed.
|-
|-
| 0x34 || [[AssetID]] || '''shrapnelhitID''' || Shrapnel used when hit
| 0x08 || [[AssetID]] || '''shrapnelID''' || Shrapnel used when destroyed
|-
|-
| 0x38 || [[AssetID]] || '''soundgroupidleID''' || SoundGroup used when idling
| 0x0C || [[AssetID]] || '''shrapnelhitID''' || Shrapnel used when hit
|-
|-
| 0x3C || [[AssetID]] || '''soundgroupfxID''' ||
| 0x10 || [[AssetID]] || '''soundgroupidleID''' || SoundGroup used when idle
|-
|-
| 0x40 || [[AssetID]] || '''soundgrouphitID''' || SoundGroup used when hit
| 0x14 || [[AssetID]] || '''soundgroupfxID''' ||
|-
|-
| 0x44 || [[AssetID]] || '''soundgroupfxIDswitch''' ||
| 0x18 || [[AssetID]] || '''soundgrouphitID''' || SoundGroup used when hit
|-
|-
| 0x48 || [[AssetID]] || '''soundgrouphitIDswitch''' ||
| 0x1C || [[AssetID]] || '''soundgroupfxIDswitch''' ||
|-
|-
| 0x4C || [[AssetID]] || '''rumbleIDhit''' || {{SlashTrick|DYNA/effect:Rumble}}
| 0x20 || [[AssetID]] || '''soundgrouphitIDswitch''' ||
|-
|-
| 0x50 || [[AssetID]] || '''rumbleIDswitch''' || {{SlashTrick|DYNA/effect:Rumble}}
| 0x24 || [[AssetID]] || '''rumbleIDhit''' || {{SlashTrick|DYNA/effect:Rumble}}
|-
|-
| 0x54 || uint || '''fx_flags''' || sfx flags
| 0x28 || [[AssetID]] || '''rumbleIDswitch''' || {{SlashTrick|DYNA/effect:Rumble}}
|-
| 0x2C || uint || '''fx_flags''' ||
|-
| 0x30 || xDestructibleAssetAttachedAnimList || ||
|}

===xDestructibleAssetAttachedAnimList===

{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
|-
| 0x58 || uint || '''nanimations''' || Set to 1 enables animation
| 0x00 || uint || '''nanimations''' || number of animations?
|-
|-
| 0x5C || [[AssetID]] || '''animationID''' || Usually 0xFDFDFDFD in TSSM: 31, 32 and 63 in The Incredibles
| 0x04 || [[AssetID]] || '''animationIDs''' || Usually 0xFDFDFDFD in TSSM: 31, 32 and 63 in The Incredibles
|}
|}