BUTN

From Battlepedia
Jump to navigationJump to search
BUTN
Button
Type Placeable
Object ID 0x18
Games used Night of 100 Frights
Battle for Bikini Bottom
The SpongeBob SquarePants Movie
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 Variable Description
0x54 AssetID modelPressedInfoID Defaults to ModelAssetID in the placeable header (same model for pressed and unpressed).
0x58 int actMethod
  • 0 = Button - Stays pressed upon being hit. (Also has a flashing effect)
  • 1 = Pressure Plate - Stays pressed until it stops being hit, then unpresses.
0x5C int initButtonState
0x60 int isReset 0 (disabled) or 1 (enabled). If this is enabled, the button will automatically unpress itself after resetDelay. (Only works on Button, not Pressure Plate.) Useful for timed challenges.
0x64 float resetDelay (seconds) Time to wait after being pressed to unpress.
0x68 int buttonActFlags This bitmask specifies what can press the button.
  • 0 - Bubble Spin/Sliding (SpongeBob)
  • 1 - Bubble Bounce
  • 2 - Bubble Bash
  • 3 - Boulder/Bubble Bowl
  • 4 - Cruise Bubble
  • 5 - Bungee
  • 6 - Thrown Enemy/Tiki
  • 7 - Throw Fruit
  • 8 - Patrick Slam
  • 9 - Unknown
  • 10 - (Pressure Plate) Player Stand
  • 11 - (Pressure Plate) Enemy Stand
  • 12 - (Pressure Plate) Boulder/Bubble Bowl
  • 13 - (Pressure Plate) Stone Tiki
  • 14 - Sandy Melee/Sliding
  • 15 - Patrick Melee/Sliding
  • 16 - (Pressure Plate) Throw Fruit
  • 17-31 - Unused
0x6C Motion Motion Always type 4 (Mechanism)
Events
0x9C Event[numberOfEvents] Events BFBB
0xA8 Event[numberOfEvents] Events Movie

Events