3424 {
3426 DayZPlayerTypeAttachmentSoundLookupTable table = type.GetAttachmentSoundLookupTable();
3427
3428 array<string> attachments = new array<string>();
3429 pUserString.
Split(
",", attachments);
3430 for (int i = 0; i < attachments.Count(); i++)
3431 {
3432 int attachmentHash = -1;
3433 if (attachments[i] == "shoulder")
3435 else if (attachments[i] == "body")
3437 else if (attachments[i] == "back")
3439
3441
3442 if (soundBuilder != NULL)
3443 {
3444 SoundObject soundObject = soundBuilder.BuildSoundObject();
3445 if (soundObject != NULL)
3446 {
3449 }
3450 }
3451 }
3452 }
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'.