EvilEngine/PKUP: Difference between revisions

m
Seil moved page PKUP to EvilEngine/PKUP
Battlepedia>Seil
m (Seil moved page PKUP to EvilEngine/PKUP)
 
(7 intermediate revisions by 3 users not shown)
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===
Pickups are [[Placeable AssetEntity|placeableentity assets]], so they start with their 0x54 byte header, then are followed by:
 
{| class="wikitable"
Line 15 ⟶ 20:
| 0x54 || int || '''pickupHash''' || ID to an entry in boot.HIP/PickupTable.
|-
| 0x58 || short || '''pickupFlags''' || Always 0, 1, 2, or 3
*0 - None
*1 - Reappear after collecting
*2 - Enabled on start
*3 - Both
|-
| 0x5A || short || '''pickupValue''' || AlwaysUsed for Scooby Snack count in Snack Gates; 4 in most other pickup types
|}
 
Line 36 ⟶ 45:
* 0xCB - Purple shiny object
* 0xDD - Golden spatula
* 0xBC - Scooby snack
* 0xEC - Scooby snack box
* 0x28 - Clue
* 0x5C - Savepoint
* 0x80 - Shovel
* 0x86 - Snackgate
 
===Events===
Line 41 ⟶ 56:
* Pickup
* Drop pickup
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]