EquipSndTable Asset: Difference between revisions
Created page with "The equipsndtable asset clearly contains information on the sounds made when switching weapons. This asset was added on Ghosts and as such there is very little information kno..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
The equipsndtable asset | __NOTOC__ | ||
[[Category:Assets]] | |||
[[Category:Ghosts]] | |||
The equipsndtable asset contains sound information pertaining to equipment. | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
struct | struct EquipmentClothData | ||
{ | { | ||
char * | char *szName; | ||
}; | }; | ||
struct | struct __declspec(align(8)) EquipmentWeaponRattleData | ||
{ | { | ||
char * | char *szName; | ||
float priority; | |||
}; | }; | ||
struct | struct EquipmentSndChance | ||
{ | { | ||
float rattleChance; | |||
float accentChance; | |||
float silentChance; | |||
}; | }; | ||
struct | struct EquipmentChanceMoveTypes | ||
{ | { | ||
EquipmentSndChance *chances; | |||
}; | }; | ||
struct | struct EquipmentChanceRattleTypes | ||
{ | { | ||
EquipmentChanceMoveTypes *chances; | |||
}; | }; | ||
struct | struct EquipmentSoundSet | ||
{ | { | ||
snd_alias_list_name soundPLR; | |||
snd_alias_list_name soundNPC; | |||
}; | }; | ||
struct | struct EquipSoundSetMoveTypes | ||
{ | { | ||
EquipmentSoundSet *soundSets; | |||
}; | }; | ||
struct | struct EquipSoundSetMantleTypes | ||
{ | { | ||
const char * | EquipmentSoundSet soundSets[14]; | ||
unsigned int | }; | ||
unsigned int | |||
unsigned int | struct EquipmentSoundTable | ||
{ | |||
const char *szName; | |||
unsigned int numClothTypes; | |||
unsigned int numWeaponRattleTypes; | |||
unsigned int numMoveTypes; | |||
EquipmentClothData *clothTypes; | |||
EquipmentWeaponRattleData *weaponRattleTypes; | |||
EquipmentChanceRattleTypes *chancesPLR; | |||
EquipmentChanceRattleTypes *chancesNPC; | |||
EquipSoundSetMoveTypes *mvmtClothSoundSets; | |||
EquipSoundSetMoveTypes *mvmtRattleSoundSets; | |||
EquipSoundSetMoveTypes mvmtAccentSoundSets; | |||
EquipSoundSetMantleTypes *mvmtMantleSoundSets; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 05:27, 22 December 2014
The equipsndtable asset contains sound information pertaining to equipment.
struct EquipmentClothData
{
char *szName;
};
struct __declspec(align(8)) EquipmentWeaponRattleData
{
char *szName;
float priority;
};
struct EquipmentSndChance
{
float rattleChance;
float accentChance;
float silentChance;
};
struct EquipmentChanceMoveTypes
{
EquipmentSndChance *chances;
};
struct EquipmentChanceRattleTypes
{
EquipmentChanceMoveTypes *chances;
};
struct EquipmentSoundSet
{
snd_alias_list_name soundPLR;
snd_alias_list_name soundNPC;
};
struct EquipSoundSetMoveTypes
{
EquipmentSoundSet *soundSets;
};
struct EquipSoundSetMantleTypes
{
EquipmentSoundSet soundSets[14];
};
struct EquipmentSoundTable
{
const char *szName;
unsigned int numClothTypes;
unsigned int numWeaponRattleTypes;
unsigned int numMoveTypes;
EquipmentClothData *clothTypes;
EquipmentWeaponRattleData *weaponRattleTypes;
EquipmentChanceRattleTypes *chancesPLR;
EquipmentChanceRattleTypes *chancesNPC;
EquipSoundSetMoveTypes *mvmtClothSoundSets;
EquipSoundSetMoveTypes *mvmtRattleSoundSets;
EquipSoundSetMoveTypes mvmtAccentSoundSets;
EquipSoundSetMantleTypes *mvmtMantleSoundSets;
};