EvilEngine/DSTR: Difference between revisions

m
Seil moved page DSTR to EvilEngine/DSTR
Battlepedia>Seil
m (Seil moved page DSTR to EvilEngine/DSTR)
 
(8 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|DSTR}}<nowiki/>
|subtitle=Destructible Object
{{#vardefine:name|Destructible Object}}<nowiki/>
|type=[[Placeable]]
{{#vardefine:type|[[Entity]]}}<nowiki/>
|objectid=0x1B
{{#vardefine:basetype|0x1B}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>}}
{{#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 destructible 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 || ?[2]float || Unknown'''animSpeed''' || (null)
|-
| 0x5C0x58 || unsigned int || '''UnknowninitAnimState''', always|| 1
|-
| 0x5C || unsigned int || '''health''' || always 1
| 0x60 || ? || Unknown (null)
|-
| 0x640x60 || int[[AssetID]] || '''Hit Mask?spawnItemID''' ||
|-
| 0x680x64 || byteunsigned int || '''Flag 1dflags''', usually 0|| orhit 2mask?
|-
| 0x690x68 || bytechar || '''Flag 2collType''', || usually 0, 1, or 2
|-
| 0x6A0x69 || bytechar || '''Flag 3fxType''', || usually 0, 1, or 2
|-
| 0x6B0x6A || bytechar[2] || '''Flag 4pad''', usually|| 0padding
|-
| 0x6C || float || '''Unknownblast_radius''' ||
|-
| 0x70 || float || '''Unknownblast_strength''' ||
|-
| 0x74 || [[AssetID]] ([[SHRP|Shrapnel]]) || '''ShrapnelshrapnelID_destroy''' 1|| '''Not present in Scooby'''
|-
| 0x78 || [[AssetID]] ([[SHRP|Shrapnel]]) || '''ShrapnelshrapnelID_hit''' 2|| '''Not present in Scooby'''
|-
| 0x7C || [[AssetID]] ([[SFX]]) || '''SFXsfx_destroy''' 1|| '''Not present in Scooby'''
|-
| 0x80 || [[AssetID]] ([[SFX]]) || '''SFXsfx_hit''' 2|| '''Not present in Scooby'''
|-
| 0x84 || [[AssetID]] ([[MODL|Model]]) || '''DestroyedhitModel''' Model|| 1'''Not present in Scooby'''
|-
| 0x88 || [[AssetID]] ([[MODL|Model]]) || '''DestroyeddestroyModel''' Model|| 2'''Not present in Scooby'''
|-
! colspan="34" | Events
|-
| 0x8C || Event[numberOfEvents] || '''[[Events]]''' ||
|}
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]