EvilEngine/BOUL: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{AssetInfobox |
{{AssetInfobox |
||
|subtitle=Boulder |
|subtitle=Boulder |
||
|type=[[ |
|type=[[Entity]] |
||
|objectid=0x2F |
|objectid=0x2F |
||
|games=Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer |
|games=Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer |
||
|sourcecode=[https://github.com/bfbbdecomp/bfbb/blob/master/src/Core/x/xEntBoulder.h xEntBoulder.h]}} |
|||
This asset defines an entry for boulders such as the ones thrown by cannons. |
This asset defines an entry for boulders such as the ones thrown by cannons. |
||
==Format== |
==Format== |
||
Boulders are [[ |
Boulders are [[Entity|entity assets]], so they start with their 0x54 byte header, then are followed by: |
||
{| class="wikitable" |
{| class="wikitable" |
Revision as of 19:59, 30 March 2021
BOUL | |
---|---|
Boulder | |
Type | Entity |
Games used | The Incredibles |
Source code | xEntBoulder.h |
This asset defines an entry for boulders such as the ones thrown by cannons.
Format
Boulders are entity assets, so they start with their 0x54 byte header, then are followed by:
Offset | Type | Variable | Description |
---|---|---|---|
0x54 | float | gravity | |
0x58 | float | mass | |
0x5C | float | bounce | |
0x60 | float | friction | |
0x64 | float | statFric | Not present in Movie (all below offset -4 bytes) |
0x68 | float | maxVel | |
0x6C | float | maxAngVel | |
0x70 | float | stickiness | |
0x74 | float | bounceDamp | If Y velocity is below this when hitting the ground, it gets reset to 0. |
0x78 | int | flags |
|
0x7C | float | killTimer | If 0, lifetime is infinity and Can Hit Walls is forced on. Note that it can still die on OOB surfaces and player attack. |
0x80 | int | hitpoints | |
0x84 | AssetID (Sound) | soundID | Bounce sound. |
0x88 | float | volume | Not present in Movie (all below offset -8 bytes) |
0x8C | float | minSoundVel | |
0x90 | float | maxSoundVel | |
0x94 | float | innerRadius | |
0x98 | float | outerRadius | |
Events | |||
0x9C | Event[numberOfEvents] | Events |