EvilEngine/PLYR: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{AssetInfobox |
{{AssetInfobox |
||
|subtitle=Player |
|subtitle=Player |
||
|type=[[ |
|type=[[Entity]] |
||
|objectid=0x03 |
|objectid=0x03 |
||
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer |
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer |
||
|sourcecode=[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntPlayer.h zEntPlayer.h]}} |
|||
This asset defines an entry for the player (Spongebob). |
This asset defines an entry for the player (Spongebob). |
||
===Format=== |
===Format=== |
||
Player is a [[ |
Player is a [[Entity|entity assets]], so it starts with their 0x54 byte header, then is followed by: |
||
{| class="wikitable" |
{| class="wikitable" |
Revision as of 20:06, 30 March 2021
PLYR | |
---|---|
Player | |
Type | Entity |
Games used | The Incredibles |
Source code | zEntPlayer.h |
This asset defines an entry for the player (Spongebob).
Format
Player is a entity assets, so it starts with their 0x54 byte header, then is followed by:
Offset | Type | Description |
---|---|---|
Events | ||
0x54 | Event[numberOfEvents] | Events |
Light Kit ID | ||
- | AssetID | LKIT. Not present in Scooby |
Notes:
- Rotation X and Z values get reset to 0 after the player moves.
- Position is usually 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 is always spongebob_bind.MINF (boot.HIP).
Events
- ControlOff
- ControlOn
- OutOfBounds
- GiveShinyObjects
- GiveHealth
- FallToDeath
- GivePowerUp
- PlayerRumbleTest
- PlayerRumbleLight
- PlayerRumbleMedium
- PlayerRumbleHeavy
- GiveSocks (current level)
- GiveCollectables (current level)
- Spongeball On
- Spongeball Off
- Switch Player Character
- CruiseSetLife
- Take Socks