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

◆ ProcessAttachmentEvent()

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

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

3609 {
3610#ifndef NO_GUI
3612 DayZPlayerTypeAttachmentSoundLookupTable table = type.GetAttachmentSoundLookupTable();
3613
3614 array<string> attachments = new array<string>();
3615 pUserString.Split(",", attachments);
3616 for (int i = 0; i < attachments.Count(); i++)
3617 {
3618 int attachmentHash = -1;
3619 if (attachments[i] == "shoulder")
3620 attachmentHash = GetShoulderAttachmentType();
3621 else if (attachments[i] == "body")
3622 attachmentHash = GetBodyAttachmentType();
3623 else if (attachments[i] == "back")
3624 attachmentHash = GetBackAttachmentType();
3625
3626 SoundObjectBuilder soundBuilder = table.GetSoundBuilder(pUserInt, attachments[i], attachmentHash);
3627
3628 if (soundBuilder != NULL)
3629 {
3630 SoundObject soundObject = soundBuilder.BuildSoundObject();
3631 if (soundObject != NULL)
3632 {
3633 AttenuateSoundIfNecessary(soundObject);
3634 PlaySound(soundObject, soundBuilder);
3635 }
3636 }
3637 }
3638#endif
3639 }
void PlaySound()
Определения HungerSoundHandler.c:39
AnimBackType GetBackAttachmentType()
Определения DayZPlayerImplement.c:3171
void AttenuateSoundIfNecessary(SoundObject soundObject)
Определения DayZPlayerImplement.c:3976
AnimRangedWeaponType GetShoulderAttachmentType()
Определения DayZPlayerImplement.c:3193
AnimUpperBodyType GetBodyAttachmentType()
Определения DayZPlayerImplement.c:3140
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().