Difference between revisions of "SIMP"

From Battlepedia
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
| 0x58 || int || '''initAnimState''' ||
 
| 0x58 || int || '''initAnimState''' ||
 
|-
 
|-
| 0x5C || byte || '''collType''' || Solidity mode?
+
| 0x5C || byte || '''collType''' || Collision type. Set to None to disable collision and Static to enable collision.
 +
 
 +
The other types listed here do not affect SIMPs in any way, and are only used internally by a variety of entity types. Interestingly, this value is used as a bitmask during initialization, so it is possible to set multiple types at once, with Static (0x2) being the only functional type.
 +
 
 +
* 0 - None
 +
* 1 - Trigger ([[TRIG]])
 +
* 2 - Static ([[SIMP]])
 +
* 4 - Dynamic ([[PLAT]], [[BUTN]], [[DSTR]])
 +
* 8 - NPC ([[VIL]])
 +
* 16 - Player ([[PLYR]])
 
|-
 
|-
| 0x5D || byte || '''flags''' ||
+
| 0x5D || byte || '''flags''' || Always 0
 
|-
 
|-
| 0x5E || short || unknown || padding?
+
| 0x5E || - || - || padding
 
|-
 
|-
 
! colspan="4" | Events
 
! colspan="4" | Events

Latest revision as of 04:46, 1 July 2020

SIMP
Simple Object
Type Placeable
Object ID 0x0B
Games used Night of 100 Frights
Battle for Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

This asset usually defines an entry for a simple, stationary object which may or may not be visible and collidable.

Format

SIMPs are placeable assets, so they start with their 0x54 byte header, then are followed by:

Offset Type Variable Description
0x54 float animSpeed
0x58 int initAnimState
0x5C byte collType Collision type. Set to None to disable collision and Static to enable collision.

The other types listed here do not affect SIMPs in any way, and are only used internally by a variety of entity types. Interestingly, this value is used as a bitmask during initialization, so it is possible to set multiple types at once, with Static (0x2) being the only functional type.

0x5D byte flags Always 0
0x5E - - padding
Events
0x60 Event[numberOfEvents] Events

Events