EvilEngine/BUTN

Revision as of 02:42, 6 December 2018 by Battlepedia>Seil (→‎Format)

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 bitmask specifies what can press the button.
  • 0 - Bubble Spin
  • 1 - Bubble Bounce
  • 2 - Bubble Bash
  • 3 - Bubble Bowl/Boulder
  • 4 - Cruise Bubble
  • 5 - Bungee
  • 6 - Thrown Enemy/Tiki
  • 7 - Throw Fruit
  • 8 - Patrick Slam
  • 9 - Unknown
  • 10 - Player Stand on Pressure Plate
  • 11 - Enemy Stand on Pressure Plate
  • 12 - Bubble Bowl/Boulder on Pressure Plate
  • 13 - Any Throwable on Pressure Plate (only Stone Tiki auto-target)
  • 14 - Sandy Melee
  • 15 - Patrick Melee
  • 16 - Any Throwable on Pressure Plate (only Throw Fruit auto-target)
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