EvilEngine/PKUP: Difference between revisions

m
Seil moved page PKUP to EvilEngine/PKUP
Battlepedia>Igorseabra4
(Created page with "Power Up/Item ===Format=== {| class="wikitable" ! Offset !! Type !! Description |- ! colspan="3" | Header |- | 0x00 || int || '''Asset ID''' |- | 0x04 || byte || '''Asset type...")
 
m (Seil moved page PKUP to EvilEngine/PKUP)
 
(11 intermediate revisions by 4 users not shown)
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===
Pickups are [[Entity|entity assets]], so they start with their 0x54 byte header, then are followed by:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
! colspan="34" | HeaderPickup info stuff
|-
| 0x000x54 || int || '''Asset IDpickupHash''' || ID to an entry in boot.HIP/PickupTable.
|-
| 0x040x58 || byteshort || '''Asset typepickupFlags'''. Always 0x04||
*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 || Vector3 || Unknown - Possibly color, but I haven't checked yet. Always (1, 1, 1).
|-
| 0x44 || float || Unknown - Always 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: 0x4Cthe ||model intasset ||ID MINFfor IDall -PKUPs Alwaysis 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
* 0x3B - Yellow shiny object
* 0x3E - Red shiny object
* 0x13 - Underwear
* 0xDD - Golden spatula
* 0x24 - Sock
* 0x2E - Golden underwear
* 0x40 - SpongeBall
* 0x81 - Blue shiny object
* 0x27 - Steering wheel
* 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===
Line 74 ⟶ 56:
* Pickup
* Drop pickup
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]