9 void InitTable(
string tableCategoryName,
string parameterName)
22 for(
int i = 0; i < soundCount; i++)
24 string soundClassName;
26 string soundClassPath =
path +
" " + soundClassName +
" ";
36 for(
int j = 0; j < soundSetNames.Count(); j++)
41 if(soundObjectBuilder != NULL)
42 soundObjectBuilders.Insert(soundObjectBuilder);
45 if(soundObjectBuilders.Count() > 0)
57 if(soundObjects == NULL || soundObjects.Count() == 0)
61 else if (soundObjects.Count() == 1)
63 return soundObjects.Get(0);
68 return soundObjects.Get(index);
83 InitTable(
"CfgStepSoundTables",
"surface");
91 InitTable(
"CfgAttachmentSoundTables",
"category");
101 InitTable(
"CfgVoiceSoundTables",
"category");
120 InitTable(
"CfgImpactSoundTables",
"surface");
128 InitTable(
"CfgActionsSoundTables",
"category");
152 int soundSetNameHash = soundSetName.
Hash();
165 Print(
"AnimSoundObjectBuilderBank: Invalid sound set \"" + soundSetName +
"\".");
196 int tableNameHash = tableName.
Hash();
210 int tableNameHash = tableName.
Hash();
224 int tableNameHash = tableName.
Hash();
void PlayerVoiceLookupTable()
SoundLookupTable GetImpactTable(string tableName)
void SetNoiseParam(NoiseParams param)
autoptr map< int, ref SoundObjectBuilder > m_pBuilders
class AnimSoundObjectBuilderBank AnimSoundLookupTableBank()
static AnimSoundObjectBuilderBank GetInstance()
SoundLookupTable GetStepTable(string tableName)
SoundLookupTable GetActionTable(string tableName)
static ref AnimSoundObjectBuilderBank m_instance
class AttachmentSoundLookupTable extends SoundLookupTable m_NoiseParams
class ImpactSoundLookupTable extends SoundLookupTable ActionSoundLookupTable()
autoptr map< int, ref SoundLookupTable > m_pTables
class SoundLookupTable StepSoundLookupTable()
NoiseParams GetNoiseParam()
void ImpactSoundLookupTable()
class NoiseSystem NoiseParams()
static AnimSoundObjectBuilderBank GetInstance()
static ref AnimSoundObjectBuilderBank m_instance
SoundObjectBuilder GetBuilder(string soundSetName)
autoptr map< int, ref SoundObjectBuilder > m_pBuilders
void AnimSoundObjectBuilderBank()
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
void AttachmentSoundLookupTable()
void LoadTable(string soundLookupTableName)
ref map< int, ref array< SoundObjectBuilder > > m_soundBuilders
SoundObjectBuilder GetSoundBuilder(int parameterHash)
string m_tableCategoryName
void ImpactSoundLookupTable()
void InitTable(string tableCategoryName, string parameterName)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)
proto native int Hash()
Returns hash of string.