3472 {
3474 DayZPlayerTypeAttachmentSoundLookupTable table = type.GetAttachmentSoundLookupTable();
3475
3476 array<string> attachments = new array<string>();
3477 pUserString.
Split(
",", attachments);
3478 for (int i = 0; i < attachments.Count(); i++)
3479 {
3480 int attachmentHash = -1;
3481 if (attachments[i] == "shoulder")
3483 else if (attachments[i] == "body")
3485 else if (attachments[i] == "back")
3487
3489
3490 if (soundBuilder != NULL)
3491 {
3492 SoundObject soundObject = soundBuilder.BuildSoundObject();
3493 if (soundObject != NULL)
3494 {
3497 }
3498 }
3499 }
3500 }
AnimBackType GetBackAttachmentType()
void AttenuateSoundIfNecessary(SoundObject soundObject)
AnimRangedWeaponType GetShoulderAttachmentType()
AnimUpperBodyType GetBodyAttachmentType()
SoundObjectBuilder GetSoundBuilder(int eventId, string slotName, int attachmentHash)
proto native DayZPlayerType GetDayZPlayerType()
returns appropriate DayZPlayerType
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
void SoundObject(SoundParams soundParams)
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.