EvilEngine/BUTN: Difference between revisions
Content added Content deleted
Battlepedia>Seil No edit summary |
Battlepedia>Seil (→Format) |
||
Line 25: | Line 25: | ||
| 0x64 || float || '''Hold Length''' in seconds. Only applies to buttons of type Switch. |
| 0x64 || float || '''Hold Length''' in seconds. Only applies to buttons of type Switch. |
||
|- |
|- |
||
| 0x68 || int || '''Hit Mask'''. This bitmask specifies what can press the button. |
|||
| 0x68 || int || '''Hit Mask'''. This specifies the different ways the button can be hit. If this is 0, the button by default doesn't react to any Hit events. For each bit you include in this mask, a corresponding Hit event will automatically be set up to fire ButtonPress for you. For example, if the mask includes Bubble Spin and Bubble Bowl, the button will automatically fire ButtonPress when it receives either Hit Melee or Hit Bubble Bowl. |
|||
* 0 - Bubble Spin |
* 0 - Bubble Spin |
||
* 1 - Bubble Bounce |
* 1 - Bubble Bounce |
||
* 2 - Bubble Bash |
* 2 - Bubble Bash |
||
* 3 - Bubble Bowl |
* 3 - Bubble Bowl/Boulder |
||
* 4 - Cruise Bubble |
* 4 - Cruise Bubble |
||
* 5 - |
* 5 - Bungee |
||
* 6 - |
* 6 - Thrown Enemy/Tiki |
||
* 7 - |
* 7 - Throw Fruit |
||
* 8 - Patrick Slam |
* 8 - Patrick Slam |
||
* 9 - |
* 9 - Unknown |
||
* 10 - Player Stand |
* 10 - Player Stand on Pressure Plate |
||
* 11 - Enemy Stand on Pressure Plate |
|||
* 11 - |
|||
* 12 - Bubble Bowl |
* 12 - Bubble Bowl/Boulder on Pressure Plate |
||
* 13 - Throwable |
* 13 - Any Throwable on Pressure Plate (only Stone Tiki auto-target) |
||
* 14 - Sandy Melee |
* 14 - Sandy Melee |
||
* 15 - Patrick |
* 15 - Patrick Melee |
||
* 16 - |
* 16 - Any Throwable on Pressure Plate (only Throw Fruit auto-target) |
||
* 17 - |
|||
* 18 - |
|||
* 19 - |
|||
* 20 - |
|||
* 21 - |
|||
* 22 - |
|||
* 23 - |
|||
* 24 - |
|||
* 25 - |
|||
* 26 - |
|||
* 27 - |
|||
* 28 - |
|||
* 29 - |
|||
* 30 - |
|||
* 31 - |
|||
|- |
|- |
||
| 0x6C || byte[8] || Unknown. Usually 4,0,0,4,2,1,1,0 |
| 0x6C || byte[8] || Unknown. Usually 4,0,0,4,2,1,1,0 |
Revision as of 02:42, 6 December 2018
BUTN | |
---|---|
Button | |
Type | Placeable |
Games used | The Incredibles |
This asset defines an entry for buttons such as switches and pressure plates.
Format
Buttons are placeable assets, so they start with their 0x54 byte header, then are followed by:
Offset | Type | Description |
---|---|---|
0x54 | AssetID | Pressed model. Defaults to the model in the placeable header |
0x58 | int | Type of button.
|
0x5C | int | null |
0x60 | int | Hold Enabled. 0 (disabled) or 1 (enabled). Only applies to buttons of type Switch. If enabled, whenever the button is pressed, it stays pressed for Hold Length, then it unpresses. Useful for time challenges or any situation where you want the button to only stay pressed for a certain amount of time. |
0x64 | float | Hold Length in seconds. Only applies to buttons of type Switch. |
0x68 | int | Hit Mask. This bitmask specifies what can press the button.
|
0x6C | byte[8] | Unknown. Usually 4,0,0,4,2,1,1,0 |
0x74 | float | Y Offset of button during its pressed state. |
0x78 | float | Transition time in seconds between its unpressed and pressed states. |
0x7C | float[2] | Transition Ease In/Out modifiers. |
0x84 | int[6] | null |
Events | ||
0x9C | Event[numberOfEvents] | Events |