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

◆ OnSoundEvent()

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

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

3372 {
3373 int eventReplaceID;
3374
3375 if (pEventType == "Sound")
3376 {
3377 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
3378 {
3379 eventReplaceID = m_ReplaceSoundEventHandler.GetSoundEventID(pUserInt, ESoundEventType.SOUND_COMMON);
3380 if (eventReplaceID > 0)
3381 {
3382 PlaySoundEventType(ESoundEventType.SOUND_COMMON, eventReplaceID);
3383 return;
3384 }
3385 }
3386
3387 ProcessSoundEvent(pEventType, pUserString, pUserInt);
3388 }
3389 else if (pEventType == "SoundWeapon")
3390 {
3391 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
3392 {
3393 eventReplaceID = m_ReplaceSoundEventHandler.GetSoundEventID(pUserInt, ESoundEventType.SOUND_WEAPON);
3394 if (eventReplaceID > 0)
3395 {
3396 PlaySoundEventType(ESoundEventType.SOUND_WEAPON, eventReplaceID);
3397 return;
3398 }
3399 }
3400
3401 ProcessWeaponEvent(pEventType, pUserString, pUserInt);
3402 }
3403 else if (pEventType == "SoundAttachment")
3404 {
3405 ProcessAttachmentEvent(pEventType, pUserString, pUserInt);
3406 }
3407 else if (pEventType == "SoundVoice")
3408 {
3409 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
3410 {
3411 int event_id = m_PlayerSoundEventHandler.ConvertAnimIDtoEventID(pUserInt);
3412 if (event_id > 0)
3413 {
3414 PlaySoundEvent(event_id);
3415 return;
3416 }
3417 }
3418 ProcessVoiceEvent(pEventType, pUserString, pUserInt);
3419 }
3420 else
3421 {
3422 Debug.Log("OnSoundEvent: Unknown sound event \"" + pEventType + "\"");
3423 }
3424 }
ESoundEventType
Определения ReplaceSoundEventHandler.c:2
void Debug()
Определения UniversalTemperatureSource.c:349
void ProcessSoundEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3553
ref PlayerSoundEventHandler m_PlayerSoundEventHandler
Определения DayZPlayerImplement.c:124
AbstractWave ProcessVoiceEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3595
void ProcessAttachmentEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3489
bool PlaySoundEvent(EPlayerSoundEventID id, bool from_anim_system=false, bool is_from_server=false)
Определения DayZPlayerImplement.c:501
bool PlaySoundEventType(ESoundEventType soundType, int soundEventID, int param=0)
Handle sound event by respective sound handler based on its type.
Определения DayZPlayerImplement.c:500
void ProcessWeaponEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3432
ref ReplaceSoundEventHandler m_ReplaceSoundEventHandler
Определения DayZPlayerImplement.c:125
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()

Перекрестные ссылки GetInstanceType(), Debug::Log(), m_PlayerSoundEventHandler, m_ReplaceSoundEventHandler, PlaySoundEvent(), PlaySoundEventType(), ProcessAttachmentEvent(), ProcessSoundEvent(), ProcessVoiceEvent() и ProcessWeaponEvent().