EvilEngine/SGRP: Difference between revisions
m
no edit summary
m (1 revision imported) |
EnergyDrink (talk | contribs) mNo edit summary |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1:
<onlyinclude>
{{#vardefine:typeid|SGRP}}<nowiki/>
{{#vardefine:name|Sound Group}}<nowiki/>
{{#vardefine:type|[[Base]]}}<nowiki/>
{{#vardefine:basetype|0x4A}}<nowiki/>
{{#vardefine:games|TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
==Format==
SGRP are [[Base|base assets]], so they start with their 0x8 byte header, then are followed by:
<source lang=cpp>
struct xSndGroupHeader : xBaseAsset
{
uint32 uPlayedMask;
uint8 uInfoCount;
uint8 uSetBits;
int8 nMaxPlays;
uint8 uPriority;
uint8 uFlags;
uint8 eSoundCategory;
uint8 ePlayRule;
uint8 uInfoPad0;
float32 fInnerRadius;
float32 fOuterRadius;
int8* pszGroupName;
};
</source>
===xSndGroupHeader===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x8 ||
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
| 0x1C || int8* || '''pszGroupName''' || Unknown AssetID
| 0x20 || SoundEntry[amountOfSounds] || || Sound reference entries▼
|-
|-
! colspan="4" | Events
Line 40 ⟶ 66:
|}
===xSndGroupInfo===
<source lang=cpp>
struct xSndGroupInfo
{
uint32 uSoundNameHash;
float32 fVolume;
float32 fMinPitchMult;
float32 fMaxPitchMult;
};
</source>
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x0 || [[
|-
| 0x4 || float || '''
|-
| 0x8 ||
|-
| 0xC ||
|}
{{Assets}}
{{AutoGameNavs}}
[[Category:Asset]]
|