EvilEngine/PORT: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{AssetInfobox |
{{AssetInfobox |
||
|subtitle=Portal |
|subtitle=Portal |
||
|type=[[ |
|type=[[Base]] |
||
|objectid=0x10 |
|objectid=0x10 |
||
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer |
|games=Night of 100 Frights<br>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/Game/zPortal.h zPortal.h]}} |
|||
==Format== |
==Format== |
||
Portals are [[ |
Portals are [[Base|base assets]], so they start with their 0x8 byte header, then are followed by: |
||
{| class="wikitable" |
{| class="wikitable" |
Revision as of 19:51, 30 March 2021
PORT | |
---|---|
Portal | |
Type | Base |
Games used | The Incredibles |
Source code | zPortal.h |
Format
Portals are base assets, so they start with their 0x8 byte header, then are followed by:
Offset | Type | Variable | Description |
---|---|---|---|
0x08 | AssetID (Camera) | assetCameraID | Unknown |
0x0C | AssetID (Marker) | assetMarkerID | Marker to teleport to. If it can't be found, the position of the Player asset is used. |
0x10 | float | ang | Rotation in degrees, that the player and camera will face in. |
0x14 | uint | sceneID | ID of the level to warp to. This is backwards on the GameCube version (i.e. instead of "HB01", use "10BH"). If it's the same as the current level's ID, the teleportation will happen instantly. Otherwise, a loading screen will appear for the new level. |
Events | |||
0x18 | Event[numberOfEvents] | Events |