106 {
109
110 string attachCfgPath = "CfgVehicles SurvivorBase AnimEvents Attachments ";
111 int attachCount =
g_Game.ConfigGetChildrenCount(attachCfgPath);
112 for(int i = 0; i < attachCount; i++)
113 {
114 string defName;
115 g_Game.ConfigGetChildName(attachCfgPath, i, defName);
116 string defPath = attachCfgPath + defName + " ";
117
120
121 int id =
g_Game.ConfigGetInt(defPath +
"id");
122
123 string tableName;
124 g_Game.ConfigGetText(defPath +
"soundLookupTable", tableName);
125
127 if(table == NULL)
128 {
129 table = new AttachmentSoundLookupTable();
130 table.LoadTable(tableName);
132 }
133
PlayerSpawnPreset slotName
autoptr map< int, StepSoundLookupTable > m_pSoundTables
autoptr map< int, ref StepSoundLookupTable > m_pSoundTableInstances
proto native int Hash()
Returns hash of string.