EvilEngine/PLYR: Difference between revisions

m
Seil moved page PLYR to EvilEngine/PLYR
(Created page with "==PLYR== This asset defines an entry for the player (Spongebob). ===Format=== {| class="wikitable" ! Offset !! Type !! Description |- ! colspan="3" | Header |- | 0x00 || As...")
 
m (Seil moved page PLYR to EvilEngine/PLYR)
 
(13 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude>
==PLYR==
{{#vardefine:typeid|PLYR}}<nowiki/>
This asset defines an entry for the player (Spongebob).
{{#vardefine:name|Player}}<nowiki/>
{{#vardefine:type|[[Entity]]}}<nowiki/>
{{#vardefine:basetype|0x03}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntPlayer.h zEntPlayer.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
This asset defines an entry for the player (Spongebob).
 
===Format===
Player is a [[Entity|entity assets]], so it starts with their 0x54 byte header, then is followed by:
 
{| class="wikitable"
! Offset !! Type !! Description
|-
! colspan="3" | Header
|-
| 0x00 || [[AssetID]] || '''Asset ID'''.
|-
| 0x04 || byte || '''Asset type'''. 0x3 for PLYR.
|-
| 0x05 || byte || '''Number of Events'''.
|-
| 0x06 || short || '''Flags'''. Usually 00 0D
|-
! colspan="3" | Player
|-
| 0x08 || byte[4] || Flags. Usually 01 00 00 00
|-
| 0x0C || int || null
|-
| 0x10 || int || null
|-
| 0x14 || Vector3 || '''Rotation'''. The X and Z values get reset to 0 after the player moves.
|-
| 0x20 || Vector3 || '''Position'''. Usually ignored as the player gets placed in a MRKR.
|-
| 0x2C || Vector3 || '''Scale'''. The starting scale of the player. Resets to (1, 1, 1) after the player moves.
|-
| 0x38 || Vector3 || '''Color'''. The color of the player. Always (1, 1, 1).
|-
| 0x44 || Vector2 || '''Unknown'''
|-
| 0x4C || [[AssetID]] || '''Unknown.''' Always 0x003FE4D5
|-
| 0x50 || int || null
|-
! colspan="3" | Events
Line 44 ⟶ 24:
! colspan="3" | Light Kit ID
|-
| - || [[AssetID]] || [[LKIT]]. '''Not present in Scooby'''
|}
 
Notes:
|* 0x14 || Vector3 || '''Rotation'''. The X and Z values get reset to 0 after the player moves.
|* 0x20Position || Vector3 || '''Position'''.is Usuallyusually ignored as the player gets placed in a MRKR.
* Scale resets to (1, 1, 1) after the player moves.
* Color resets to (1, 1, 1, 1).
* Model asset ID in BFBB is always spongebob_bind.MINF (boot.HIP).
* Model asset ID in Scooby is always sd.MINF (boot.HIP).
 
===Events===
Line 66 ⟶ 54:
* CruiseSetLife
* Take Socks
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]