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)
private autoptr map< int, ref SoundLookupTable > m_pTables
static private ref AnimSoundObjectBuilderBank m_instance
void SetNoiseParam(NoiseParams param)
class AnimSoundObjectBuilderBank AnimSoundLookupTableBank()
static AnimSoundObjectBuilderBank GetInstance()
SoundLookupTable GetStepTable(string tableName)
SoundLookupTable GetActionTable(string tableName)
class AttachmentSoundLookupTable extends SoundLookupTable m_NoiseParams
class ImpactSoundLookupTable extends SoundLookupTable ActionSoundLookupTable()
class SoundLookupTable StepSoundLookupTable()
NoiseParams GetNoiseParam()
void ImpactSoundLookupTable()
class NoiseSystem NoiseParams()
SoundObjectBuilder GetBuilder(string soundSetName)
void AnimSoundObjectBuilderBank()
static AnimSoundObjectBuilderBank GetInstance()
static private ref AnimSoundObjectBuilderBank m_instance
private autoptr map< int, ref SoundObjectBuilder > m_pBuilders
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
void LoadTable(string soundLookupTableName)
SoundObjectBuilder GetSoundBuilder(int parameterHash)
void InitTable(string tableCategoryName, string parameterName)
private string m_parameterName
void AttachmentSoundLookupTable()
private string m_tableCategoryName
private ref map< int, ref array< SoundObjectBuilder > > m_soundBuilders
void ImpactSoundLookupTable()
proto native bool IsValid()
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].
proto native int Hash()
Returns hash of string.