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

◆ ProcessAttachmentEvent()

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

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

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")
3434 attachmentHash = GetShoulderAttachmentType();
3435 else if (attachments[i] == "body")
3436 attachmentHash = GetBodyAttachmentType();
3437 else if (attachments[i] == "back")
3438 attachmentHash = GetBackAttachmentType();
3439
3440 SoundObjectBuilder soundBuilder = table.GetSoundBuilder(pUserInt, attachments[i], attachmentHash);
3441
3442 if (soundBuilder != NULL)
3443 {
3444 SoundObject soundObject = soundBuilder.BuildSoundObject();
3445 if (soundObject != NULL)
3446 {
3447 AttenuateSoundIfNecessary(soundObject);
3448 PlaySound(soundObject, soundBuilder);
3449 }
3450 }
3451 }
3452 }
void PlaySound()
Определения HungerSoundHandler.c:38
AnimBackType GetBackAttachmentType()
Определения DayZPlayerImplement.c:3065
void AttenuateSoundIfNecessary(SoundObject soundObject)
Определения DayZPlayerImplement.c:3783
AnimRangedWeaponType GetShoulderAttachmentType()
Определения DayZPlayerImplement.c:3087
AnimUpperBodyType GetBodyAttachmentType()
Определения DayZPlayerImplement.c:3034
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().