EvilEngine/PKUP: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{AssetInfobox |
{{AssetInfobox |
||
|subtitle=Pickup |
|subtitle=Pickup |
||
|type=[[ |
|type=[[Entity]] |
||
|objectid=0x04 |
|objectid=0x04 |
||
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie |
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie |
||
|sourcecode=[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntPickup.h zEntPickup.h]}} |
|||
===Format=== |
===Format=== |
||
Pickups are [[ |
Pickups are [[Entity|entity assets]], so they start with their 0x54 byte header, then are followed by: |
||
{| class="wikitable" |
{| class="wikitable" |
Revision as of 20:04, 30 March 2021
PKUP | |
---|---|
Pickup | |
Type | Entity |
Source code | zEntPickup.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 |
|
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