12 void LoadSoundEvents()
14 string cfgPath =
"CfgVehicles " + GetName() +
" AnimEvents SoundWeapon";
18 int soundCount =
GetGame().ConfigGetChildrenCount(cfgPath);
22 cfgPath =
"CfgWeapons " + GetName() +
" AnimEvents SoundWeapon";
23 soundCount =
GetGame().ConfigGetChildrenCount(cfgPath);
28 cfgPath =
"CfgMagazines " + GetName() +
" AnimEvents SoundWeapon";
29 soundCount =
GetGame().ConfigGetChildrenCount(cfgPath);
34 cfgPath =
"CfgAmmo " + GetName() +
" AnimEvents SoundWeapon";
35 soundCount =
GetGame().ConfigGetChildrenCount(cfgPath);
38 for (
int i = 0; i < soundCount; i++)
41 GetGame().ConfigGetChildName(cfgPath, i, soundName);
42 string soundPath = cfgPath +
" " + soundName +
" ";
43 AnimSoundEvent soundEvent =
new AnimSoundEvent(soundPath);
44 if (soundEvent.IsValid())
50 AnimSoundEvent GetSoundEvent(
int event_id)
54 if (soundEvent.m_iID == event_id)
62 proto native owned
string GetName();