EvilEngine/PKUP: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Igorseabra4
No edit summary
m (Seil moved page PKUP to EvilEngine/PKUP)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>
Power Up/Item
{{#vardefine:typeid|PKUP}}<nowiki/>
{{#vardefine:name|Pickup}}<nowiki/>
{{#vardefine:type|[[Entity]]}}<nowiki/>
{{#vardefine:basetype|0x04}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntPickup.h zEntPickup.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}

===Format===
===Format===
Pickups are [[Entity|entity assets]], so they start with their 0x54 byte header, then are followed by:

{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Description
! Offset !! Type !! Variable !! Description
|-
|-
! colspan="3" | Header
! colspan="4" | Pickup info stuff
|-
|-
| 0x00 || int || '''Asset ID'''
| 0x54 || int || '''pickupHash''' || ID to an entry in boot.HIP/PickupTable.
|-
|-
| 0x04 || byte || '''Asset type'''. Always 0x04
| 0x58 || short || '''pickupFlags''' ||
*0 - None
*1 - Reappear after collecting
*2 - Enabled on start
*3 - Both
|-
|-
| 0x5A || short || '''pickupValue''' || Used for Scooby Snack count in Snack Gates; 4 in most other pickup types
| 0x05 || byte || '''Number of Events'''
|-
| 0x06 || short || '''Flags'''
|-
! colspan="3" | Pickup
|-
| 0x08 || byte || Unknown - Always 1 or 0.
|-
| 0x09 || byte || Type
|-
| 0x0A || byte || Unknown - Always 0.
|-
| 0x0B || byte || Unknown - Always 2 or 0.
|-
| 0x0C || int || Unknown - 0.
|-
| 0x10 || int || Unknown - 0.
|-
! colspan="3" | Transform
|-
| 0x14 || Vector3 || Rotation
|-
| 0x20 || Vector3 || Position
|-
| 0x2C || Vector3 || Scale - Always (1, 1, 1).
|-
| 0x38 || Vector4 || Color - Always (1, 1, 1, 1).
|-
| 0x48 || float || Unknown - Always 255.
|-
! colspan="3" | Pickup info stuff
|-
| 0x4C || int || MINF ID - Always 0x94E25463, which is the ID for pickups.MINF.
|-
| 0x50 || int || Unknown - Always 0
|-
| 0x54 || int || PickupTable Entry - ID to an entry in boot.HIP/PickupTable.
|-
| 0x58 || short || Unknown - Always 0, 1, 2, or 3
|-
| 0x5A ||short || Unknown - Always 4
|}
|}


Note: the model asset ID for all PKUPs is 0x94E25463, which is the ID for pickups.MINF.
===Types===

* 0x81 - Blue shiny object
===Types (0x09)===
* 0xCB - Purple shiny object
* 0x10 - Artwork
* 0x13 - Underwear
* 0x24 - Sock
* 0x2E - Golden underwear
* 0x27 - Steering wheel
* 0x34 - Green shiny object
* 0x34 - Green shiny object
* 0x3B - Yellow shiny object
* 0x3B - Yellow shiny object
* 0x3E - Red shiny object
* 0x3E - Red shiny object
* 0x13 - Underwear
* 0xDD - Golden spatula
* 0x24 - Sock
* 0x2E - Golden underwear
* 0x40 - SpongeBall
* 0x40 - SpongeBall
* 0x81 - Blue shiny object
* 0x27 - Steering wheel
* 0xBB - Power crystal
* 0xBB - Power crystal
* 0xCB - Purple shiny object
* 0x10 - Artwork
* 0xDD - Golden spatula
* 0xBC - Scooby snack
* 0xEC - Scooby snack box
* 0x28 - Clue
* 0x5C - Savepoint
* 0x80 - Shovel
* 0x86 - Snackgate


===Events===
===Events===
Line 72: Line 56:
* Pickup
* Pickup
* Drop pickup
* Drop pickup

{{Assets}}
{{AutoGameNavs}}


[[Category:Asset]]
[[Category:Asset]]

Latest revision as of 22:48, 15 September 2022

PKUP
Pickup
TypeEntity
Base Type0x04
Games usedNight of 100 Frights

Battle for Bikini Bottom

The SpongeBob SquarePants Movie
Source codezEntPickup.h

Format

Pickups are entity assets, so they start with their 0x54 byte header, then are followed by:

Offset Type Variable Description
Pickup info stuff
0x54 int pickupHash ID to an entry in boot.HIP/PickupTable.
0x58 short pickupFlags
  • 0 - None
  • 1 - Reappear after collecting
  • 2 - Enabled on start
  • 3 - Both
0x5A short pickupValue Used for Scooby Snack count in Snack Gates; 4 in most other pickup types

Note: the model asset ID for all PKUPs is 0x94E25463, which is the ID for pickups.MINF.

Types (0x09)

  • 0x10 - Artwork
  • 0x13 - Underwear
  • 0x24 - Sock
  • 0x2E - Golden underwear
  • 0x27 - Steering wheel
  • 0x34 - Green shiny object
  • 0x3B - Yellow shiny object
  • 0x3E - Red shiny object
  • 0x40 - SpongeBall
  • 0x81 - Blue shiny object
  • 0xBB - Power crystal
  • 0xCB - Purple shiny object
  • 0xDD - Golden spatula
  • 0xBC - Scooby snack
  • 0xEC - Scooby snack box
  • 0x28 - Clue
  • 0x5C - Savepoint
  • 0x80 - Shovel
  • 0x86 - Snackgate

Events

  • Mount
  • Pickup
  • Drop pickup