Actions

Documentation:polygoninfo&soundpolygoninfo

From LMHack

Author(s)

opeyx

Description

Documentation on the jump tables polygoninfo and soundpolygoninfo.

These files can be edited with Jumpah; however, this is not recommended since these files will be automatically generated with Collidah after exporting.

Polygoninfo

polygoninfo is a jump table defining collision properties for the triangles within a map's collision mesh. Each entry has a corresponding triangle with the same index in the map's collision file: col.mp.

Field Name Type Description
poly_material Integer Collision materials. 0 = default, 1 = ice.
hashigo Integer (WIP) 0 = default, 1 = stairs (1 is set for half a stairs step's face).
ignore_pointer Integer (WIP) Seems to be 1 bit of padding.

Soundpolygoninfo

soundpolygoninfo is a jump table defining collision sound properties for the triangles within a map's collision mesh. Each entry has a corresponding triangle with the same index in the map's collision file: col.mp. The sound associated with each triangle will be played when Luigi walks over or taps on the traingle.

Field Name Type Description
sound_material Integer 0 = SND_MAT_DEFAULT
1 = SND_MAT_CARPET
2 = SND_MAT_DIRT
3 = SND_MAT_GRASS
4 = SND_MAT_WOOD
5 = SND_MAT_TILE
6 = SND_MAT_FLUFFY
7 = SND_MAT_KEYCOIN
8 = SND_MAT_EQUIPMENT1
9 = SND_MAT_EQUIPMENT2
10 = SND_MAT_POISON1
11 = SND_MAT_POISON2
12 = SND_MAT_METAL1
13 = SND_MAT_METAL2
14 = SND_MAT_SNARE
15 = SND_MAT_FLASHLIGHT
sound_echo_switch Integer (WIP)