EvilEngine/BUTN: Difference between revisions

m
Seil moved page BUTN to EvilEngine/BUTN
Battlepedia>Wowaname
No edit summary
m (Seil moved page BUTN to EvilEngine/BUTN)
 
(7 intermediate revisions by 2 users not shown)
Line 1:
<onlyinclude>
''For the object as it is seen in [[BFBB]] gameplay, see [[Button]].''
{{#vardefine:typeid|BUTN}}<nowiki/>
 
{{#vardefine:name|Button}}<nowiki/>
{{AssetInfobox
{{#vardefine:type|[[Entity]]}}<nowiki/>
|subtitle=Button
{{#vardefine:basetype|0x18}}<nowiki/>
|type=[[Placeable]]
{{#vardefine:games|Scooby BFBB TSSM Incredibles}}<nowiki/>
|objectid=0x18
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntButton.h zEntButton.h]}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles}}
{{#vardefine:image|Buttons.png}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
This asset defines an entry for buttons such as switches and pressure plates.
 
==Format==
Buttons are [[Placeable AssetEntity|placeableentity assets]], so they start with their 0x54 byte header, then are followed by:
 
{| class="wikitable"
Line 28 ⟶ 31:
|-
| 0x68 || int || '''buttonActFlags''' || This bitmask specifies what can press the button.
* 00x1 - Bubble Spin/Sliding (SpongeBob)
* 10x2 - Bubble Bounce
* 20x4 - Bubble Bash
* 30x8 - [[BOUL|Boulder]]/Bubble Bowl
* 40x10 - Cruise Bubble
* 50x20 - Bungee
* 60x40 - Thrown Enemy/Tiki
* 70x80 - Throw Fruit
* 80x100 - Patrick Slam
* 90x200 - Unknown
* 100x400 - (Pressure Plate) Player Stand
* 110x800 - (Pressure Plate) Enemy Stand
* 120x1000 - (Pressure Plate) [[BOUL|Boulder]]/Bubble Bowl
* 130x2000 - (Pressure Plate) Stone Tiki
* 140x4000 - Sandy Melee/Sliding
* 150x8000 - Patrick Melee/Sliding
* 160x10000 - (Pressure Plate) Throw Fruit
* 0x20000 - Patrick Cartwheel (TSSM only, unused in BFBB)
* 17-31 - Unused
* The rest of the bits are unused.
|-
| 0x6C || [[Motion]] || '''Motion''' || Always type 4 (Mechanism)
Line 57 ⟶ 61:
 
=== Events ===
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]