DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ProcessAttachmentEvent()

void DayZPlayer::ProcessAttachmentEvent ( string pEventType,
string pUserString,
int pUserInt )
inlineprotected

См. определение в файле DayZPlayerImplement.c строка 3471

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")
3482 attachmentHash = GetShoulderAttachmentType();
3483 else if (attachments[i] == "body")
3484 attachmentHash = GetBodyAttachmentType();
3485 else if (attachments[i] == "back")
3486 attachmentHash = GetBackAttachmentType();
3487
3488 SoundObjectBuilder soundBuilder = table.GetSoundBuilder(pUserInt, attachments[i], attachmentHash);
3489
3490 if (soundBuilder != NULL)
3491 {
3492 SoundObject soundObject = soundBuilder.BuildSoundObject();
3493 if (soundObject != NULL)
3494 {
3495 AttenuateSoundIfNecessary(soundObject);
3496 PlaySound(soundObject, soundBuilder);
3497 }
3498 }
3499 }
3500 }
void PlaySound()
Определения HungerSoundHandler.c:39
AnimBackType GetBackAttachmentType()
Определения DayZPlayerImplement.c:3107
void AttenuateSoundIfNecessary(SoundObject soundObject)
Определения DayZPlayerImplement.c:3832
AnimRangedWeaponType GetShoulderAttachmentType()
Определения DayZPlayerImplement.c:3129
AnimUpperBodyType GetBodyAttachmentType()
Определения DayZPlayerImplement.c:3076
SoundObjectBuilder GetSoundBuilder(int eventId, string slotName, int attachmentHash)
Определения dayzplayer.c:172
void DayZPlayerType()
Определения dayzplayer.c:512
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'.
Определения EnString.c:396

Перекрестные ссылки AttenuateSoundIfNecessary(), DayZPlayerType(), GetBackAttachmentType(), GetBodyAttachmentType(), GetDayZPlayerType(), GetShoulderAttachmentType(), DayZPlayerTypeAttachmentSoundLookupTable::GetSoundBuilder(), PlaySound(), SoundObjectBuilder() и string::Split().

Используется в OnSoundEvent().