EvilEngine/BUTN

Revision as of 17:43, 30 November 2018 by Battlepedia>Seil

This asset defines an entry for buttons such as switches and pressure plates.

BUTN
Button
TypePlaceable
Games usedThe Incredibles

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.
  • 0 = Switch - Button stays pressed after being hit. (Also has a flashing effect)
  • 1 = Pressure Plate - Button stays pressed until it stops being hit, then it becomes unpressed.
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 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
  • 1 - Bubble Bounce
  • 2 - Bubble Bash
  • 3 - Bubble Bowl
  • 4 - Cruise Bubble
  • 5 -
  • 6 -
  • 7 - Throwable
  • 8 - Patrick Slam
  • 9 -
  • 10 - Player Stand
  • 11 -
  • 12 - Bubble Bowl (Pressure Plate)
  • 13 - Throwable (Pressure Plate)
  • 14 - Sandy Melee
  • 15 - Patrick Belly
  • 16 - Throw Fruit (Pressure Plate)
  • 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
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

Events