EvilEngine/PLYR: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Seil
No edit summary
m (Seil moved page PLYR to EvilEngine/PLYR)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|PLYR}}<nowiki/>
|subtitle=Player
{{#vardefine:name|Player}}<nowiki/>
|type=[[Placeable]]
{{#vardefine:type|[[Entity]]}}<nowiki/>
|objectid=0x03
{{#vardefine:basetype|0x03}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}}
{{#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).
This asset defines an entry for the player.


===Format===
===Format===
Player is a [[Placeable Asset|placeable assets]], so it starts with their 0x54 byte header, then is followed by:
Player is a [[Entity|entity assets]], so it starts with their 0x54 byte header, then is followed by:


{| class="wikitable"
{| class="wikitable"
Line 19: Line 24:
! colspan="3" | Light Kit ID
! colspan="3" | Light Kit ID
|-
|-
| - || [[AssetID]] || [[LKIT]]
| - || [[AssetID]] || [[LKIT]]. '''Not present in Scooby'''
|}
|}


Line 27: Line 32:
* Scale resets to (1, 1, 1) after the player moves.
* Scale resets to (1, 1, 1) after the player moves.
* Color resets to (1, 1, 1, 1).
* Color resets to (1, 1, 1, 1).
* Model asset ID is always 0x003FE4D5.
* Model asset ID in BFBB is always spongebob_bind.MINF (boot.HIP).
* Model asset ID in Scooby is always sd.MINF (boot.HIP).


===Events===
===Events===
Line 48: Line 54:
* CruiseSetLife
* CruiseSetLife
* Take Socks
* Take Socks

{{Assets}}
{{AutoGameNavs}}


[[Category:Asset]]
[[Category:Asset]]

Latest revision as of 22:49, 15 September 2022

PLYR
Player
TypeEntity
Base Type0x03
Games usedNight of 100 Frights

Battle for Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

Ratatouille Prototype
Source codezEntPlayer.h

This asset defines an entry for the player.

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 in BFBB is always spongebob_bind.MINF (boot.HIP).
  • Model asset ID in Scooby is always sd.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