EvilEngine/SGRP: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 4:
{{#vardefine:type|[[Base]]}}<nowiki/>
{{#vardefine:basetype|0x4A}}<nowiki/>
{{#vardefine:games|TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
Line 31:
</source>
 
===xSndGroupHeader===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
Line 36 ⟶ 37:
| 0x8 || uint32 || '''uPlayedMask''' || Always 0
|-
| 0xC || uint8 || '''uInfoCount''' || usuallyAmount 0x00of sound entries
|-
| 0xD || uint8 || '''uSetBits''' || usually 0x300x00
|-
| 0xE || int8 || '''uMaxPlays''' || usually 0x800x30
|-
| 0xF || uint8 || '''uPriority''' || usually 0x000x80
|-
| 0x10 || uint8 || '''uFlags''' || usually 0x00. 01 - PlayGlobally
|-
| 0x11 || uint8 || '''eSoundCategory''' || usually 0x00. 01 - Choose Random EntryPlayGlobally
|-
| 0x12 || uint8 || '''ePlayRule''' || usually 0x420x00
|-
| 0x13 || uint8 || '''uInfoPad0''' || usually 0x000x42
|-
| 0x14 || float32 || '''InnerRadiusfInnerRadius''' || usually 8.0
|-
| 0x18 || float32 || '''OuterRadiusfOuterRadius''' || usually 25.0
|-
| 0x1C || int8* || '''pszGroupName''' || Unknown AssetID
|-
| 0x20 || SoundEntryxSndGroupInfo[amountOfSoundsuInfoCount] || || Sound reference entries
|-
! colspan="4" | Events
Line 65 ⟶ 66:
|}
 
 
===Sound Entry===
===xSndGroupInfo===
<source lang=cpp>
struct xSndGroupInfo
{
uint32 uSoundNameHash;
float32 fVolume;
float32 fMinPitchMult;
float32 fMaxPitchMult;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x0 || [[Asset IDAssetID]] || '''soundAssetIDuSoundNameHash''' || [[Sound Format|SND/SNDS]]
|-
| 0x4 || float || '''VolumefVolume''' || usually between 0-1
|-
| 0x8 || float || '''minPitchMultfMinPitchMult''' || usually 0
|-
| 0xC || float || '''maxPitchMultfMaxPitchMult''' || usually 0
|}
 
2,079

edits