EvilEngine/DYNA/game object:Teleport: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
(Created page with "<onlyinclude> {{#vardefine:name|game_object:Teleport}}<nowiki/> {{#vardefine:version|1 or 2}}<nowiki/> {{#vardefine:hash|0x70ADB7F9}}<nowiki/> {{#vardefine:games|BFBB TSSM}}<n...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{#vardefine:hash|0x70ADB7F9}}<nowiki/>
{{#vardefine:hash|0x70ADB7F9}}<nowiki/>
{{#vardefine:games|BFBB TSSM}}<nowiki/>
{{#vardefine:games|BFBB TSSM}}<nowiki/>
{{#vardefine:sourcecode|}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntTeleportBox.h zEntTeleportBox.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
</onlyinclude>
{{AutoDynaInfobox}}
{{AutoDynaInfobox}}

This asset defines a Teleport Box, which is used for quick travel to another area within a level. Typically, they are defined in pairs, where the 1st one warps to the 2nd one and the 2nd one warps back to the 1st one. However, a Teleport Box can warp to any other Teleport Box in the level, and therefore any number of Teleport Boxes can be linked together.

Its position is defined by a [[MRKR|Marker]], which the game uses to place an instance of the teleportation_box_bind [[MODL|model]] (boot.hip) in the world. It is not possible to change the rotation or scale of a Teleport Box.

Note that you do not need to manually create a trigger around the teleport box to open it, it opens automatically when the player walks close up to it.

{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[AssetID]] || '''marker''' || Position of the Teleport Box.
|-
| 0x04 || uint || '''opened''' || 0 or 1.
|-
| 0x08 || uint || '''launchAngle''' || Rotation (in degrees) to set the player when hopping out of the Teleport Box.
|-
| 0x0C || uint || '''camAngle''' || Rotation (in degrees) to set the camera. '''Not present in version 1 in BFBB, or in Movie regardless of version'''.
|-
| 0x10 || [[AssetID]] || '''targetID''' || Teleport Box to teleport the player to. The other Teleport Box must be opened before the player will be able to use this one.
|}

===Events===
* Open Teleport Box
* Close Teleport Box


{{DynaAssets}}
{{DynaAssets}}

Latest revision as of 22:39, 15 September 2022

game_object:Teleport
Version1 or 2
Hash0x70ADB7F9
Games usedBattle for Bikini Bottom
The SpongeBob SquarePants Movie
Source codezEntTeleportBox.h

This asset defines a Teleport Box, which is used for quick travel to another area within a level. Typically, they are defined in pairs, where the 1st one warps to the 2nd one and the 2nd one warps back to the 1st one. However, a Teleport Box can warp to any other Teleport Box in the level, and therefore any number of Teleport Boxes can be linked together.

Its position is defined by a Marker, which the game uses to place an instance of the teleportation_box_bind model (boot.hip) in the world. It is not possible to change the rotation or scale of a Teleport Box.

Note that you do not need to manually create a trigger around the teleport box to open it, it opens automatically when the player walks close up to it.

Offset Type Variable Description
0x00 AssetID marker Position of the Teleport Box.
0x04 uint opened 0 or 1.
0x08 uint launchAngle Rotation (in degrees) to set the player when hopping out of the Teleport Box.
0x0C uint camAngle Rotation (in degrees) to set the camera. Not present in version 1 in BFBB, or in Movie regardless of version.
0x10 AssetID targetID Teleport Box to teleport the player to. The other Teleport Box must be opened before the player will be able to use this one.

Events

  • Open Teleport Box
  • Close Teleport Box