EvilEngine/DSTR: Difference between revisions

m
Seil moved page DSTR to EvilEngine/DSTR
Battlepedia>Igorseabra4
(Created page with "This asset defines an entry for a destructable object. ==Format== Destructables are placeable assets, so they start with their 0x54 byte header, then are...")
 
m (Seil moved page DSTR to EvilEngine/DSTR)
 
(10 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude>
This asset defines an entry for a destructable object.
{{#vardefine:typeid|DSTR}}<nowiki/>
{{#vardefine:name|Destructible Object}}<nowiki/>
{{#vardefine:type|[[Entity]]}}<nowiki/>
{{#vardefine:basetype|0x1B}}<nowiki/>
{{#vardefine:games|Scooby BFBB}}<nowiki/>
{{#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 destructabledestructible object.
 
==Format==
Destructables are [[Placeable AssetEntity|placeableentity 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 [[ANIM|animation]].
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x54 || intfloat || '''UnknownanimSpeed''' ||
|-
| 0x58 || unsigned int || '''UnknowninitAnimState''' ||
|-
| 0x5C || unsigned int || '''Unknownhealth''' || always 1
|-
| 0x60 || int[[AssetID]] || '''UnknownspawnItemID''' ||
|-
| 0x64 || unsigned int || '''Unknowndflags''' || hit mask?
|-
| 0x68 || intchar || '''UnknowncollType''' || usually 0 or 2
|-
| 0x6C0x69 || floatchar || '''UnknownfxType''' || usually 0, 1, or 2
|-
| 0x700x6A || floatchar[2] || '''Unknownpad''' || padding
|-
| 0x740x6C || [[Asset ID]]float || '''Unknownblast_radius''' ||
|-
| 0x780x70 || intfloat || '''Unknownblast_strength''' ||
|-
| 0x74 || [[AssetID]] ([[SHRP|Shrapnel]]) || '''shrapnelID_destroy''' || '''Not present in Scooby'''
| 0x7C || int || '''Unknown'''
|-
| 0x78 || [[AssetID]] ([[SHRP|Shrapnel]]) || '''shrapnelID_hit''' || '''Not present in Scooby'''
| 0x80 || int || '''Unknown'''
|-
| 0x7C || [[AssetID]] ([[SFX]]) || '''sfx_destroy''' || '''Not present in Scooby'''
| 0x84 || int || '''Unknown'''
|-
| 0x880x80 || int[[AssetID]] ([[SFX]]) || '''Unknownsfx_hit''' || '''Not present in Scooby'''
|-
| 0x84 || [[AssetID]] ([[MODL|Model]]) || '''hitModel''' || '''Not present in Scooby'''
! colspan="3" | Events
|-
| 0x88 || [[AssetID]] ([[MODL|Model]]) || '''destroyModel''' || '''Not present in Scooby'''
| 0x8C || Event[numberOfEvents] || '''[[Events]]'''
|-
! colspan="34" | Events
|-
| 0x8C || Event[numberOfEvents] || '''[[Events]]''' ||
|}
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]