EvilEngine/PKUP: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Seil
No edit summary
m (Seil moved page PKUP to EvilEngine/PKUP)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|PKUP}}<nowiki/>
|subtitle=Pickup
{{#vardefine:name|Pickup}}<nowiki/>
|type=[[Placeable]]
{{#vardefine:type|[[Entity]]}}<nowiki/>
|objectid=0x04
{{#vardefine:basetype|0x04}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie}}
{{#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 [[Placeable Asset|placeable assets]], so they start with their 0x54 byte header, then are followed by:
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" | Pickup info stuff
! colspan="4" | Pickup info stuff
|-
|-
| 0x54 || int || PickupTable Entry - ID to an entry in boot.HIP/PickupTable.
| 0x54 || int || '''pickupHash''' || ID to an entry in boot.HIP/PickupTable.
|-
|-
| 0x58 || short || Unknown - Always 0, 1, 2, or 3
| 0x58 || short || '''pickupFlags''' ||
*0 - None
*1 - Reappear after collecting
*2 - Enabled on start
*3 - Both
|-
|-
| 0x5A || short || Unknown - Always 4
| 0x5A || short || '''pickupValue''' || Used for Scooby Snack count in Snack Gates; 4 in most other pickup types
|}
|}


Line 36: Line 45:
* 0xCB - Purple shiny object
* 0xCB - Purple shiny object
* 0xDD - Golden spatula
* 0xDD - Golden spatula
* 0xBC - Scooby snack
* 0xEC - Scooby snack box
* 0x28 - Clue
* 0x5C - Savepoint
* 0x80 - Shovel
* 0x86 - Snackgate


===Events===
===Events===
Line 41: 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