EvilEngine/SFX

From Heavy Iron Modding
(Redirected from SFX)

SFX
Sound FX
TypeBase
Base Type0x13
Games usedNight of 100 Frights
Battle for Bikini Bottom
Source codexSFX.h

This asset defines an entry for a sound effect, an asset which is able to play a sound, either from a trigger-ish volume or an event.

Format

SFX are base assets, so they start with their 0x8 byte header, then are followed by:

Offset Type Variable Description
0x8 short flagsSFX byte 1 - Usually 1

byte 2 - Related to how the sound will play (always, only in volume...)

0xA short freq Usually 0.
0xC float freqm min frequency? Usually 1.0.
0x10 AssetID soundAssetID SND or SNDS reference.
0x14 AssetID attachID
0x18 byte loopCount
0x19 byte priority
0x1A byte volume
0x1B byte pad padding
0x1C Vector3 pos Position
0x28 float innerRadius Sound will be maximum volume inside this radius.
0x2C float outerRadius Sound will stop playing outside of it.
Events
0x30 Event[numberOfEvents] Events