3490 {
3492 DayZPlayerTypeAttachmentSoundLookupTable table = type.GetAttachmentSoundLookupTable();
3493
3494 array<string> attachments = new array<string>();
3495 pUserString.
Split(
",", attachments);
3496 for (int i = 0; i < attachments.Count(); i++)
3497 {
3498 int attachmentHash = -1;
3499 if (attachments[i] == "shoulder")
3501 else if (attachments[i] == "body")
3503 else if (attachments[i] == "back")
3505
3507
3508 if (soundBuilder != NULL)
3509 {
3510 SoundObject soundObject = soundBuilder.BuildSoundObject();
3511 if (soundObject != NULL)
3512 {
3515 }
3516 }
3517 }
3518 }
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'.