EvilEngine/DSTR: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
m (5 revisions imported)
m (Seil moved page DSTR to EvilEngine/DSTR)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|DSTR}}<nowiki/>
|subtitle=Destructible Object
{{#vardefine:name|Destructible Object}}<nowiki/>
|type=[[Entity]]
{{#vardefine:type|[[Entity]]}}<nowiki/>
|objectid=0x1B
{{#vardefine:basetype|0x1B}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom
{{#vardefine:games|Scooby BFBB}}<nowiki/>
|sourcecode=[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntDestructObj.h zEntDestructObj.h]}}
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntDestructObj.h zEntDestructObj.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}


This asset defines an entry for a destructible object.
This asset defines an entry for a destructible object.
Line 16: Line 20:
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x54 || ? || '''animSpeed''' || null
| 0x54 || float || '''animSpeed''' ||
|-
|-
| 0x58 || ? || '''initAnimState''' || null
| 0x58 || unsigned int || '''initAnimState''' ||
|-
|-
| 0x5C || int || '''health''' || always 1
| 0x5C || unsigned int || '''health''' || always 1
|-
|-
| 0x60 || [[AssetID]]? || '''spawnItemID''' || null
| 0x60 || [[AssetID]] || '''spawnItemID''' ||
|-
|-
| 0x64 || int || '''dflags''' || hit mask?
| 0x64 || unsigned int || '''dflags''' || hit mask?
|-
|-
| 0x68 || byte || '''collType''' || usually 0 or 2
| 0x68 || char || '''collType''' || usually 0 or 2
|-
|-
| 0x69 || byte || '''fxType''' || usually 0, 1, or 2
| 0x69 || char || '''fxType''' || usually 0, 1, or 2
|-
|-
| 0x6A || short || '''pad''' || padding
| 0x6A || char[2] || '''pad''' || padding
|-
|-
| 0x6C || float || '''blast_radius''' ||
| 0x6C || float || '''blast_radius''' ||
Line 54: Line 58:


{{Assets}}
{{Assets}}
{{AutoGameNavs}}


[[Category:Asset]]
[[Category:Asset]]

Latest revision as of 22:37, 15 September 2022

DSTR
Destructible Object
TypeEntity
Base Type0x1B
Games usedNight of 100 Frights
Battle for Bikini Bottom
Source codezEntDestructObj.h

This asset defines an entry for a destructible object.

Format

Destructables are entity assets, so they start with their 0x54 byte header, then are followed by:

Note: the asset ID at 0x50 (in the Placeable header) refers to an animation.

Offset Type Variable Description
0x54 float animSpeed
0x58 unsigned int initAnimState
0x5C unsigned int health always 1
0x60 AssetID spawnItemID
0x64 unsigned int dflags hit mask?
0x68 char collType usually 0 or 2
0x69 char fxType usually 0, 1, or 2
0x6A char[2] pad padding
0x6C float blast_radius
0x70 float blast_strength
0x74 AssetID (Shrapnel) shrapnelID_destroy Not present in Scooby
0x78 AssetID (Shrapnel) shrapnelID_hit Not present in Scooby
0x7C AssetID (SFX) sfx_destroy Not present in Scooby
0x80 AssetID (SFX) sfx_hit Not present in Scooby
0x84 AssetID (Model) hitModel Not present in Scooby
0x88 AssetID (Model) destroyModel Not present in Scooby
Events
0x8C Event[numberOfEvents] Events