1,535
edits
(Created page with "{{AssetInfobox |subtitle=Surface |type=Object |objectid=0x1A |games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<...") |
m (Seil moved page SURF to EvilEngine/SURF) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1:
<onlyinclude>
{{#vardefine:typeid|SURF}}<nowiki/>
{{#vardefine:name|Surface}}<nowiki/>
{{#vardefine:type|[[Base]]}}<nowiki/>
{{#vardefine:basetype|0x1A}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zSurface.h zSurface.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
This asset defines an entry for a surface, which can be applied to other assets such as [[PLAT]], [[SIMP]], [[BOUL]] or even parts of [[JSP]] through the [[MAPR]] asset. The surface can have properties such as special materials, texture animations or patterns, and properties such as hurt, wall jump, out of bounds, prevent standing on.
==Format==
Surfaces are [[
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x08 ||
* 0x00 = ?
* 0x01 = ?
Line 19 ⟶ 24:
* 0x06 = Hazard?
|-
| 0x09 ||
|-
| 0x0A ||
* 0x00 = ?
* 0x01 = ?
|-
| 0x0B ||
|-
| 0x0C ||
|-
| 0x0D ||
|-
| 0x0E ||
|-
| 0x0F ||
* 0x00 =
* 0x02 =
* 0x03 = ?
* 0x04 =
* 0x08 =
* 0x10 =
* 0x20 =
* 0x48 = ?
|-
Line 49 ⟶ 54:
| 0x2C || [[#zSurfColorFX|zSurfColorFX]] || '''colorfx''' ||
|-
| 0x34 ||
|-
| 0x38 || [[#zSurfTextureAnim|zSurfTextureAnim]][2] || '''texture_anim''' ||
|-
| 0x50 ||
|-
| 0x54 || [[#zSurfUVFX|zSurfUVFX]][2] || '''uvfx''' ||
|-
| 0x114 ||
|-
| 0x115 ||
|-
| 0x118 || float || '''oob_delay''' ||
Line 80 ⟶ 85:
! Offset !! Type !! Variable !! Description
|-
| 0x00 ||
* 0 = ?
* 1 = ?
* 8 = ?
|-
| 0x04 || [[AssetID]]
|-
| 0x08 || [[AssetID]]
|-
| 0x0C || float || '''shininess''' ||
Line 93 ⟶ 98:
| 0x10 || float || '''bumpiness''' || usually 0
|-
| 0x14 || [[AssetID]]
|}
Line 100 ⟶ 105:
! Offset !! Type !! Variable !! Description
|-
| 0x00 ||
|-
| 0x02 ||
|-
| 0x04 || float || '''speed''' ||
Line 111 ⟶ 116:
! Offset !! Type !! Variable !! Description
|-
| 0x00 ||
|-
| 0x02 ||
* 0 = ?
* 2 = ?
|-
| 0x04 || [[AssetID]]
|-
| 0x08 || float || '''speed''' ||
Line 147 ⟶ 152:
| 0xA8 || [[Vector3]] || '''minmax_spd''' || usually (0, 0, 0)
|}
{{Assets}}
{{AutoGameNavs}}
[[Category:Asset]]
|