EvilEngine/BUTN: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Igorseabra4
(Created page with "==BUTN== This asset defines an entry for buttons such as switches and pressure plates. ==Format== {| class="wikitable" ! Offset !! Type !! Description |- ! colspan="3" | Head...")
 
Battlepedia>Igorseabra4
Line 3: Line 3:


==Format==
==Format==
Buttons are [[Placeable Asset|placeable assets]], so they start with their 0x54 byte header, then are followed by:

{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Description
! Offset !! Type !! Description
|-
! colspan="3" | Header
|-
| 0x00 || [[AssetID]] || '''Asset ID'''.
|-
| 0x04 || byte || '''Asset type'''. 0x18 for BUTN.
|-
| 0x05 || byte || '''Number of Events'''.
|-
| 0x06 || short || '''Flags'''. Usually 00 1D
|-
! colspan="3" | Button
|-
| 0x08 || byte[4] || Unknown. Usually 01 00 00 02 but sometimes different
|-
| 0x0C || int || null
|-
| 0x10 || int || null
|-
| 0x14 || Vector3 || '''Rotation'''
|-
| 0x20 || Vector3 || '''Position'''
|-
| 0x2C || Vector3 || '''Scale'''
|-
| 0x38 || Vector4 || '''Color'''
|-
| 0x48 || float || '''Unknown'''
|-
| 0x4C || [[AssetID]] || '''[[MINF]]'''
|-
| 0x50 || int || null
|-
| 0x54 || [[AssetID]] || ?
|-
|-
| 0x58 || int || Type? 0 = Switch, 1 = Pressure Plate
| 0x58 || int || Type? 0 = Switch, 1 = Pressure Plate

Revision as of 00:09, 6 September 2018

BUTN

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
0x58 int Type? 0 = Switch, 1 = Pressure Plate
0x5C int null
0x60 int Unknown. 0 or 1.
0x64 float Unknown.
0x68 int Unknown.
0x6C byte[8] Unknown.
0x74 Vector2 Unknown.
0x7C int[8] Unknown (null?)
Events
0x9C Event[numberOfEvents] Events

Events