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

◆ ProcessAttachmentEvent()

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

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

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")
3500 attachmentHash = GetShoulderAttachmentType();
3501 else if (attachments[i] == "body")
3502 attachmentHash = GetBodyAttachmentType();
3503 else if (attachments[i] == "back")
3504 attachmentHash = GetBackAttachmentType();
3505
3506 SoundObjectBuilder soundBuilder = table.GetSoundBuilder(pUserInt, attachments[i], attachmentHash);
3507
3508 if (soundBuilder != NULL)
3509 {
3510 SoundObject soundObject = soundBuilder.BuildSoundObject();
3511 if (soundObject != NULL)
3512 {
3513 AttenuateSoundIfNecessary(soundObject);
3514 PlaySound(soundObject, soundBuilder);
3515 }
3516 }
3517 }
3518 }
void PlaySound()
Определения HungerSoundHandler.c:38
AnimBackType GetBackAttachmentType()
Определения DayZPlayerImplement.c:3131
void AttenuateSoundIfNecessary(SoundObject soundObject)
Определения DayZPlayerImplement.c:3849
AnimRangedWeaponType GetShoulderAttachmentType()
Определения DayZPlayerImplement.c:3153
AnimUpperBodyType GetBodyAttachmentType()
Определения DayZPlayerImplement.c:3100
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().